From 90a1a1996caa500556df4a78e28083382096c543 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 26 Oct 2022 14:57:29 +0200 Subject: [PATCH] Update calendar automations --- configuration/automations/calendar.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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: