MacWyznawca / homebridge-mqtt-switch-tasmota

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

Home App 'flashes' device on but remains with status off #8

Open bluephlame opened 7 years ago

bluephlame commented 7 years ago

I have just configured the plugin with mosquitto as the mqtt server on a raspberry pi. I am using a sonoff dual running tasmota firmware.

Currently when I press the button in the home.app If the lights are off they turn on, however, the status flashes to on, then back to off immediately.

here is a look at the config file for one of four accessories I have configured, almost all identical except for the POWER2 is used for the second accessory for the DUAL and the 'kitchen' topic is different.

{ "accessory": "mqtt-switch-tasmota", "switchType": "light",

        "name": "Kitchen Down Lights",

        "url": "mqtt://raspberrypi.fritz.box",
        "username": "MQTT USER NAME",
        "password": "MQTT PASSWORD",

        "topics": {
            "statusGet": "stat/kitchen/RESULT",
            "statusSet": "cmnd/kitchen/POWER1",
            "stateGet": "tele/kitchen/STATE"
        },
        "onValue": "ON",
        "offValue": "OFF",

        "activityTopic": "tele/kitchen/LWT",
        "activityParameter": "Online",

        "startCmd": "cmnd/kitchen/TelePeriod",
        "startParameter": "60"        
    },

Thanks for your help!