I want my light to shortly glow up and after some time return to whatever brightness it had before.
The scripts reads current brightness from one lightbulb and stores its value into a helper. That part works but when trying to restore it back to its original state, I get a weird number.
Any ideas what I am doing wrong?
Receiving error: expected int for dictionary value @data(brightness)
I would do this in NodeRED. I would store the value of the previous state as a global variable, then put a timer on the flow, then use the global variable as the brightness setting when calling the light service again.
But then I would have to use snapshots of a scene i guess. I want to directly control ie. two lightbulbs in a group and revert to previous state. Why am I receiving an INT error?
Change data to data_template (thanks god this will be changed in 0.115) in the part where you set the brightness for the bulb.
Also @poudenes suggested solution doesnât need to have a scene, it creates a scene on the fly, which can afterwarda be restored, I think itâs exactly what you are looking for.
OK - so I gave it a try with scenes on-the fly and finally managed to get the brightness to revert but the color temperature (all HUE lights) is not restored. Any clues?
Hi Jon,
Still active with NodeRed?
Can you proivide me with some screenprints of NodeRed doing this?
I would like to restore values of a Hue-light and are looking or a while now without success. (I blame it on myself)