#Hue lights go green when switching Kelvin value?

1 messages · Page 1 of 1 (latest)

vocal girder
#

I am guessing this isnt really supported but I figured I should ask. My goal is to have one lighting script per light group. (Just about entire house is Hue with Inovelli switches) So when I press the switch or tell alexa to turn on that light group (or motion is detected) I will run the specific script to turn the lights on this way the lights come on at a certain temp depending on the sun.

It seems like in the visual editor if you uncheck "Transision" and "Brightness" the lights come on with some sort of default transision, like a gradual 1 second delay on. However, if you set the brightness to be 100 and then leave the transition off they come on instantly, no gradual rise in brightness.

Clearly my script is setting the brightness to be 100% and I am setting the transision to be 1 second which I believe is causing this green color while they are coming on. its not the worst thing in the world but was curious if anyone knew something that I didnt.

The reason the transision is a var is becuase I have an automation auto update any lights that are on when the sun sets, and thats when i noticed this green hue happen, so when the sun sets right befor it calls the Update all on lights script it flips the transision to be 0 so they instantly flip from cool to warm. The problem is if I go to if a light is off and it was last on when the light was warm, and then i turn it on in the morning it does the 1 second transision and does the green thing.

This very well could be a hardware limitation but wanted to confirm before I keep testing this. Again very nit pick of this but at this point I just hit the one year of doing this house remodel and have spent thousands on lights and switches haha nevermind countless days and nights in HA to get things to work like I want.

vocal girder
#

Okay if anyone is curious about this what I did was end up making 2 scripts per light group. One of them just turns the light on and doesn’t change transition value or brightness, this will be triggered by my motion sensors and when the sun sets, the other one will be triggered by the switches and will always turn them to full brightness. To avoid the green shift I do 2 turn ons, one sets the kelvin value first and the next one sets the brightness to 100 and transitions at 1 this somehow avoids the green shift, and there’s no way you can tell that the light turned on once to its previous brightness

woven dagger
vocal girder
#

I feel like I’ve changed my use case. I’m trying to still maintain one script, I want this script to be the way all lights turn on, and I want it to accept 2 parameters, 1 what light group to turn on and 2 do I want to maintain its current brightness or go full bright.

woven dagger
#

use those services before and after you alter lights.

#

you can make the script generic and you can supply it a list of lights, create a scene from the list of lights, adjust the lights, then recall the scene at the end.