home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

Philips Hue Wall module has 1 second lag #64712

Closed tamueller closed 2 years ago

tamueller commented 2 years ago

The problem

I have a philips hue wall module connected via a philips hue bridge, and the "short_release" event has a 1 second lag.

Excpected behaviour: When I press the button I instantly get an "initial_press" event. When I release the button I instantly get an "short_release" or "long_release" event.

Actual behaviour: When I press the button I instantly get an "initial_press" event. When I release the button within a second, I get the "short_release" event exactly a second after the "initial_press" event, even I if release much faster than that.

Using conbee II I verified that the wall module indeed sends the event 1002 or 1003 intstantly, so this seems to be a bug in philips hue integration in home assistant core.

What version of Home Assistant Core has the issue?

core-2021.12.10

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Philips Hue

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hue/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

This is a log of the events, I pressed and immediately released the button, so the time difference should be less than 50ms, but it's very close to a second.

{
    "event_type": "hue_event",
    "data": {
        "id": "hue_wall_switch_module_3_button",
        "device_id": "8a3dd90ad57f60749467abc1813e3499",
        "unique_id": "2041ef84-6490-47c9-9dcf-462d05c5c148",
        "type": "short_release",
        "subtype": 1
    },
    "origin": "LOCAL",
    "time_fired": "2022-01-22T18:43:51.580870+00:00",
    "context": {
        "id": "594e03619e6a24cfd43ab6274fa06a5b",
        "parent_id": null,
        "user_id": null
    }
}
Event 0 fired 7:43 PM:
{
    "event_type": "hue_event",
    "data": {
        "id": "hue_wall_switch_module_3_button",
        "device_id": "8a3dd90ad57f60749467abc1813e3499",
        "unique_id": "2041ef84-6490-47c9-9dcf-462d05c5c148",
        "type": "initial_press",
        "subtype": 1
    },
    "origin": "LOCAL",
    "time_fired": "2022-01-22T18:43:50.575192+00:00",
    "context": {
        "id": "11c4bf9bb4eefde186199c4cfa307ed1",
        "parent_id": null,
        "user_id": null
    }
}

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

hue documentation hue source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @balloob, @marcelveldt, mind taking a look at this issue as it has been labeled with an integration (hue) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

marcelveldt commented 2 years ago

Unfortunately there's a 1 second rate limit on events emitted by devices on the Hue API. Signify is considering removing this limit for button events on our request but it won't be fixed any time soon, sorry.