2021-07-18 20:04:56 +00:00
|
|
|
- id: calendar-coffee-machine-off
|
2022-10-26 12:57:29 +00:00
|
|
|
alias: "[Calendar] Coffee machine off"
|
2021-07-18 20:04:56 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: start
|
2022-10-26 12:57:29 +00:00
|
|
|
entity_id: calendar.automations_wakeup
|
|
|
|
offset: '-16:00:0'
|
2021-07-18 20:04:56 +00:00
|
|
|
action:
|
2022-08-05 22:27:52 +00:00
|
|
|
- wait_for_trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.coffee_machine_electrical_measurement
|
|
|
|
below: '4'
|
2021-07-18 20:04:56 +00:00
|
|
|
- service: switch.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: switch.coffee_machine_on_off
|
|
|
|
|
|
|
|
- id: calendar-coffee-machine-on
|
2022-10-26 12:57:29 +00:00
|
|
|
alias: "[Calendar] Coffee machine on"
|
2021-07-18 20:04:56 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
2022-10-26 12:57:29 +00:00
|
|
|
event: start
|
|
|
|
entity_id: calendar.automations_wakeup
|
2021-07-18 20:04:56 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
2022-10-26 12:57:29 +00:00
|
|
|
entity_id: calendar.automations_wakeup
|
|
|
|
state: 'on'
|
2021-07-18 20:04:56 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: switch.coffee_machine_on_off
|