mirror of
https://github.com/GeorgeSG/sarah.git
synced 2025-12-28 20:30:29 +00:00
Add coffee machine automations
This commit is contained in:
@@ -125,6 +125,16 @@ views:
|
||||
template: v3_button
|
||||
entity: vacuum.vacuum
|
||||
name: Vacuum
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
name: Coffe machine
|
||||
entity: button.coffee_machine
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: button.press
|
||||
service_data:
|
||||
entity_id: button.coffee_machine
|
||||
- type: custom:button-card
|
||||
template: v3_button_brita_water
|
||||
|
||||
|
||||
@@ -93,6 +93,16 @@
|
||||
template: v3_button
|
||||
entity: vacuum.vacuum
|
||||
name: Vacuum
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
name: Coffe machine
|
||||
entity: button.coffee_machine
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: button.press
|
||||
service_data:
|
||||
entity_id: button.coffee_machine
|
||||
- type: custom:button-card
|
||||
template: v3_button_brita_water
|
||||
|
||||
|
||||
@@ -161,5 +161,10 @@
|
||||
- input_number.toshiba_cool_temp
|
||||
- input_number.toshiba_trigger_temp
|
||||
|
||||
- type: entities
|
||||
title: "debug"
|
||||
entities:
|
||||
- input_boolean.coffee_machine_turned_on_today
|
||||
|
||||
|
||||
- !include ../popup_cards.yaml
|
||||
|
||||
46
config/packages/devices/kitchen/coffee_machine.yaml
Normal file
46
config/packages/devices/kitchen/coffee_machine.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
input_boolean:
|
||||
coffee_machine_turned_on_today:
|
||||
name: Coffee machine turned on today?
|
||||
initial: off
|
||||
|
||||
template:
|
||||
- button:
|
||||
- name: "Coffee machine"
|
||||
icon: mdi:coffee
|
||||
press:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: !secret coffee_machine_topic
|
||||
payload: '{ "action": "press" }'
|
||||
|
||||
|
||||
automation:
|
||||
- alias: Coffee Machine · Turn on in the morning
|
||||
mode: 'single'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bedroom_door_contact
|
||||
- platform: state
|
||||
entity_id: group.hallway_motion
|
||||
condition:
|
||||
- condition: time
|
||||
after: "07:00:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.coffee_machine_turned_on_today
|
||||
state: "off"
|
||||
action:
|
||||
- service: button.press
|
||||
entity_id: button.coffee_machine
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.coffee_machine_turned_on_today
|
||||
|
||||
- alias: Coffee Machine · Reset state at night
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "05:00:00"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.coffee_machine_turned_on_today
|
||||
@@ -39,6 +39,8 @@ tautulli_url: url
|
||||
portainer_url: url
|
||||
tasmo_admin_url: url
|
||||
|
||||
coffee_machine_topic: switchbot2mqtt/mac:address
|
||||
|
||||
#
|
||||
# ─── CLOUD AUTHENTICATION ───────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user