diff --git a/configuration/automations/calendar.yaml b/configuration/automations/calendar.yaml index 4fdac40..f7312ba 100644 --- a/configuration/automations/calendar.yaml +++ b/configuration/automations/calendar.yaml @@ -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: