Device Handler Polling Other Contact Sensor State

Dan,

I don’t believe you can reference another device from within a traditional DH. Only a SmartApp can do that.

However, SmartThings recently released a new type of Device Handler called the Composite Device Handler (or Parent/Child Device Handler.) http://docs.smartthings.com/en/latest/composite-devices/index.html

I have written an Arduino Library and associated Device Handler which takes advantage of the Composite Device Handler design. This allows a single parent device handler to create multiple child devices (even of the same Device Capability) and have them all readily accessible to “normal” SmartApps (i.e. no custom attributes are required at all!)

Take a look at TS_Anything below:

Dan