stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
363 stars 241 forks source link

Command topic for ST socket switch #33

Open ahume opened 8 years ago

ahume commented 8 years ago

I'm trying to work with the ST branded socket switch. I can read the state with smartthings/Device Name/switch, which returns on/off.

But I'm not sure of the topic to set the switch on/off from hass.

I'm using v1.2.0, and the config looks like...

switch:
  platform: mqtt
  name: "Device Name"
  state_topic: "smartthings/Device Name/switch"
  command_topic: "smartthings/Device Name/switch"
  payload_on: "on"
  payload_off: "off"
  retain: true
jer commented 8 years ago

To set the state, you use the command_topic. If you haven't configured anything different in the bridge, state and command should always be the same. Is it not setting the switch state when you change "smartthings/Device Name/switch" to on/off?

stjohnjohnson commented 8 years ago

Are you still running into issues?