MacWyznawca / homebridge-mqtt-switch-tasmota

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

Button instead of Switch? #57

Open Jafalex opened 4 years ago

Jafalex commented 4 years ago

I have the following config working fine for opening the outdoor gate. Only annoying thing is that the RF command is executed by Tasmota only when the switch in Home is turned OFF.

So currently, in order to open/close the gate, I have to first turn the switch ON (which sends MQT: stat/rfbridge/RESULT = {"RfKey1":"Default sent"}) and then turn it OFF (which sends the expected MQT: stat/rfbridge/RESULT = {"RfKey1":"Learned sent"}).

Can I have a simple “statelessProgrammableSwitch” or equivalent, that simplifies this process in the Home app?

Thanks in advance for your help.

Config:

        {
            "accessory": "mqtt-switch-tasmota",
            "switchType": "",
            "name": "Gate",
            "url": "mqtt://192.168.8.25:1883",
            "username": "",
            "password": "",
            "topics": {
                "stateGet": "tele/rfbridge/STATE",
                "statusGet": "stat/rfbridge/POWER",
                "statusSet": "cmnd/rfbridge/RfKey1"
            },
            "onValue": "ON",
            "offValue": "OFF",
            "activityTopic": "tele/rfbridge/LWT",
            "activityParameter": "Online"
        }