Dash Button SHM Controller
A node.js module to control Samsungs SmartThings' Smart Home Monitor using an Amazon Dash button and Home Assistant.
This library requires that SHM is accessible to Home Assistant via MQTT, as discussed here.
Regardless of how many buttons are configured, only one SHM instance is controlled by any and all. I'm not sure why or how you'd have multiple SHM instances in a home anyway.
For security reasons, the button will only toggle between the states that apply when people are home. This button is not meant to turn on the alarm on the way out the door; that still requires the Home Assistant UI or the SmartThings app. Accordingly, when the system is "armed away," the button won't have any effect.
Prerequisties
- At least one Dash button (multiple are supported, but see above notes)
- Home Assistant
- SmartThings MQTT Bridge
- SmartThings SHM MQTT Bridge
Install
npm install
Dash Button Preparation
Follow Amazon's instructions to configure your button to send messages when you push them but not actually order anything. When you get a Dash button, Amazon gives you a list of setup instructions to get going. Just follow this list of instructions, but don’t complete the final step of selecting a product to order. Do not select a product, just exit the app.
Configuration
- Discover the Dash Buttons using
node node_modules/node-dash-button/bin/findbutton
. - Rename
config-sample.json
toconfig.json
. Update its values to match your configuration, including the buttons discovered in the last step. - Start the listener with
npm start
.