Hi all, I know this is an old thread, but I wanted to thank you all for the discussion and ideas here as it was really helpful to me in my project. Like the OP, I wanted to connect the wired door contact sensors and motion sensors in my house to SmartThings.
I ended up succeeding by using a NodeMCU ESP2866 development board, hooking up the wired contact sensors to the GPIO pins on the board, and programming it to post to SmartThings any time a sensor state changed. Works like a charm!
I wrote up a brief description here: Connect wired alarm system sensors to SmartThings with a NodeMCU ESP8266 [deprecated]
The code is here on Github: https://github.com/heythisisnate/nodemcu-smartthings-sensors
It consists of 3 parts:
- Lua code for the NodeMCU
- Device Handlers for the cloud-connected sensors
- A SmartApp to receive the HTTP requests from the NodeMCU
This is my very first SmartThings development project and also my first time programming a NodeMCU. I’m really happy with the results, and looking for any feedback/criticism. If there’s enough interest I’d be more than happy to write up some more detailed documentation and package it up a little better for a community release.