Are there any tutorials on working with multiple devices?


(Matthew McDermott) #1

I have tried searching for any code samples that show how to work with multiple devices (like multiple switches) and so far all I have found is that you can set “multiple:true”. Specifically, I am looking for how to check the switch statuses, set the switches and how to set the level of dimmers.

If the resulting variable is an array, how do I enumerate the array?

(Jim Anderson) #2

Also plenty of examples in the public repo:✓&q=multiple%3Atrue&type=

(Matthew McDermott) #3

@Jim Thanks, I really did try! Also, I had not seen the public repo. Good stuff in there.