arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
469 stars 103 forks source link

3 way switch state issue #382

Open TubadoG opened 3 years ago

TubadoG commented 3 years ago

Hello, thanks for this excellent plugin! I’m having one problem though.

Martin Jerry 3-Way switch (one smart, one dumb setup) Tasmota 9.2 flashed (https://youtu.be/B8YhfZ_LguI) - great video BTW... Homebridge on a RPi with config-ui-x

{ "type": "switch", "name": "MJ3Way2", "url": "192.168.4.40", "logMqtt": true, "topics": { "getOnline": "stat/MJ3Way2/state", "getOn": "stat/MJ3Way2/POWER", "setOn": "cmnd/MJ3Way2/POWER" }, "onValue": "on", "offValue": "off", "accessory": "mqttthing" }

PROBLEM: The state in HomeBridge and HomeKit isn’t respecting state changes issued by the physical switch or the tasmota UI. The HomeKit and HomeBridge switching is working properly though.

Here is a short video of the problem. https://youtu.be/PWFsS40-WhU

QUESTION: Is it intended functionality that MQTT-Thing doesn’t respond to actions from the physical device or is there an error in my configuration, subscriptions, etc...?

Let me know if I can provide any additional details. Thanks in advance!

rbswift commented 3 years ago

I think it's case sensitive. In your video the MQTT messages contain "ON" and "OFF" but your config is lowercase. Try:

            "onValue": "ON",
            "offValue": "OFF",