hass-circadian_lighting
hass-circadian_lighting copied to clipboard
Are min/max colour temps per switch/light possible?
I have a couple of different brands of bulbs, and it's rare that the colour temps match. I was previously using the native flux intergatrion, but I perfer how this is configured as well as the fact they don't try to control bulbs that are off.
To address the colour temp differences, I had different bulbs set up with Flux with different colour temp ranges. I can see that you provide min_colortemp and max_colortemp at a global setting, but is it possible to set it per bulb? If not, would it be something you consider adding?
I'd also like help with this; could be considered a bug as values (of e.g. min_mireds) set in customise.yaml are overwritten/ignored by this component. Suggest the fix would be to check in customize.yaml for min/max ct values and only alter current ct to that limit within CL.
Fantastic component otherwise!
To be able to have different settings per light group would be great! While reading the FAQ I saw this mentioning switch(es):
Circadian Lighting has two main components, a sensor and switch(es). The sensor maintains the calculated color temperature to keep all lights in sync, while the switch(es) allow for specific options to be set for specific groups of lights.
So would that mean you can configure multiple of these switches with each a different set of lights and different settings?
So would that mean you can configure multiple of these switches with each a different set of lights and different settings?
You can have multiple switches with different settings (or if you just want to turn CL adjustment on/off for a subset of lights at a time) but color temperature cannot be changed on a switch by switch basis. I'll probably add this ability at some point.
It would be nice to have profiles of sorts. An example would be:
circadian_lighting:
- profile: lifx max_colortemp: 4400 sunset_offset: 01:00:00 interval: 900 transition: 2
- profile: hue max_colortemp: 4200 sunset_offset: 00:45:00 interval: 500 transition: 5
You could then call the profile on the switch: switch:
- platform: circadian_lighting name: Bedroom 1 profile: lifx lights_ct: light.bedroom_1
- platform: circadian_lighting name: Bedroom 2 profile: hue lights_ct: light.bedroom_2
This would also allow you to only need to update all the settings in one location, as well as could be used for other reasons, such as different rooms having different settings, like allowing the bedroom and lounge room lights to dim, while leaving the kitchen and bathroom lights with their default brightness. I know brightness can already be done on a per-light basis, but it would centralize the settings in a single block.
@iamcagn, I have started implementing the light profiles you suggested in https://github.com/claytonjn/hass-circadian_lighting/pull/114/.
@iamcagn, I have started implementing the light profiles you suggested in #114.
That's awesome, thank you so much. I've been trying to hack something together using template sensors but being able to do it with this component will be so much easier.
Fantastic news.
@markianwallace and @iamcagn, could you guys try the code of #114?
In the PR I write how to use the code.
An option for min/max color temps per switch/light would be great. I have a device which only supports color temperature from 3500 to 6500 K. But it is in the same group/switch as some devices which support 2500 K. Now every time the circadian add-on tries to set the color temperature to something lower than 3500 K the device throws an error.