arachnetech / homebridge-mqttthing

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

Fan type error in logs keeps repeating, fan does work and is updated inside HomeKit. #575

Open danielpetrovic opened 2 years ago

danielpetrovic commented 2 years ago

[homebridge-mqttthing] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: This callback function has already been called by someone else; it can only be called one time.. See https://homebridge.io/w/JtMGR for more info.

Fan type error above in logs keeps repeating every time the values change, fan does work and is updated inside HomeKit. When I change the fan to be a AirPurifier, the error is gone. Same parameters/MQTT data/sources.

Config of one of the fans:

        {
            "type": "fan",
            "name": "DucoBox Ventilator",
            "topics": {
                "getRotationSpeed": "DUCO/Node1$.trgt"
            },
            "accessory": "mqttthing"
        },

Am I missing something in my config to fix this error?

NickLplus commented 2 years ago

I'm having exactly the same issue. But power does work when fed with true/false, { "type": "fan", "name": "Attic Exhaust Fan", "topics": { "getOn": "stat/AtticExhaustFan$.power" }, "accessory": "mqttthing" }