@Carlos_Roldao I have a similar issue like jbdiablo here is my log data, in the logs says that the Key is invalid but it is a new Key that I just created from the govee app
2024-08-03 15:51:08.695 WARNING (MainThread) [custom_components.govee] API is back online.
2024-08-03 15:51:08.696 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-08-03 15:51:08.696 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-08-03 15:51:08.697 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, 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'?
2024-08-03 15:51:19.356 WARNING (MainThread) [custom_components.govee] API is back online.
2024-08-03 15:51:19.357 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-08-03 15:51:19.358 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-08-03 15:51:19.358 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, 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'?
2024-08-03 15:53:00.118 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2024-08-03 15:53:00.118 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/govee_api_laggat/govee_api_laggat.py", line 300, in _schedule_get_devices
await asyncio.sleep(SCHEDULE_GET_DEVICES_SECONDS) # TODO: define SCHEDULE_GET_DEVICES_SECONDS
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'SCHEDULE_GET_DEVICES_SECONDS' is not defined
2024-08-03 15:56:23.758 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-08-03 15:56:23.761 ERROR (MainThread) [custom_components.govee.config_flow] Cannot connect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
Traceback (most recent call last):
File "/config/custom_components/govee/config_flow.py", line 126, in async_step_user
user_input = await validate_api_key(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/govee/config_flow.py", line 32, in validate_api_key
raise CannotConnect(error)
custom_components.govee.config_flow.CannotConnect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-08-03 15:59:07.986 WARNING (MainThread) [custom_components.govee] API is back online.
2024-08-03 15:59:07.986 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API: API-Error 401: {"message":"Invalid API Key","status":401}
2024-08-03 15:59:07.987 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, 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'?
2024-08-03 16:00:08.693 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-08-03 16:00:08.697 ERROR (MainThread) [custom_components.govee.config_flow] Cannot connect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
Traceback (most recent call last):
File "/config/custom_components/govee/config_flow.py", line 66, in async_step_user
user_input = await validate_api_key(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/govee/config_flow.py", line 32, in validate_api_key
raise CannotConnect(error)
custom_components.govee.config_flow.CannotConnect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-08-03 16:00:12.743 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-08-03 16:00:12.746 ERROR (MainThread) [custom_components.govee.config_flow] Cannot connect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
Traceback (most recent call last):
File "/config/custom_components/govee/config_flow.py", line 66, in async_step_user
user_input = await validate_api_key(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/govee/config_flow.py", line 32, in validate_api_key
raise CannotConnect(error)
custom_components.govee.config_flow.CannotConnect: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-08-03 16:02:08.558 WARNING (MainThread) [custom_components.govee] API is back online.
2024-08-03 16:02:08.560 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API: API-Error 401: {"message":"Invalid API Key","status":401}
2024-08-03 16:02:08.561 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, 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'?