1) Give a description of the problem
I’ve created an array of dimmers and I’m iterating over each device (using a for each) applying the same set of actions with the exception of each dimmer having a unique dimmer level needing to be set.
I’m trying to avoid setting up a huge block of IF statements for each device and abstract it out where I could define these dimmer level values in the head of the piston.
If I were programming this, I’d create a key value pair where the device acts as the key and the dimmer level is the value, but I’m not sure something like that is possible in with webCoRE.
Any ideas? Thanks