summaryrefslogtreecommitdiff
path: root/hostnix/elmo/home-assistant.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-06-17 17:39:22 -0400
committerJoe Mou <dev@mou.fo>2024-10-09 13:48:40 -0400
commite31bb0c936a3a30b741ac32a73b1ebf9a0e2569b (patch)
tree25c9059bcc159d78c8eed3cbfa933e342fc8aee7 /hostnix/elmo/home-assistant.nix
parent7ac4e3b6cf600f360592a56eb8ae53d699de1616 (diff)
Adjust adaptive_lighting parameters
Diffstat (limited to 'hostnix/elmo/home-assistant.nix')
-rw-r--r--hostnix/elmo/home-assistant.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/hostnix/elmo/home-assistant.nix b/hostnix/elmo/home-assistant.nix
index 7facdd4..68fa615 100644
--- a/hostnix/elmo/home-assistant.nix
+++ b/hostnix/elmo/home-assistant.nix
@@ -46,12 +46,19 @@
# value_template: "{{ state_attr('weather.knyc_daynight', 'forecast')[1]['precipitation_probability']|float > 0 or state_attr('weather.knyc_daynight', 'forecast')[2]['precipitation_probability']|float > 0 }}"
# #value_template: "{{ states('sensor.dark_sky_precip_probability_0d')|float > 5 }}"
- adaptive_lighting = {
+ adaptive_lighting = rec {
lights = [
+ # Unfortunately the grow light cannot have its own schedule.
"light.grow_light"
"light.panel_light"
];
+ # Parameters modeled at https://basnijholt.github.io/adaptive-lighting/
+ min_color_temp = 2700; # lower bound of panel light
max_color_temp = 3500;
+ sunrise_offset = 60 * 60;
+ brightness_mode = "linear";
+ brightness_mode_time_dark = sunrise_offset;
+ brightness_mode_time_light = 3 * 60 * 60;
};
climate = [