1
Hi am very new to this and rely need some help.
i have a smartthings hub v2 that i connected to my hassbian installation.
But it doesn’t work, if i use: sudo mosquitto_sub -u mosquitto_user -P mosquitto_password -v -t
I can see the device i added in the app change to on/off when i turn it on/off from smartthings
and the switch change state in homeassistant, if i klick the device in homeassistant it goes to on/off but nothing happens.
if i turn it on/off using smartthings it changes stat in homeassistant.
so way can i control it from homeassistant, is it a right ichu?
i followed this guide: https://www.youtube.com/watch?v=lUsMVrs1ot0
this is my conf in homeassistant.yaml
mqtt:
broker: localhost
port: 8081
protocol: 3.1
keepalive: 60
client_id: smartthings
username: not for you
password: not for you
switch:
platform: mqtt
name: “Byro Stora Sovrummet”
state_topic: “smartthings/2:Byro Stora Sovrummet/switch”
command_topic: “smartthings/2:Byro Stora Sovrummet/switch”
payload_on: “on”
payload_off: “off”
retain: true
and this is the conf from opt/mqtt-bridge/config.yml
mqtt:
Specify your MQTT Broker’s hostname or IP address here
host: 192.168.1.194:1883
Preface for the topics $PREFACE/$DEVICE_NAME/$PROPERTY
preface: smartthings
The write and read suffixes need to be different to be able to differentiate when state comes from SmartThings or wh$
Suffix for the topics that receive state from SmartThings $PREFACE/$DEVICE_NAME/$PROPERTY/$STATE_READ_SUFFIX
Your physical device or application should subscribe to this topic to get updated status from SmartThings
state_read_suffix: state
Suffix for the topics to send state back to SmartThings $PREFACE/$DEVICE_NAME/$PROPERTY/$STATE_WRITE_SUFFIX
your physical device or application should write to this topic to update the state of SmartThings devices that suppo$
state_write_suffix: set_state
Suffix for the command topics $PREFACE/$DEVICE_NAME/$PROPERTY/$COMMAND_SUFFIX
command_suffix: cmd
Other optional settings from https://www.npmjs.com/package/mqtt#mqttclientstreambuilder-options
username: not for you
password: not for you
Port number to listen on
port: 8081
If i open a brower and go to http://192.168.1.194:8081 i gett: Cannot GET /
and when i run: pm2 start smartthings-mqtt-bridge i gett:
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├─────────────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ smartthings-mqtt-bridge │ 0 │ fork │ 11207 │ online │ 2 │ 0s │ 59% │ 13.9 MB │ pi │ disabled │
//Regards