-
Notifications
You must be signed in to change notification settings - Fork 725
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
[BUG] Philips Hue Wall Switch and Dimmer Switch emit event 400 ms too late #3668
Comments
Are you searing lights with your automation or other things ? |
Many of my automations for the lights have conditions so binding is unfortunately not always an option. I see that this behavior was changed in the d84d94f commit which added "simulated short events". May I suggest to remove the simulated short events and instead send the short events immediately? A multi-press event would then first have multiples of press+release events and then the multiple press event. There is probably a need for having a "single press" event that is sent after the multi-press event evaulation in case of a single press. |
The right way is using one light switch controller for direct controlling light and one "HA switch" for doing other click clicks animations and not simulation functions for the devices that is int native implanted in them. |
Several hundereds of milliseconds ;) I'll prepare a PR. |
Bug description
Back in October, or was it November, I noticed that my Hue switches (wall and dimmer) started having a very noticeable delay when pressing a button until something actually happened (light turned on or off). I trigger on the
short_release
event which now is delayed alot.For the Dimmer Switch there actually are two other events,
on
andoff_with_effect
, that are emitted immediately when pressing the button, but for the Wall Switch there are no such events so there is no workaround.Looking at the logs there are two notifications received for a button, first one with
press_type=0
and then 100ms later one withpress_type=2
, and then 300 ms later (ButtonPressQueue _ms_threshold
?) the event is emitted. This cause a significant and very noticeable delay.I would suggest that always emit an event for the very first command that is received.
Steps to reproduce
Just press a button on a Hue Wall or Dimmer switch and watch the logs or notice the delay if using it to turn on a light.
Expected behavior
The light should toggle instantly when pushing a button on the switch :)
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
[Paste the device signature here]
Diagnostic information
Diagnostic information
[Paste the diagnostic information here]
Logs
Logs
Hue Dimmer Switch:Hue Wall Switch:
Additional information
No response
The text was updated successfully, but these errors were encountered: