arachnetech / homebridge-mqttthing

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

can’t get status light on or off at homekit #674

Open derflerd opened 6 months ago

derflerd commented 6 months ago

I have a problem updating the light switches. Works correctly when I turn on / off the light in the Home App on iOS or in the plugin accessories at homebridge-ui-x. However, it does not work as I turn it off I turn off the light with a physical switch on the wall, can’t get status that update on the homekit

i have zbmini L2. it work great with zigbee2mqtt but i want to work with mqttthing because i get change from switch to light.

this is the code i make:

{ "type": "lightbulb", "name": "תאורת כניסה", "logMqtt": true, "topics": { "getOn": { "topic": "zigbee2mqtt/0x3c2ef5fffeba1064", "apply": "return JSON.parse(message).state" }, "setOn": { "topic": "zigbee2mqtt/0x3c2ef5fffeba1064/set" } }, "onValue": "ON", "offValue": "OFF", "accessory": "mqttthing" }, {

itongjun commented 5 months ago

I also found this problem, how to solve it?

derflerd commented 5 months ago

Unfortunately I could not find a solution yet. for now i working with zigbee2mqtt that make the job automimic but show me as switch button I tried every suggestion on the net