Smarter SmartThings with MQTT and Home Assistant


#61

Still cloud-based either way, since the SmartThings hub has to talk to the cloud ultimately to turn devices on and off. But a lot easier to set up than MQTT integration if you do have a SmartThings hub, at least.


#62

Instructions from Github:


#63

I did get this all sorted, but my issue seemed to be with the container not able to communicate with mqtt and then smartthings not communicating with the working bridge. I never received a connection refused error. What finally got smartthings able to communicate with the bridge was removing and again adding the smartapp on my phone. Note that Iā€™m not a Home Assistant user, which is why I needed to specify a different port.


#64

Thanks very much for the info.


#65

Hi
It is in a docker container, here is my docker-compose

version: ā€˜3ā€™
services:
hass:
container_name: hass
image: homeassistant/home-assistant
volumes:
- /home/bsharpe/volumes/hass:/config
- /etc/localtime:/etc/localtime:ro
restart: always
depends_on:
- mqtt
ports:
- ā€œ8123:8123ā€

mqtt:
container_name: MQTT
restart: unless-stopped
image: eclipse-mosquitto
privileged: true
volumes:
- /home/bsharpe/volumes/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /home/bsharpe/volumes/mosquitto/log:/mosquitto/log
- /home/bsharpe/volumes/mosquitto/data:/mosquitto/data
- /etc/localtime:/etc/localtime:ro
ports:
- ā€œ1883:1883ā€
- ā€œ9001:9001ā€

mqttbridge:
image: stjohnjohnson/smartthings-mqtt-bridge
volumes:
- /home/bsharpe/volumes/mqtt-bridge:/config
ports:
- ā€œ8080:8080ā€
depends_on:
- mqtt