Skip to content
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

API Not Being Recognized #186

Open
Dawe5ome opened this issue Nov 12, 2024 · 8 comments
Open

API Not Being Recognized #186

Dawe5ome opened this issue Nov 12, 2024 · 8 comments

Comments

@Dawe5ome
Copy link

Version of the custom_component

2023.11.1

Configuration

I had put in my API Key and set my port size originally to 30. I have 10 lights that I am controlling, 8xH6008, 1xH605C, and 1xH7021. 

Describe the bug

A clear and concise description of what the bug is.
When I logged on this morning I had no access or ability to control anything in my smart home. I had just set up my Home Assistant yesterday and then this morning none of the lights were functioning. The logs of what happened can be found below. As a trouble shooting method I tried resetting the integration but now it does not recognize my new API key or my previous one and says to check my connection or the key is correct. I am connected and it is correct.

Debug log


2024-11-12 13:17:23.925 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-12 13:17:23.926 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-12 13:17:23.926 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-12 13:17:25.755 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'adaptive_lighting' calls async_forward_entry_setup for integration, adaptive_lighting with title: Living Room and entry_id: 01JCEM5MBREZQMGKTKDVG12NFE, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/adaptive_lighting/__init__.py, line 69: hass.async_create_task(, please create a bug report at https://github.com/basnijholt/adaptive-lighting/issues
2024-11-12 13:17:26.095 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7fff905ef550>, '/usr/local/lib/python3.12/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'govee' at custom_components/govee/__init__.py, line 53: hub = await Govee.create( (offender: /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at https://github.com/LaggAt/hacs-govee/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
    result = await _async_setup_component(hass, domain, config)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr>
    create_eager_task(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 783, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 546, in async_setup
    await self.__async_setup_with_context(hass, integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/govee/__init__.py", line 53, in async_setup_entry
    hub = await Govee.create(

2024-11-12 13:17:26.300 WARNING (MainThread) [custom_components.govee] API is back online.
2024-11-12 13:17:26.300 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-11-12 13:17:26.300 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-11-12 13:17:26.301 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 635, in __async_setup_with_context
    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'?


@paboman
Copy link

paboman commented Nov 12, 2024

also for me is not recognizing a fresh API key

@petitclercj
Copy link

petitclercj commented Nov 16, 2024

Same problem here, stopped working yesterday, tried adding a new api key today and it doesn't recognize it. Integration doesn't want to launch.

Edit : as of 2024/11/17 13pm EST I was able to add the new api key and it works

@smart978home
Copy link

I just installed HA last night, found and installed the Govee integration and added my API. I created a group for my kitchen lights and added to a custom dash I am creating as a toggle button. I went to create another group of lights but got a little red symbol after creating it, it said unavailable. Now the lights that were just working no longer works. I tried uninstalling and removing the integrations and devices and now the API isn't being recognized. Anyone figure out how to fix this? I also got a new API and that didn't work either.

@YewTreeWeb
Copy link

I'm having the same issue. Everything was working and with my Govee TV lights, added a new led strip and yesterday the integration has stopped working. My poll is at 60 and when I try to add a new API key I get the error 'Cannot connect. Is the API-Key correct and the internet connection working?'

@valentinmirchev
Copy link

I have the same issue. Trying the API key in Postman works out fine and I can fetch a successful result from the API

@gtb08177
Copy link

gtb08177 commented Dec 4, 2024

Also suffering from the above

@u2pitchjami
Copy link

same too :
2024-12-08 19:47:42.025 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-12-08 19:47:42.025 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."}

@Zeldan82
Copy link

Same Issue, I installed it yesterday everything worked fine. Now today nothing is working. It keeps saying API not recognized to check my connection. Please help most of my lights don't have Lan control I have a lot of Bulbs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants