From 4f83cd5ff91b9d75c222dc880c281ae8071c5c31 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 14 Dec 2022 22:17:50 +0200 Subject: [PATCH] Automate kitchen christmas lights --- lovelace/advanced_dashboard/08_automations.yaml | 1 + packages/devices/kitchen/outlet.yaml | 7 +++++++ packages/routines/waking_up.yaml | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lovelace/advanced_dashboard/08_automations.yaml b/lovelace/advanced_dashboard/08_automations.yaml index 487fd75..c5db0e0 100644 --- a/lovelace/advanced_dashboard/08_automations.yaml +++ b/lovelace/advanced_dashboard/08_automations.yaml @@ -70,6 +70,7 @@ cards: entities: - automation.living_room_candle_turn_on_after_sunset - automation.kitchen_christmast_lights_turn_on_after_sunset + - automation.kitchen_christmast_lights_turn_off_on_sunrise - automation.lighting_turn_on_ceiling_lights_after_sunset - automation.lighting_turn_off_all_lights_after_sunrise - type: divider diff --git a/packages/devices/kitchen/outlet.yaml b/packages/devices/kitchen/outlet.yaml index b4dbe77..81f9eb1 100644 --- a/packages/devices/kitchen/outlet.yaml +++ b/packages/devices/kitchen/outlet.yaml @@ -6,3 +6,10 @@ automation: action: - service: switch.turn_on entity_id: switch.kitchen_outlet + - alias: Kitchen christmast lights ยท turn off on sunrise + trigger: + platform: sun + event: sunrise + action: + - service: switch.turn_off + entity_id: switch.kitchen_outlet diff --git a/packages/routines/waking_up.yaml b/packages/routines/waking_up.yaml index 1c3bd0e..21f8acb 100644 --- a/packages/routines/waking_up.yaml +++ b/packages/routines/waking_up.yaml @@ -25,7 +25,6 @@ script: - light.living_room_ambient - service: script.isparkle_on - entity_id: switch.kitchen_outlet - service: script.open_living_room_cover - service: script.shield_screensaver