-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hue] Unreliable Events from Hue Dimmer Switch #6577
Comments
You just did, but yes ;-)
Hm, I only read "probably cause by the polling strategy implemented in the binding" and I am not aware that anything has changed about the polling strategy since 2.4, so I am not sure, what can cause problems on 2.5, which weren't there on 2.4. |
I jumped into the code quikly and just wanted to set-up a the Hue binding, connection to the Hue Bridge and a Hue Dimmer Switch in my Eclipse IDE. I enabled TRACE logging for the binding. I linked the
After starting OH2 from the IDE and pressing a button on the remote my log went mad and the IDE crashed. Log output looks like this - there certainly is a bug - lets see how far I can get:
|
I proposed a fix for the missing events in #6579 which ensures that every event we will receive from the hue API will be forwarded towards the framework. BUT I have to add a note on this: The hue API issues one event per second (at maximum). Meaning if you are capable of pressing the button of your remote more than once per second even the hue API will miss those events and we cannot emit them either. |
Parallel to my “production” setup i got a docker container with the current 2.5 Milestone Build.
I found out that lights that i control with the Philips Hue Dimmer Switch via the Milestone Build i got unreliable events from the button.
Here is the events.log part of the Build:
As you can see the Short Release events is triggered 10 seconds after the initial pressed events. sometimes i got a lot of 4000.0 events and NO 4002.0 event.
In my production setup based on the 2.4 stable version that same event from the same bridge looks like this:
Basically i am missing a lot of *002.0 events or they got send much too late.
Should i open an issue on github for this?
The openhab.log file looks clean during this time period.
Here are some hints by cweitkamp of the root cause of this issue:
https://community.openhab.org/t/unreliable-philips-hue-dimmer-switch-events-with-current-2-5-milestone-m4-build/84650/19?u=regnets
The text was updated successfully, but these errors were encountered: