arachnetech / homebridge-mqttthing

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

Aqara single key wired wall switch without neutral wire config. #174

Open IronButterfly opened 4 years ago

IronButterfly commented 4 years ago

Could you please assist with the correct config? Tried something like

{
            "accessory": "mqttthing",
            "type": "switch",
            "name": "Light",
            "onValue": "ON",
            "offValue": "OFF",
            "topics": {
                "getSwitch": {
                    "topic": "zigbee2mqtt/0x00158d000359b71d",
                    "apply": "return JSON.parse(message).state;"
                },
                "setOn": "zigbee2mqtt/0x00158d000359b71d/set"
            }
        },

but it doesnt work. Please help.

arachnetech commented 4 years ago

Do you have sample messages that you want to publish and receive?

DCM4711 commented 1 year ago

@IronButterfly: Did you ever find a working config?