I should be grateful for some comment on this if anyone has encountered it.
I have a setup in the lounge with RGB and CCT LED strips facing both up and down on 6 different around the perimeter of the room (the chimney breast intruding in the room is why there are 6 rather than 4 separately controlled walls). I have 60 DMX channels controlling this with the CCT strips set as a tunable-white thing (the RGB lights are irrelevant to the problem but mentioned by way of background). It was a little brighter than anticipated so, of an evening, the up lights are white at around 25% and the downlights are white at half of that with also a ‘colour of the day’ added in. via the RGB down LEDs.
My next task was to try to have the colour temperature of the white change automatically throughout the day, cool during the daytime and warm in the evenings on a graduated basis. I have adapted the script from here Automatic sunrise and sunset color / colour temperature control (with LIFX) which adjusts the colour temperature every two minutes.
This works and the colour temperature drops as it approaches sunset.
I am having some difficulty with this in that, of an evening, the brightness of the lights slowly drops of an evening until I suddenly notice that only the coloured LEDs are on. As soon as I reset the brightness (I am using the Alexa binding for voice control), the white lights turn back on.
As far as I can see, the constant updating of the colour temperature causes the brightness to drop with each update, as this is every two minutes, the lights end up turning off. This appears to be the result of some rounding within the dmx-tunable-white rules. I will try an interim resolution of rewriting the brightness with every temperature update but it seems like this shouldn’t need to be done. Is there something obvious that I have missed with the setup?
P.S. Further to the above, I have changed the rule for the colour temperature adjustment. Previously, I had the ‘warm’ setting at 99%. I have adjusted this to 100% and the lights do not dim further once they are fully warm. I think it is reasonably conclusive for me that the problem is some internal rounding issue in the tunable white binding that rounds down the brightness on the different channels when trying to achieve a particular colour temperature setting. This can often be observed in PaperUI when setting a colour temperature, the brightness jumps around a bit. If the dimming during the transition period from cool to warm is still a problem, the solution will be to rewrite the brightness as indicated above.