Trying to install Govee integration and and getting the error "Cannot connect. Is the API-Key correct and the internet connection working?"

the API should be good. It was installed and working for about two weeks and stopped working. i tried to delete the integration and reinstall. i tried the original API which gave me the error and even requested another API which did not work either.

Same thing happened to me earlier. HA integration has been working fine for months until today. I updated my Govee devices and reconnected them to wifi using the Govee app. Also obtained a new API key and added as a new HA integration. My guess is the integration broke with the update or Govee’s service is down.

right on…thank you for your reply :)… when i woke up this morning it connected just fine… i wish they would just give us local control…

i did send an email to govee support last night about my issue… here is their reply:

"Thank you for contacting Govee here.
Due to the limited resources of the API server, the flow of some high-frequency API calls will be limited in order to make the API server more stable and serve more users.
The limit on API call frequency was implemented started May 5, 2022.
If your current usage scenario calls the API frequently, your application might be affected and may not function properly.
Therefore, you will need to modify your applications to call the API less frequently.
Specific rules related to this are listed in the latest API reference document here:

Thank you for your understanding."

ok… my govee disconnected again… how do you reduce the rate?

here is the error…

Error setting up entry govee for govee

1:40:55 PM – (ERROR) Govee (custom integration)

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.”}

1:40:55 PM – (WARNING) Govee (custom integration)

Rate limit exceeded, check if other devices also utilize the govee API

1:40:55 PM – (WARNING) /usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py

API is back online.

1:40:55 PM – (WARNING) Govee (custom integration)

1 Like

I woke up this morning and I had the same issue , I uninstalled the integration and I put a new API and I receive this message. : cannot connect. Is the API-Key correct and the internet connection working? "

any idea what could it be ?

I had this issue, removed HACS, updated HA and it worked again

However, now it’s down again with the 429 error as guess it’s falling foul of the new API call rules Govee has deployed. Changed my polling to 2 but think i need to wait as used my API call up for today

go here :)… Govee · Issue #72 · LaggAt/hacs-govee · GitHub

1 Like

For anyone who is getting the error “Cannot connect. Is the API-Key correct and the internet connection working?” try going to your Govee Android or iOS app and turning on a device. For some reason, it seems like a device needs to be in the ON state for the Govee integration to be installed. Hopefully, this helps someone.

1 Like

@almighty59
So I tried this and it didn’t make a difference. Any thoughts?

Nope. Sorry.

You change the poll interval here.


Grazie mille ho risolto con il tuo consiglio

The limitation of rate limiting isn’t so much everyday usage but it makes it very frustrating to try and program scenes etc. I’m never quite sure of what values are being saved. Is there any way to make numeric entries for scene values. It would make it easier and more precise.

Any tips on getting out of rate-limit jail? Clearly I need to switch to LAN, but I can’t even do that without an API-Key. Do I need to wait until tomorrow?

I’m having the same issue. Went to jail in China…and although they gave me another key to the jail cell, it doesn’t work—same error. And I would LOVE to just use the LAN option, but I was an early Govee adopter and out of the 10 devices I have, 2 have LAN support.

I think Govee may be our next MyQ, a company that doesn’t want to work with Home Assistant.

Same problem here.
It was in and out these last few days. Now I’m completely cut out.
I believe they were Rate Limiting me at first, then after related positives they poetically banned my account.
I suspect the pull internal should be significantly higher. They could implement a web hook api instead. Pull rate would be seriously reduced.

And now it is back.
This tells me it is definitely Rate Limiting me.
I set the pull interval to 300 to avoid triggering it.

Old tread i know but thank you! I was pulling my hair out and this worked!

Can I assume that the rate limit is assigned to the users account? The reason I ask is I hit my rate limit and now I’ve requested a new key to try to reset the limit, but it doesn’t seem to be working.