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
Order of websocket events #101
Comments
The Hue dimmer switch works differently from other switches. When your press and release a button, it actually sends three ZigBee messages:
I suppose it depends on your system and ZigBee network load, whether 1) or 2) reaches the bridge first. I'll do some ZigBee sniffing to confirm whether this is the actual order in which the ZigBee messages are sent. Other switches only send 2) (either on press or on release) and the gateway reverse engineers the button event from the command, so you would always see the button event notification first. |
For dimming that's odd. What lights are you dimming? I don't see any light state messages for my Philips lights when pressing the DimUp or DimDown buttons. This makes sense, as the gateway cannot predict the new light state because it's relative to the current state (same for the Trådfri remote On/Off button, which sends a toggle command). So it doesn't update the cached state and therefore it doesn't issue any notification. |
Thanks for the explanation. |
I've a Hue dimmer switch linked to a group with one light. There are no rules configured in the REST api.
When I press the off button, the light is turned off as excepted and I get the following websocket events:
I would expect at least the event of the first button press before the event of the new light state. For example:
The same thing holds for turning on the lights and dimming (up/down). I get the new light state before the sensor state.
The text was updated successfully, but these errors were encountered: