Use separate switches for ct and brightness
This helps if I want to keep automatic color temperature setting by circadian_lighting but want to manually reduce the brightness at the same time.
This commit is contained in:
parent
f3383f21a8
commit
3f9114aecb
1 changed files with 16 additions and 9 deletions
|
|
@ -1,6 +1,14 @@
|
|||
args@{ lib, pkgs, config, custom-utils, ... }:
|
||||
let
|
||||
ports = import ../ports.nix args;
|
||||
circadian_lighting_lights = [
|
||||
"light.yeelight_meteorite_ceiling_light"
|
||||
"light.eingang_deckenleuchte_deckenleuchte"
|
||||
"light.led_panel_schreibtisch_panel"
|
||||
"light.kueche_leiste_led_light"
|
||||
"light.badspiegel_background_light"
|
||||
"light.badspiegel_front_light"
|
||||
];
|
||||
in
|
||||
{
|
||||
services.home-assistant = {
|
||||
|
|
@ -78,15 +86,14 @@ in
|
|||
switch = [
|
||||
{
|
||||
platform = "circadian_lighting";
|
||||
lights_ct = [
|
||||
"light.yeelight_meteorite_ceiling_light"
|
||||
"light.eingang_deckenleuchte_deckenleuchte"
|
||||
"light.led_panel_schreibtisch_panel"
|
||||
"light.kueche_leiste_led_light"
|
||||
"light.badspiegel_background_light"
|
||||
"light.badspiegel_front_light"
|
||||
];
|
||||
min_brightness = 20;
|
||||
lights_ct = circadian_lighting_lights;
|
||||
disable_brightness_adjust = true;
|
||||
name = "Set color temperature by Circadian Lighting";
|
||||
}
|
||||
{
|
||||
platform = "circadian_lighting";
|
||||
lights_brightness = circadian_lighting_lights;
|
||||
name = "Set brightness by Circadian Lighting";
|
||||
}
|
||||
];
|
||||
"automation nix" = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue