DanielOgorchock / ST_Anything

ST_Anything is an Arduino library, sketch, and Device Type that works with your SmartThings ThingShield to create an all-in-one SmartThings device.
GNU General Public License v3.0
438 stars 448 forks source link

Diagnostics on Contact Sensors #260

Open Licourtrix opened 2 years ago

Licourtrix commented 2 years ago

I would like to have diagnostics (wire break or short detection) on contact sensors with end of line resistors. I think this can be done by adding an error state on the contact sensor class or modifying the voltage measurement class to act more like a contact sensor. I basically want if An_input < V1: error (short) An_input < V2: closed contact An_input < V3: open contact An_input >= V3: error (line break)

It there anything existing for this type of thing already that haven't found? If not, I will probably take a crack at it myself but would welcome general direction.

ogiewon commented 2 years ago

This functionality does not currently exist. It will require the use of analog inputs, instead of digital inputs, as I am sure you're already aware.