hacs-govee: Integration not working, configuring error: object has no attribute 'rate_limit_delay'

Configuration stopped working at all. Have 2 devices (H605C and H6067) and all not working. Configuration error. Devices working ok via Govee app.

Version of the custom_component 2023.11.1

Logs:

Rejestrator: custom_components.govee
Źródło: custom_components/govee/__init__.py:66
integracja: Govee (dokumentacja, Problemy)
Pierwsze zdarzenie: 21:54:59 (5 zdarzenia)
Ostatnio zalogowany: 22:45:58

Could not connect to Govee API: API: API-Error 500: {"message":"service is busy please try again later","status":500}

AND

Rejestrator: homeassistant.config_entries
Źródło: config_entries.py:604
Pierwsze zdarzenie: 21:54:59 (5 zdarzenia)
Ostatnio zalogowany: 22:45:58

Error setting up entry govee for govee
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/govee/__init__.py", line 67, in async_setup_entry
    await hub.rate_limit_delay()
          ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Govee' object has no attribute 'rate_limit_delay'. Did you mean: 'rate_limit_reset'?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 18
  • Comments: 48 (2 by maintainers)

Most upvoted comments

Same issues for me after updating to 2024.9.2

Fwiw, it’s just self-corrected for me. After updating to 9.2 (could be coincidence), I went 2 days with the api error, and now it came back to normal, after just another reload of the integration.

I got a mail back from Govee apologising that their server was down.

It’s actually really annoying a tv backlight requires an internet connection to work or bluetooth when most other Govee lights have a LAN api.

That’s the v1 API. Try the v2 one, and you’ll see the 500 error we’re all getting

On Tue, Sep 17, 2024, 3:15 PM chadpatt @.***> wrote:

@WinesProof https://github.com/WinesProof , Here is what I tested with to get details. And then toggled on/off light with the second curl command.

Get curl -X GET “https://openapi.api.govee.com/router/api/v1/user/devices” -H “Content-Type: application/json” -H “Govee-API-Key: xxxxx”

Post curl -X POST “https://openapi.api.govee.com/router/api/v1/device/control” -H “Content-Type: application/json” -H “Govee-API-Key: xxxxxxx” -d ‘{ “requestId”: “uuid”, “payload”: { “sku”: “H6054”, “device”: “E7:D2:A4:xx:xx:xx:xx”, “capability”: { “type”: “devices.capabilities.on_off”, “instance”: “powerSwitch”, “value”: 0 } } }’

— Reply to this email directly, view it on GitHub https://github.com/LaggAt/hacs-govee/issues/172#issuecomment-2357028849, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDWG2QYFQR25FFZ6PFOKOMDZXCSYXAVCNFSM6AAAAABOKCWKNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXGAZDQOBUHE . You are receiving this because you were mentioned.Message ID: @.***>

I have a lot of experience with python. I almost 100% guarantee that the issue is an underly module in either home core or a pip package that has been updated. I took their API examples and it works perfectly using them to call the external API using the API-Key. So, not key and not Govee API. Not really sure how to get into the home core for debugging, but will keep looking.

i just migrated to https://github.com/wez/govee2mqtt and all working ok. Last release of this govee inytergration was Nov 19, 2023. looking at the reported problems here to anyone I suggest switching to the mentioned repo to keep the devices running in HA.

govee2mqtt seems to work beautifully! I might be switching to that Add-On now.

I did, and now the devices that can be controlled through Local API (LAN) do not have that annoying 2 seconds delay.

This issue made me re-evaluate gove2mqtt and, for me, local API is better than anything else.

I’m also seeing this issue. I tried deleting and re-adding the integration and I get the message that Cannot connect. Is the API-Key correct and the internet connection working?