MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

Adding fix to Sonoff DUAL power status #9

Closed bluephlame closed 7 years ago

bluephlame commented 7 years ago

The Dual returns the message { POWER1 : ON } or { POWER2 : ON } whereas the regular Sonoff switch is { POWER : ON } This patch makes it look at the correct Power only.

Also, @Arduingo your fix was throwing an error, where the no_callback was not defined. I set that to null.

bluephlame commented 7 years ago

This should fix #8

sfanicola commented 7 years ago

Hi guys, Am I wrong or the fix for the status was merged in the code? I still have the problem on my Sonoff Dual! When I press a button of it, the power command goes, the button lights on and immediately lights off.

Sonsi79 commented 7 years ago

Me too, same problem :-(