I’m writing a device handler for a new z-wave sensor. I’d like to associate all devices of this type with each other automatically somehow.
I see a way to set the association in the device handler, but haven’t seen a way to build the list of z-wave node IDs of similar devices to target the associations with.
What’s the best way to do this?
Is there an API call in device handlers or smart apps that returns a list of z-wave devices? If so, I assume I can walk the results and do a get info on each to determine the device type, doing the set for each match.
Or is there a way to share state across device handlers? If so, I could maintain a list from my device handler and use that.
Any other suggestions or examples implementing this or something similar?
Thanks in advance for your help.