Having a somewhat related issue with the Hue binding in 3.4.0. No delays but it is frequently missing key press/release events from the Dimmer Switch (tested with model RWL022, the new model with Hue logo on the lower button).
Often have to press it a few times before a Key Press event is triggered. Also, it usually triggers only one of the events that get generated from the bridge by pressing and releasing a key. The ON/OFF key for instance when pressed briefly should generate a 1000.0 (Initial Pressed) followed by a 1002.0 (Key Short Released). But I usually only get the first and sometimes only the second, but hardly ever both.
The bridge does get the events as I can see from the CLIP debug web interface. As a test I pressed and released Key 1 on the dimmer switch and nothing shows up in events.log but the status is updated in the bridge:
initial setup of openHAB 3.4 with corresponding Hue binding was successful. But after some time of operation the whole system became very instable. Beginning with delays the system then completely froze and restarted unpredictably.
At first, cause was not identifiable: could have been openHAB itselft, zigbee2mqtt, Hue binding, my individual rules, VS Code… Log viewer did not report any clear indication.
Did several ‘Greenfield’ setup approaches with two Raspis (SSD and SD card) using latest openhabian image: at least after 18 hours of operation the system was no longer usable.
After two weeks of suffering I became aware of the change ‘HTTP → HTTPS’ for Hue binding in openHAB 3.4. Manually siwtched back to HTTP and since then openHAB 3.4 is running well.
UPDATE/EDIT: after 18h system crashed again. ‘HTTP’ did not fix it completely. Would like to downgrade binding to v3.3 but I fail in finding a way to do so…
Why do you think the crash is due to the hue binding?
Because I am using the same binding since many days without any delay or crash.
Maybe something else like another of your installed bindings is the root cause?
I’ve been discovering this problem since openHAB 3.3. Unfortunatly it’s not reproducible for me. Sometimes it tooks a few seconds, before a openHAB-command/-event is recognized by the Hue bridge, other times it reacts in a few milliseconds.
As I have analysed this with tcpdump, there is a lot of communication between openHAB and the Hue bridge. I’m not sure if the problem occurs when you add a huge number of Hue Elements (bulbs, sensors, etc.) to the bridge or by another event. Maybee it’s possible to loose some events in case of intense communication between Bridge and openHAB. As I’ve seen in Wireshark the bridge sends Updates to openHAB while openHAB sends shortly after that new Events to the Bridge. Perhaps someone could confirm or analyze this behaviour.
I’m not sure, since when the problem exists. But I remember I’ve done something with scenes in openHAB and in the Hue App.
My issue was a bit different, but moving several switches and lights from the bridge that had about the maximum number of devices to the second bridge that had only a few devices solved my issue of missed key presses completely.
After upgrade to 3.4.1 my system is running smooth for a few days now.
Will keep track and report here. If everything runs smooth til end of the month I will close th GH issue.
Does anyone have any thoughts on how to troubleshoot / fix? Happy to help but not really sure where to start. It’s quite a big deal for me as I have numerous motion sensors that trigger lights and none of this is working currently
Did anybody find a solution for the slow behaviour?
I recognized slow updates from the Hue motion sensors out of a sudden.
I was using the Hue binding successfully for a long time and didn’t touch anything of my OpenHAB v3.4.1. Maybe this is related to automatic updates of the Philips Hue Bridge itself, which were done during May.
Updating to OpenHAB v3.4.4 did not help.
It’s definitely an issues with OpenHAB/Hue binding, because I see other apps (like Apple HomeKit) and the native Philips Hue App reporting quickly about movings via the Hue motion sensors. Only OpenHAB needs up to about 1 minute to report about changes. Checked via events.log file.
Unfortunately the recommended new version of the Hue binding with API v2 support does not work with my OpenHAB installation - opened different thread for this.