Thanks and sorry, this is probably really frustrating for you…this is the bit I just can’t get my head around and I don’t know why. As a learning experience it’s been great for me, it’s introduced me to so many new topics and methods that I’m pretty pleased so far, but it’s just a different way of thinking that I need that ‘eureka’ moment for it to fully sink in.
So, in my head…
- I’ve passed the GK rule all the info I need (groupname#onoff#brightness#colortemp):
GK GKCommand - gSpots_LR_All#ON#100#14
- I have added all items into the same group:
Group:Dimmer gSpots_LR_All
- So that when I call
group.members.forEach[ light | deviceQueue.add(light) ]
- This is how I’m adding all members of that group into the deviceQueue:
Spot_GF_LR_1_Brightness
Spot_GF_LR_2_Brightness
Spot_GF_LR_3_Brightness
Spot_GF_LR_4_Brightness
Spot_GF_LR_1_ColorTemp
Spot_GF_LR_2_ColorTemp
Spot_GF_LR_3_ColorTemp
Spot_GF_LR_4_ColorTemp
- Where I am struggling is that I send the x_Brightness and x_ColorTemp items different values, in this case Brightness = 100 and ColorTemp = 14 but because I’m automatically filling the deviceQueue this way how do I differentiate between item to give it the correct command?