Smart Home Monitor over MQTT

smartapp_security
mqtt

(Erick) #1

Building on https://github.com/stjohnjohnson/smartthings-mqtt-bridge, I created a SmartApp that publishes SHM states over MQTT, and sets SHM based on MQTT inputs.

The code is at https://git.ethitter.com/snippets/25. This is tailored to be used with Home Assistant’s MQTT panel, hence the switch that transforms some of the values before they’re sent to the MQTT bridge.

Next up, I want to integrate the alarm states, which are published under the “Security” event rather than the “alarmSystemStatus” event.


(Erick) #2

A lot of credit goes to How to set Smart Home Monitor status from SmartApp for providing necessary insight into controlling SHM via a SmartApp.


#3

Is this a release or a beta? :sunglasses:


(Erick) #4

Beta until I add support for alarm states. Right now, intrusions aren’t reported to MQTT.

I’m literally writing that piece now, but as they’re different events in SmartThings, I wanted to release this piece to start.


(Erick) #5

Intrusion detection is challenging enough that I’m prepared to call this a release: https://ethitter.com/p/9534/.


#6

Nice work!


(Erick) #7

Following up on the “intrusion” piece of this, I haven’t yet been able to sort out how, if at all, the hub exposes those events. My SmartApp code reliably sets the alarm state, so falling back to the SmartThings app to dismiss alerts doesn’t seem terribly burdensome (those should be infrequent, I hope :slight_smile:). If I’m ever able to capture the intrusion events, I’ll certainly add support for those triggers in the MQTT alarm panel.


(shidum) #8

Hello, wondering if you managed to do some progress on this, found your post really useful. If you need some beta tester… here you have one!

btw, is there anyway you could set the alarm publishing into the topic the status needed?

thanks!


(Erick) #9

Unfortunately, I was never able to find where the Intrusion alerts were exposed. That said, it’s probably been a year since I last checked. I’ll have to find some time to look again.


#10

Hi @ethitter any luck on the SHM alert events you where working?