hass-circadian_lighting icon indicating copy to clipboard operation
hass-circadian_lighting copied to clipboard

Are min/max colour temps per switch/light possible?

Open iamcagn opened this issue 4 years ago • 9 comments

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?

iamcagn avatar May 09 '20 03:05 iamcagn

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!

markianwallace avatar Jun 12 '20 11:06 markianwallace

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?

coolinx avatar Jun 19 '20 08:06 coolinx

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.

claytonjn avatar Jun 19 '20 14:06 claytonjn

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 avatar Jun 21 '20 06:06 iamcagn

@iamcagn, I have started implementing the light profiles you suggested in https://github.com/claytonjn/hass-circadian_lighting/pull/114/.

basnijholt avatar Sep 06 '20 09:09 basnijholt

@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.

iamcagn avatar Sep 07 '20 07:09 iamcagn

Fantastic news.

markianwallace avatar Sep 07 '20 08:09 markianwallace

@markianwallace and @iamcagn, could you guys try the code of #114?

In the PR I write how to use the code.

basnijholt avatar Sep 07 '20 17:09 basnijholt

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.

dflvunoooooo avatar Nov 15 '21 13:11 dflvunoooooo