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