1) Give a description of the problem
Trying to create a relationship for vent control piston, based on room.
2) What is the expected behavior?
3) What is happening/not happening?
I can create a device array with vents, but this would require me to write the same piston for each of 8 rooms. And then maintain any logic changes across all 8 pistons.
Looking for a way to define
string rooms=Master Bedroom, Kitchen
device roomThermostat[1]=Master Bedroom vThermostat
device roomThermostat[2]=Kitchen vThermostat
device roomVents[1]=Vent1, Vent2, Vent3
device roomVents[2]=Vent12, Vent13, Vent14
Then use a for loop (possibly) to logically process on room and the index value that the room is in the array to know which roomThermostat and roomVents index to read from.
My other thought was using room that are defined in SmartThings. I have all of my room built out and devices placed into the rooms, yet I can’t seem to find a way to reference that relationship in Webcore.
**4)
5) Attach any logs (From ST IDE and by turning logging level to Full)