1
0

Update calendar automations

This commit is contained in:
Przemek Grondek 2022-10-26 14:57:29 +02:00
parent c11e384b3a
commit 90a1a1996c

View File

@ -1,11 +1,11 @@
- id: calendar-coffee-machine-off
alias: "[Calendar] Coffee machine"
alias: "[Calendar] Coffee machine off"
mode: single
trigger:
- platform: calendar
event: start
entity_id: calendar.automations_sleep
offset: '-8:00:0'
entity_id: calendar.automations_wakeup
offset: '-16:00:0'
action:
- wait_for_trigger:
- platform: numeric_state
@ -16,16 +16,16 @@
entity_id: switch.coffee_machine_on_off
- id: calendar-coffee-machine-on
alias: "[Calendar] Coffee machine"
alias: "[Calendar] Coffee machine on"
mode: single
trigger:
- platform: calendar
event: end
entity_id: calendar.automations_sleep
event: start
entity_id: calendar.automations_wakeup
condition:
- condition: state
entity_id: calendar.automations_sleep
state: 'off'
entity_id: calendar.automations_wakeup
state: 'on'
action:
- service: switch.turn_on
target: