smartthings-mqtt-bridge icon indicating copy to clipboard operation
smartthings-mqtt-bridge copied to clipboard

Initial states aren't published to MQTT

Open rwagoner opened this issue 7 years ago • 1 comments

There is no way to push the initial state to MQTT from the SmartThings app. The state is only pushed to MQTT on change. When first installing I have to touch every device I want to use in MQTT to see the topic appear. Additionally if your system is offline the state can be out of sync. I'm proposing adding a Refresh button in the SmartThings app to enumerate all items and immediately push the state.

rwagoner avatar Oct 24 '18 12:10 rwagoner

If a global Refresh button is not an option, how about support for state queries via MQTT publish? IE: sending an MQTT publish command to "smartthings/Bedroom Fan/switch/cmd" with a payload of "?" (or whatever you feel would be appropriate) would cause the bridge to return "smartthings/Bedroom Fan/switch/state = on" or "smartthings/Bedroom Fan/switch/state = off" without actually changing the current state.

Shadowpheonix avatar Feb 18 '19 23:02 Shadowpheonix