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.