stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
367 stars 243 forks source link

Update simulated motion sensors in ST when they update in HA #41

Closed mattsch closed 8 years ago

stjohnjohnson commented 8 years ago

Hmm, it's not in the documented capabilities: http://docs.smartthings.com/en/latest/capabilities-reference.html#motion-sensor

I don't have a motion sensor, but does this work for you?

mattsch commented 8 years ago

Yup, I've created two simulated motion sensors in ST and automations in HA to publish 'active' or 'inactive'. The changes are reflected on the ST side and the IDE logs show it calling the proper active() or inactive() methods for the simulated devices.

stjohnjohnson commented 8 years ago

I wonder if this will cause problems if the functions don't exist

mattsch commented 8 years ago

I would expect we'd just see an error in the logs, but this is ST so I can't be sure. Those functions should always exist for motion detectors from what I've been able to glean from the interwebs.

stjohnjohnson commented 8 years ago

LGTM then 👍 @jer?

jer commented 8 years ago

👍