stjohnjohnson / smartthings-mqtt-bridge

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

When favoring level data over switch data, make sure level is > 0. Fixes #127 #132

Closed airdrummingfool closed 6 years ago

airdrummingfool commented 6 years ago

In the (ostensibly common) situation that a switch is off and its level is 0, for an "on" command the bridge is setting level to 0, which doesn't turn on the device. This should fix #127.

stjohnjohnson commented 6 years ago