From e3b1cb15124c6c9567f189e8c61a83eddee79405 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 24 Sep 2021 00:29:08 +0200 Subject: [PATCH] Changes in alarm Fix morning alarm clock automation separate alarm clock logic from good morning script --- configuration/automations/alarm-clock.yaml | 18 +++++++++++++++++- scripts/10.modes.yaml | 16 ---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/configuration/automations/alarm-clock.yaml b/configuration/automations/alarm-clock.yaml index 0b8ab49..b775e1a 100644 --- a/configuration/automations/alarm-clock.yaml +++ b/configuration/automations/alarm-clock.yaml @@ -5,7 +5,22 @@ entity_id: calendar.automations_wakeup to: 'on' action: - - service: script.good_morning + - service: light.turn_on + data: + kelvin: 2000 + brightness: 1 + entity_id: light.bedroom_lights + - service: cover.set_cover_position + target: + entity_id: cover.bedroom_blinds + data: + position: 10 + - service: light.turn_on + data: + kelvin: 5300 + transition: 1800 + brightness: 255 + entity_id: light.bedroom_lights - delay: minutes: 30 - service: media_player.volume_set @@ -18,4 +33,5 @@ entity_id: media_player.bedroom media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe' media_content_type: music + - service: script.good_morning mode: single diff --git a/scripts/10.modes.yaml b/scripts/10.modes.yaml index ad48e23..6d19ada 100644 --- a/scripts/10.modes.yaml +++ b/scripts/10.modes.yaml @@ -58,22 +58,6 @@ good_night: good_morning: alias: Good Morning sequence: - - service: light.turn_on - data: - kelvin: 2000 - brightness: 1 - entity_id: light.bedroom_lights - - service: cover.set_cover_position - target: - entity_id: cover.living_room_blind - data: - position: 10 - - service: light.turn_on - data: - kelvin: 5300 - transition: 1800 - brightness: 255 - entity_id: light.bedroom_lights - service: cover.open_cover entity_id: - cover.bedroom_blinds