2021-07-18 20:04:56 +00:00
|
|
|
- id: calendar-coffee-machine-off
|
|
|
|
alias: "[Calendar] Coffee machine"
|
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: start
|
2021-07-18 20:04:56 +00:00
|
|
|
entity_id: calendar.automations_caffeine_free_time
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: start
|
2021-07-18 20:04:56 +00:00
|
|
|
entity_id: calendar.automations_sleep
|
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: switch.coffee_machine_on_off
|
|
|
|
|
|
|
|
- id: calendar-coffee-machine-on
|
|
|
|
alias: "[Calendar] Coffee machine"
|
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: end
|
2021-07-18 20:04:56 +00:00
|
|
|
entity_id: calendar.automations_caffeine_free_time
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: end
|
2021-07-18 20:04:56 +00:00
|
|
|
entity_id: calendar.automations_sleep
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: calendar.automations_caffeine_free_time
|
|
|
|
state: 'off'
|
|
|
|
- condition: state
|
|
|
|
entity_id: calendar.automations_sleep
|
|
|
|
state: 'off'
|
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: switch.coffee_machine_on_off
|