
HTTP Endpoint: There are really only 2 ways to communicate with the SmartThings hub that we could find. All configuration can reference the name of the Docker container instead of using IP addresses (e.g., MQTT for the broker host in Home Assistant). This will start home-assistant, MQTT, and the Bridge, in dependency order. home-assistant:/config - /etc/localtime:/etc/localtime:ro links : - mqtt mqtt-bridge:/config ports : - 8080:8080 links : - mqtt homeassistant : image : homeassistant/home-assistant:latest ports : - 80:80 volumes :. Mqtt : image : matteocollina/mosca ports : - 1883:1883 mqttbridge : image : stjohnjohnson/smartthings-mqtt-bridge volumes :. To add SmartThings devices to Home Assistant over MQTT, first enable MQTT in Home Assistant: Clicking done will subscribe SmartThings to your MQTT broker and begin 2-way propagation of events. In the SmartThings mobile app, add the new SmartApp and configure it with your devices and MQTT Bridge device.
#ADD SMARTAPP TO SMARTTHINGS APP CODE#
Paste in the MQTT Bridge SmartApp code and click Save. Click New SmartApp, followed by From Code. After this, any registered devices will start sending their events to MQTT. This will create the link between SmartThings and the MQTT Bridge. Click edit and fill in the 3 pieces of information it asks for. This will bring up a page that allows you to edit your device’s Preferences. Go back to My Devices, and click on your new device in the list. Fill in the other boxes however you like. For Type, scroll to the bottom of the list and find your newly created MQTT Bridge.
#ADD SMARTAPP TO SMARTTHINGS APP UPDATE#
Enter a name, and pick any random set of characters for the Device Network Id (this will automatically update later). Go back to My Devices in the IDE, and click New Device. Choose From Code and paste in the MQTT Bridge Device Code. Go to the Smart Things Device IDE and Create New Device Handler. The next step (and possibly the most confusing) is the device type.

The easiest approach is to use Docker, and run a command like the following: There is very little you need to do to get Mosca running. There are a handful of MQTT brokers available in Open Source land. Installs easily on Linux and macOS.Īssuming that you already have Home Assistant and Smart Things running, you will first want to get an MQTT broker running. No need for installing any dependencies or worrying about conflicts.


Docker: A tool for running applications that are self-contained.Many home automation platforms have built in support for this (especially Home Assistant). MQTT: A lightweight message protocol for listening and publishing events that happen.However, there are a couple key terms that might be new to you: This is going to be a pretty detailed tutorial on setting up our SmartThings bridge. We wanted a solution that can bridge the awesomeness of Home Assistant with the SmartThings hub that works with almost everything. What do I do now? Should I buy another hub? Should I just buy a Z-Wave stick? You spent your weekend getting everything set up, showing it off to your significant other, but in the end you got stumped when it came to integrating with all your existing SmartThings toys. Then one day you were browsing reddit and discovered the amazingness that is Home Assistant! A solution that offered dashboards, graphs, working support for Nest, and REAL EASY automation! After a week of ownership, you realized that building dashboards and automating required writing way more Groovy then you expected. You probably bought it when you were looking to get into the whole Home Automation hobby because it worked with pretty much everything and offered you the ability to automate anything. This is a guest post by Home Assistant users Jeremiah Wuenschel and St.
