From 1cebf605994cf506f933e5ad33a863061eb2a1a8 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 12 Jan 2026 08:33:30 -0500 Subject: HA: Remove grow light automation, control SAD lamp with button --- hostnix/elmo/home-assistant.nix | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'hostnix') diff --git a/hostnix/elmo/home-assistant.nix b/hostnix/elmo/home-assistant.nix index 6ca11e6..20ae957 100644 --- a/hostnix/elmo/home-assistant.nix +++ b/hostnix/elmo/home-assistant.nix @@ -54,7 +54,7 @@ }; entity = { - sad_lamp = "switch.dot"; + sad_lamp = "switch.wakko"; }; }; @@ -571,32 +571,6 @@ (ha.action.off "climate.bedroom_cool") ]; } - { - alias = "Grow light morning"; - # TODO make configurable (snooze) - trigger = [ (ha.trigger.at "09:00") ]; - condition = [ - { - condition = "zone"; - entity_id = "person.joe"; - zone = "zone.home"; - } - ]; - action = [ - (ha.action.on "light.grow_light") - (ha.action.on "switch.wakko") - # { - # service = "fan.set_percentage"; - # target.entity_id = "fan.core_200s"; - # data.percentage = 100; - # } - ]; - } - { - alias = "Grow light night"; - trigger = [ (ha.trigger.at "20:00") ]; - action = [ (ha.action.off "switch.wakko") ]; - } (button "binary_sensor.bedroom_button_1" [ (ha.action.toggle "light.panel_light") @@ -607,7 +581,7 @@ } ]) (button "binary_sensor.bedroom_button_2" - (ha.action.toggle "switch.wakko")) + (ha.action.toggle ha.entity.sad_lamp)) { alias = "Fridge door ajar"; -- cgit v1.3.1