Latest Posts

Categories

Categories

Controlling SmartThings’ Smart Home Monitor from Home Assistant

Until recently, one of the few things I couldn’t control from Home Assistant was the “Smart Home Monitor” (SHM)–or alarm–feature of the Samsung SmartThings platform. With the exception of our locks, controlling this was the only other task that required the provider’s app.

SmartApp

First, a new SmartApp is created to handle SHM requests. SmartThings doesn’t directly expose the requests this SmartApp uses, so I chose to keep it separate from the permissions-driven integration the rest of my SmartThings devices use.

Your MQTT broker will now receive events when toggling between “Disarm,” “Arm (Stay),” and “Arm (Away)” in SHM. These events match what Home Assistant’s MQTT Alarm Control Panel expects, care of the switch statement that translates SmartThing’s values.

Home Assistant

With the above in place, Home Assistant’s update is quite simple. Add the following to your configuration.yaml:

Caveat

Currently, alarm incidents aren’t handled, so it’s not possible to know in Home Assistant when an alarm is triggered. SmartThings doesn’t handle those in the same way it does arming and disarming SHM, and I’ve yet to reliably detect and interact with those events; I hope to resolve this soon. In the meantime, it doesn’t seem unreasonable to address those (hopefully) limited occurrences in the SmartThings app.