summaryrefslogtreecommitdiff
path: root/hostnix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-06-11 23:20:56 -0400
committerJoe Mou <dev@mou.fo>2024-10-09 13:48:40 -0400
commitf9d88b25ddf91c9786569a8a6559e34ccfa4ce75 (patch)
tree16144b9cd6fdbaf06f9c35dea9ecccf9ca10c5a3 /hostnix
parent70a6d533227ea2284bdcc1514b794f99d7eb5361 (diff)
Grow light cycle
Diffstat (limited to 'hostnix')
-rw-r--r--hostnix/elmo/home-assistant.nix10
1 files changed, 9 insertions, 1 deletions
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"))