Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command topic for ST socket switch #33

Open
ahume opened this issue Apr 17, 2016 · 2 comments
Open

Command topic for ST socket switch #33

ahume opened this issue Apr 17, 2016 · 2 comments

Comments

@ahume
Copy link

ahume commented Apr 17, 2016

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
Copy link
Collaborator

jer commented Apr 17, 2016

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
Copy link
Owner

Are you still running into issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants