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

Only set light entity colour temp if entity in CT mode

Open danieledwardgeorgehitchcock opened this issue 3 years ago • 1 comments

I have a bunch of hue white and colour ambiance bulbs that I would like to control with Circadian Lighting.

However, I would only like the entity to follow circadian rules if it is set to CT mode - I.e. if I have the bulb set to RGB for some ambiance lighting, I do not want it to be set by a circadian rule.

I have tried doing this via Home Assistant templates and have failed.

Is there any way this can be done directly in the circadian lighting config, or be implemented as such?

There's nothing build in to CL currently to allow you to achieve this, although it's something I'd like to add.

You might be able to achieve it with an automation - it would have to trigger on state change of the light and use a template sensor to look at the mode attribute as a condition; then if it's not in CT mode it could turn off CL. The only thing is when first turning a light on the automation may not fire before CL and CL would still adjust the light.

claytonjn avatar Jul 29 '20 13:07 claytonjn