markbergsma / pimatic-hue-zll

Pimatic integration with Philips Hue (ZLL)
GNU General Public License v2.0
7 stars 4 forks source link

Changing light state about 20 times per second #14

Closed mkremeyer closed 7 years ago

mkremeyer commented 7 years ago

I have a couple lights installed. My bedroom lights somehow keep changing their state a lot. Sometimes it's only light 2, sometimes it's also light 1, the second light in my bedroom. Can't seem to figure out why that is. Don't know how exactly to reproduce, it just happens. No matter if the lights are reachable or not.

Log (going crazy when this happens):

19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":true}
19:18:47debug [pimatic-hue-zll]: Changing light 2 state: {"on":false}

Part of the config (plugin & devices):

    {
      "username": "[api secret]",
      "host": "192.168.1.84",
      "plugin": "hue-zll",
      "active": true,
      "debug": true,
      "hueApiQueueMaxLength": 30
    },

    {
      "class": "HueZLLExtendedColorLight",
      "name": "SZ Decke",
      "hueId": 1,
      "id": "hueSzDecke"
    },
    {
      "class": "HueZLLExtendedColorLight",
      "name": "SZ Klein",
      "hueId": 2,
      "id": "hueSzKlein"
    }

Would you know why that is? Please let me know if you need anything else for debugging.

michbeck100 commented 7 years ago

Do you have the pimatic-hap plugin installed, too? If yes, then please update to the latest version (0.9.0). The flickering error should be gone then.

mkremeyer commented 7 years ago

Yup, had pimatic-hap installed as well. Turned it off because I suspected it to also mess with pimatic-max, but I'll reconsider turning it on (most recent version, then) when I have time to look into it again. Thanks!