arachnetech / homebridge-mqttthing

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

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

Open derflerd opened 7 months ago

derflerd commented 7 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 6 months ago

I also found this problem, how to solve it?

derflerd commented 6 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

abrownsword commented 1 day ago

I think I'm having the same problem. It is as if state changes aren't being forwarded to HomeKit, but state changes from HomeKit are being forwarded to other mqtt clients. My "device" has all the lights in the house (~60) and HomeKit generally shows the wrong state, but you can turn them on/off and then it is correct (until they are controlled via something other than HomeKit).