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

Is there an option to "toggle" the switch topic? #146

Closed amercer86 closed 6 years ago

amercer86 commented 6 years ago

I dug around but wasn't able to definitively find out if there's a payload that will toggle the smartthings/device name/switch topic. (Toggle meaning if the switch is on, the payload turns it off. If it's already off, that same payload turns it on.)

amercer86 commented 6 years ago

I'm guessing there isn't. I ended up building a little flow that, when "on" or "off" is published to the topic, it stores the payload so when "toggle" is published to the topic it references the last state and does the opposite.