arachnetech / homebridge-mqttthing

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

Brightness and Color Settings Jumping Around #540

Open sabaatworld opened 2 years ago

sabaatworld commented 2 years ago

I've set up an RGB Light Bulb with the following config:

        {
            "type": "lightbulb-RGB",
            "name": "TV Ambilight",
            "mqttPubOptions": {
                "retain": false
            },
            "logMqtt": false,
            "optimizePublishing": false,
            "topics": {
                "getRGB": "rpi-0-w/tv-ambilight/getRGB",
                "setRGB": "rpi-0-w/tv-ambilight/setRGB",
                "getMotionDetected": "rpi0w/guest-room-pir",
                "getOn": "rpi-0-w/tv-ambilight/getOn",
                "setOn": "rpi-0-w/tv-ambilight/setOn"
            },
            "confirmationIndicateOffline": true,
            "accessory": "mqttthing"
        }

I've tried setting debounce, removing setOn but the brightness and color settings alway jump around for a while until they settle onto my selected value. Note that the light color doesn't actually bounce around and stays at what I selected it to be. Also there are no extra MQTT messages going back and forth during this time. This happens only on iOS and not Mac.

ezgif com-gif-maker-2

ezgif com-gif-maker-3