From 7bbd8951158aeb2f534dda5556a74481efd1aa6d Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Thu, 24 Oct 2024 00:24:52 +0200 Subject: [PATCH] new shelly bulbs --- .../fw-new/modules/home-assistant/shelly.nix | 8 +++---- .../modules/home-assistant/shelly.nix | 8 +++---- .../modules/home-assistant/sleep.nix | 22 ++++++++++++------- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/hosts/fw-new/modules/home-assistant/shelly.nix b/hosts/fw-new/modules/home-assistant/shelly.nix index f2f54f9..a2ff1ee 100644 --- a/hosts/fw-new/modules/home-assistant/shelly.nix +++ b/hosts/fw-new/modules/home-assistant/shelly.nix @@ -7,10 +7,10 @@ let { name = "Living Bulb 4"; id = "485519D94A28"; } { name = "Living Bulb 5"; id = "485519DA6B6A"; } { name = "Living Bulb 6"; id = "485519D9E018"; } - { name = "Bedroom Bulb 1"; id = "08f9e06f4eb4"; } - { name = "Bedroom Bulb 2"; id = "485519ee0ed9"; } - { name = "Bedroom Bulb 3"; id = "08f9e06fe779"; } - { name = "Bedroom Bulb 4"; id = "485519ee00a0"; } + { name = "Bedroom Bulb 1"; id = "485519FBDF20"; } + { name = "Bedroom Bulb 2"; id = "485519FBE171"; } + { name = "Bedroom Bulb 3"; id = "485519FBE377"; } + { name = "Bedroom Bulb 4"; id = "485519FC05C5"; } ]; switches = []; diff --git a/hosts/fw.cloonar.com/modules/home-assistant/shelly.nix b/hosts/fw.cloonar.com/modules/home-assistant/shelly.nix index 8ecb7f6..c5e27b6 100644 --- a/hosts/fw.cloonar.com/modules/home-assistant/shelly.nix +++ b/hosts/fw.cloonar.com/modules/home-assistant/shelly.nix @@ -7,10 +7,10 @@ let { name = "Living Bulb 4"; id = "485519D94A28"; } { name = "Living Bulb 5"; id = "485519DA6B6A"; } { name = "Living Bulb 6"; id = "485519D9E018"; } - { name = "Bedroom Bulb 1"; id = "08F9E06F4EB4"; } - { name = "Bedroom Bulb 2"; id = "485519EE0ED9"; } - { name = "Bedroom Bulb 3"; id = "08F9E06FE779"; } - { name = "Bedroom Bulb 4"; id = "485519EE00A0"; } + { name = "Bedroom Bulb 1"; id = "485519FBDF20"; } + { name = "Bedroom Bulb 2"; id = "485519FBE171"; } + { name = "Bedroom Bulb 3"; id = "485519FBE377"; } + { name = "Bedroom Bulb 4"; id = "485519FC05C5"; } ]; switches = [ diff --git a/hosts/fw.cloonar.com/modules/home-assistant/sleep.nix b/hosts/fw.cloonar.com/modules/home-assistant/sleep.nix index cad3bc0..7cee414 100644 --- a/hosts/fw.cloonar.com/modules/home-assistant/sleep.nix +++ b/hosts/fw.cloonar.com/modules/home-assistant/sleep.nix @@ -14,14 +14,6 @@ { delay = 1700; } - { - service = "switch.turn_on"; - entity_id = "switch.hallway_circuit"; - } - { - service = "switch.turn_on"; - entity_id = "switch.bathroom_circuit"; - } { service = "switch.turn_on"; entity_id = "switch.78_8c_b5_fe_41_62_port_2_poe"; # livingroom @@ -30,6 +22,20 @@ service = "switch.turn_on"; entity_id = "switch.78_8c_b5_fe_41_62_port_3_poe"; # garden } + { + delay = 10; + } + { + service = "switch.turn_on"; + entity_id = "switch.hallway_circuit"; + } + { + delay = 10; + } + { + service = "switch.turn_on"; + entity_id = "switch.bathroom_circuit"; + } ]; }; "automation sleep" = {