So I’m having some issues. Been trying to configure this for a few hours and I’m still having issues.
SmartThings is talking to Bridge, but I can not get Mosquitto and Hass talking.
Any help would be greatly appreciated
Here is what I have
configuration.yaml :
mqtt:
broker: 172.17.0.1 ### also tried “localhost”
port: 1883
client_id: hassio
keepalive: 60
discovery: true
discovery_prefix: smartthings
Mosquitto broker:
{
“plain”: true,
“ssl”: false,
“anonymous”: true,
“logins”: ,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
No changes to ports. Logs:
starting version 3.2.2
1516575569: mosquitto version 1.4.12 (build date 2017-06-01 13:03:48+0000) starting
1516575569: Config loaded from /etc/mosquitto.conf.
1516575569: Opening ipv4 listen socket on port 1883.
1516575569: Opening ipv6 listen socket on port 1883.
1516575569: Warning: Mosquitto should not be run as root/administrator.
1516575569: New connection from 172.30.32.1 on port 1883.
1516575569: New client connected from 172.30.32.1 as hassio (c1, k60).
1516575570: New connection from 172.30.32.1 on port 1883.
1516575570: New client connected from 172.30.32.1 as mqttjs_3061accc (c1, k10).
1516575905: Socket error on client mqttjs_3061accc, disconnecting.
1516575917: New connection from 172.30.32.1 on port 1883.
1516575917: New client connected from 172.30.32.1 as mqttjs_01cd1151 (c1, k10).
SmartThingsBridge
Options:
{
“broker_host”: “172.17.0.1”, ## have also tried “localhost”
“broker_port”: 1883,
“preface”: “smartthings”,
“state_suffix”: “state”,
“command_suffix”: “cmd”,
“login”: “”, ## have also tried “login”
“password”: “”, ## have also tried “password”
“bridge_port”: 2080
}
Logs:
starting version 3.2.2
info: Starting SmartThings MQTT Bridge - v1.3.4
info: Loading configuration
info: Loading previous state
info: Perfoming configuration migration
info: Saving current state
info: Connecting to MQTT at mqtt://172.17.0.1:1883
info: Configuring autosave
info: Configuring API
info: Listening at http://localhost:2080
info: Incoming message from SmartThings: smartthings/Garage Illuminance/illuminance/state = 916
info: Incoming message from SmartThings: smartthings/Kitchen Lights/switch/state = on
info: Incoming message from SmartThings: smartthings/Garage Temperature/temperature/state = 72
info: Incoming message from SmartThings: smartthings/Garage Temperature/temperature/state = 73
info: Incoming message from SmartThings: smartthings/Garage Illuminance/illuminance/state = 910
info: Incoming message from SmartThings: smartthings/Backyard - Hill Lights/switch/state = on
info: Saving current state
info: Subscribing to smartthings/Entry Hall Sensor/acceleration/cmd, smartthings/Master Bedroom Sensor/
Examples of switches, which should work as they worked on a non “Hass.io image” install, prior to this fresh install.
-
platform: mqtt
name: “Pool - Pool Light”
state_topic: “smartthings/Pool - Pool Light/switch”
command_topic: “smartthings/Pool - Pool Light/switch”
payload_on: “on”
payload_off: “off”
retain: true
-
platform: mqtt
name: “Pool - Spa Light”
state_topic: “smartthings/Pool - Spa Light/switch”
command_topic: “smartthings/Pool - Spa Light/switch”
payload_on: “on”
payload_off: “off”
retain: true
-
platform: mqtt
name: “Whole House Fan”
state_topic: “smartthings/Whole House Fan/switch”
command_topic: “smartthings/Whole House Fan/switch”
payload_on: “on”
payload_off: “off”
retain: true