Wondering if anyone has a thought on this.
I have a script working that checks to see if a device is on, and if so will go ahead and turn it off.
I want to now cycle through all the devices and if the location="lower" then run my section of script. Anyone know how to cycle through all the devices, and if the location="lower" return the ref number?
basically, i am duplicating a script i used in hs2 where at different times i would run through and turn off all the lights for a specific location in the house.
I have a script working that checks to see if a device is on, and if so will go ahead and turn it off.
I want to now cycle through all the devices and if the location="lower" then run my section of script. Anyone know how to cycle through all the devices, and if the location="lower" return the ref number?
basically, i am duplicating a script i used in hs2 where at different times i would run through and turn off all the lights for a specific location in the house.
Comment