1) Give a description of the problem
I want to create a global variable for the lighting level setpoint of each Hue lamp in the house. Every minute, a timer should slowly dim the light towards that setpoint, creating the effect of a fade but one that can be cancelled on demand, or tweaked even during it’s run.
2) What is the expected behaviour?
The attached piston is working for a single device. Other pistons can reference @setpointLandingFar and it will slowly fade to the levels.
I have almost 20 Hue lamps. Rather than creating thirty copies of this piston, can I not create some sort of loop or array or way of not having to duplicate this code over and over?
If I do need to create a piston per lamp, is there any way of making it simpler to modify, perhaps only having to define the device name once and it automatically applied to every device. Is there a way of using $device to make this more modular?
3) What is happening/not happening?
I can’t seem to work out a good way to make this scalable.
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full