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
Unhandled Hue events #49
Comments
This comment has been minimized.
This comment has been minimized.
@Mariusthvdb how is this even related to what is presented in the OP? 😕 |
Sorry but I interpreted Paulus's last sentence ('more attributes') as a call for which attributes we would like see added. Given the fact attribute 'reachable' was not listed, that would be relevant. As for the group/zone handling, I am not sure how to add the event for Zone's, because current HA Hue integration doesn't discern between the 2. |
This issue is about events. This attributes is about the ones that are extracted from events. |
|
Here's a ZGP button press (originating from a Friend of Hue switch):
Is this format useful to you? The button itself doesn't have an actual state since it's just appearing as events in Home Assistant. I also found this in the log:
This is taken from |
PR to handle button events #52 |
In case it is useful, this is from a ZLLSwitchSensor (the standard Hue Dimmer Switch). Seems to be the exact same format as for the ZGP above:
|
Support for both ZLL and ZGP Switch sensors are in aiohue 2.5.0. (HA PR home-assistant/core#50748) |
Tested and it works great! |
I did some more testing and noticed I miss a long press or hold event for my ZGP switch. At least the Hue app supports that event and this is what the log provides:
Please let me know if you need more data or logs. Happy Friday! |
So it does not provide us any info about long-press or hold, that would all be software-based. (calculating time between |
I guess we can do that. Do we know a definition of a long press in ms? |
I've done some fairly unscientific testing via deCONZ with a Hue dimmer and this is how they handle the events:
There's roughly 1000ms between the click and release -- I tried a couple of times but wasn't able to achieve anything < 1000ms. |
Is this what you are looking for: the 'hold release' events?
mm, guess not, because thats already in core. sorry. |
Those, but for a ZGP switch, which currently doesn't produce that long_press or _hold event. |
@SeraphimSerapis did we have these events before? When we didn't have push? |
@bramkragten I just tested and it seems like the current These are the event codes that are available -- matching what the push-based version is able to do:
It seems like deCONZ and the Hue app do some software-based work on those buttons to emulate a hold event. deCONZ uses the codes as specified in the docs. |
would a light level change of the motion_sensor constitute an event? seems these attributes still are not pushed immediately. (only upon motion sensing) |
They don't cause an event, so we can't handle it. |
ok, thanks. and now we are no longer polling the HUB, light_level changes are no longer updated anymore at all? |
polling still happens. |
thats good to know, which interval please? must be over a minute, because locally the light_levels are not changing within that timeframe. (unless motion is recorded that is) |
Dunno, but this issue is about collecting unhandled events, I suggest using the Home Assistant forums or chat for general support. |
I've got a few events occurring for Hue Motion sensors that dont seem to be getting handled, ZLLLightLevelSensor and ZLLTemperatureSensor. Examples below - hope its of use.
|
closing this issue as it is stale and we released the V2 implementation including the full support of all events |
Current supported Hue events:
Light.process_update_event
color/xy
,color_temperature/mirek
,on/on
,dimming/brightness
Group.process_update_event
on/on
ZLLPresenceSensor.process_update_event
motion/presence
ZGPSwitchSensor.process_update_event
button
ZLLSwitchSensor.process_update_event
button
If you have a missing event, please post them here so we can update our code. It will update a lot if you could also include the
state
property of your device so we know how an event could be applied to the state and update it.If you want to help and make PRs, add methods like we have for
light
andgroup
, but handle other event types likemotion
or more attributes.The text was updated successfully, but these errors were encountered: