From f9d88b25ddf91c9786569a8a6559e34ccfa4ce75 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 11 Jun 2024 23:20:56 -0400 Subject: Grow light cycle --- hostnix/elmo/home-assistant.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hostnix/elmo/home-assistant.nix b/hostnix/elmo/home-assistant.nix index 4be7c6a..35f0e70 100644 --- a/hostnix/elmo/home-assistant.nix +++ b/hostnix/elmo/home-assistant.nix @@ -520,13 +520,21 @@ } { - alias = "Alarm"; + alias = "Grow light morning"; trigger = { platform = "time"; at = "08:00"; }; action = [ (service "switch.turn_on" "switch.wakko") ]; } + { + alias = "Grow light night"; + trigger = { + platform = "time"; + at = "20:00"; + }; + action = [ (service "switch.turn_off" "switch.wakko") ]; + } (button "binary_sensor.bedroom_button_1" (service "switch.toggle" "switch.wakko")) -- cgit v1.3.1