So I am still having issues getting this setup and running. The bridge is connected to MQTT and it APPEARS that HA is connected to MQTT, although I am not 100% sure of that. I see messages coming over from smartthings in the MQTT log, but when I click on my Hall Light in HA, nothing happens. I also have HA setup to show my power usage and inside temp , but they are blank even though I can see the messages in the MQTT log coming over from smartthings. All my configs seem to be correct, but it’s just not working.
HA and MQTT and the broker are all running on the same server. I have tried using the IP address, as well as “localhost” where called for.
configuration.yaml
mqtt:
broker: 192.168.0.90
port: 1883
client_id: hass
keepalive: 60
sensor:
platform: mqtt
state_topic: "smartthings/CT100 Thermostat/temperature"
name: "Indoor Temp"
qos: 0
unit_of_measurement: "°F"
value_template: '{{ value.x }}'
sensor 3:
platform: mqtt
state_topic: "smartthings/Aeon Home Energy Meter/power"
name: "Power Usage"
qos: 0
unit_of_measurement: "Watts"
value_template: '{{ value.x }}'
light:
platform: mqtt
name: "Hall Light"
state_topic: "smartthings/Hall 1/switch"
command_topic: "smartthings/Hall 1/switch/set"
brightness_state_topic: "smartthings/Hall 1/level"
brightness_command_topic: "smartthings/Hall 1/level/set"
state_value_template: "{{ value_json.state }}"
brightness_value_template: "{{ value_json.brightness }}"
payload_on: "ON"
payload_off: "OFF"
optimistic: false
qos: 0
mosquitto.log
1460265298: New connection from 192.168.0.90 on port 1883.
1460265298: New client connected from 192.168.0.90 as hass (c1, k60, u'glenn').
1460265300: Socket error on client hass, disconnecting.
1460265302: New connection from 192.168.0.90 on port 1883.
1460265302: New client connected from 192.168.0.90 as hass (c1, k60, u'glenn').
1460265494: New connection from 192.168.0.90 on port 1883.
1460265494: New client connected from 192.168.0.90 as mqttjs_398dae5b (c1, k10, u'glenn').
1460265921: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1460266773: New connection from 192.168.0.53 on port 1883.
1460266773: New client connected from 192.168.0.53 as glenn (c1, k60, u'glenn').
1460266981: Client hass disconnected.
1460266982: New connection from 192.168.0.90 on port 1883.
1460266982: New client connected from 192.168.0.90 as hass (c1, k60).
1460267722: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.