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 homeassistant,
but the switch does not change in homeassistant for that device, and i can’t control the device from homeassistant, nor does it show anything when i turn the switch in home assistant, if i click the switch, it turns back to off after a second.
i followed this guide: https://www.youtube.com/watch?v=lUsMVrs1ot0
this is my conf in homeassistant.yaml
username: not for you
password: not for you
- platform: mqtt
name: “Byro Stora Sovrummet”
state_topic: “smartthings/2:Byro Stora Sovrummet/switch”
command_topic: “smartthings/2:Byro Stora Sovrummet/switch”
and this is the conf from opt/mqtt-bridge/config.yml
# Specify your MQTT Broker’s hostname or IP address here
# Preface for the topics $PREFACE/$DEVICE_NAME/$PROPERTY
# 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
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 │