Updating a piston from one to many Hue bulbs and grabbing their current state


#1

1) Give a description of the problem
I recently installed more Hue lights in one of our rooms. I used to only have one. My previous piston captured the state of that one Hue, changed the brightness to 30% when the TV was turned on, then restored it to the previous state when the TV was turned off. I now want to do that with all 5 bulbs in the room.

2) What is the expected behaviour?
Capture states of all 5 Hue bulbs, dim them when the TV is on, then restore them when the TV is off.

3) What is happening/not happening?
How do I update the Piston to grab the states of all 5?

The pic below is of the piston in question, with he only mod that I already added all the lights to the other sections of the piston. Just need help on capturing the settings of all instead of just one like it was originally setup to do.

4) Post a Green Snapshot of the pistonimage


#2

Hi @BrianLeeS
I just tested 6 Hue bulbs and it worked…
You should be capturing them into variable (i create a global variable)
and choose “Store them into variable and pick the variable you wanted to use”
later when you want the old levels back, call it from that variable.


#3

So, is that an array that will capture the individual settings since this group of bulbs does not always have the same settings? There is at least one bulb that is often in a different color and brightness.


#4

in my test i turned 2 of them manually green,
turned the switch ON (captured)
manually changed the colors again
turned twe switch OFF
and 2 of them turned back to green…


#5

@BrianLeeS
Did it work?