Skip to content

Home Connect: The rate limit "1000 calls in 1 day" was reached. #139328

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

Open
jleinenbach opened this issue Feb 26, 2025 · 36 comments
Open

Home Connect: The rate limit "1000 calls in 1 day" was reached. #139328

jleinenbach opened this issue Feb 26, 2025 · 36 comments

Comments

@jleinenbach
Copy link

The problem

Error obtaining data from the API: The rate limit "1000 calls in 1 day" was reached. Requests are blocked during the remaining period of 18295 seconds. (429)

What version of Home Assistant Core has the issue?

core-2025.3.0.dev202502251407

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Home Connect

Link to integration documentation on our website

No response

Diagnostics information

home-assistant_home_connect_2025-02-26T10-15-16.147Z.log

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

There are just 3 devices.

@home-assistant
Copy link

Hey there @DavidMStraub, @Diegorro98, @MartinHjelmare, mind taking a look at this issue as it has been labeled with an integration (home_connect) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of home_connect can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign home_connect Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


home_connect documentation
home_connect source
(message by IssueLinks)

@Diegorro98

This comment has been minimized.

@jleinenbach

This comment has been minimized.

@Diegorro98

This comment has been minimized.

@jleinenbach

This comment has been minimized.

@jleinenbach

This comment has been minimized.

@Diegorro98
Copy link
Contributor

Diegorro98 commented Feb 26, 2025

Okey, that's related to #139389

Maybe the API rate limit error comes because it has tried too many times to setup the configuration entry...

We need to address that
Sorry for the inconvenience

@MartinHjelmare
Copy link
Member

Note that 1000 requests per day is only 41 requests per hour.

@EvertJob

This comment has been minimized.

@Diegorro98

This comment has been minimized.

@MartinHjelmare MartinHjelmare changed the title The rate limit "1000 calls in 1 day" was reached. Home Connect: The rate limit "1000 calls in 1 day" was reached. Feb 26, 2025
@jleinenbach

This comment has been minimized.

@thk-socal
Copy link

I have 12 devices and over 300+ entries and this breaks on me now. Seemed to break a few weeks ago. I have pulled the latest dev version and I get the over 50 calls in one minute error during initialization. So it breaks on startup and never recovers. Is there anyway to add a limit to the initializing process to limit calls to40ish per minute?

@Diegorro98
Copy link
Contributor

@thk-socal We currently have a limit on the devices that an entry can handle because we do at least 3/4 requests per appliance. But we are pretty aware of the issue and we are already working on that improvement.

@ConradReichel
Copy link

Hey there,
encountering an similiar problem during the Setup.
I use 7 devices with Home Connect and during the first initialization Home Connect set a request stop for 10 minutes each and after a few more tries now to 24 hours
"Error obtaining data from the API: The rate limit "1000 calls in 1 day" was reached."

Are there any updates in this issue?

@Carcept
Copy link

Carcept commented Mar 16, 2025

I have the same. Just bought a unit for home assistant and it works 4 days like a charm.

Now get the 1000 calls in 1 day, and it wont work anymore.

Have 6 devices in home connect.

@Carcept
Copy link

Carcept commented Mar 16, 2025

I installed Core 2025.4.0.dev202502270231 - seems to be solved:

Image

How did you menage to update to this dev?

@heula
Copy link

heula commented Apr 1, 2025

I have the same issue for a week or two now.
Disabled polling but that makes no difference.

Core
2025.4.0b12
Supervisor
2025.03.4
Operating System
15.1
Frontend
20250331.0

@Diegorro98
Copy link
Contributor

We made some changes to handle API rate limit issues, but we are aware that some issues remain related to this.

Would anyone mind enabling debug logs whenever your API rate limit gets restored, so that we can gather more information about the 1000 calls?

@us7krums

This comment has been minimized.

@Diegorro98
Copy link
Contributor

@home-assistant add-label needs-more-information

@Zajic73

This comment has been minimized.

@Diegorro98
Copy link
Contributor

Would anyone mind enabling debug logs whenever your API rate limit gets restored, so that we can gather more information about the 1000 calls?

Just for clarification, I mean all the logs from the home connect integration (including the debug logs), no only the final error log.

@Zajic73
Copy link

Zajic73 commented Apr 8, 2025

Image

Is it about this?

@jleinenbach
Copy link
Author

The problem has not occurred for me for a long time. I suspect that the issue arose for me because I restarted the system several times in a row during maintenance work.

@Diegorro98
Copy link
Contributor

Image

Is it about this?

Yes!

@Zajic73
Copy link

Zajic73 commented Apr 8, 2025

Image
Jde o tohle?

Ano!

OK, once the time limit expires, I'll turn on debugging and send the log. How long should I let it run?

@Diegorro98
Copy link
Contributor

OK, once the time limit expires, I'll turn on debugging and send the log. How long should I let it run?

Until you get the error again

@Zajic73
Copy link

Zajic73 commented Apr 9, 2025

OK, once the time limit expires, I'll turn on debugging and send the log. How long should I let it run?

Until you get the error again

Hi, I'm sending the log.

home-assistant_home_connect_2025-04-09T04-10-13.103Z.log

@Diegorro98
Copy link
Contributor

Awesome, thank you!

I've been revising the logs and I can see what is triggering the API rate limit in this case: the device has disconnected and connected up to 248 times in 10 hours...
So these are some things you can do to try to fix that:

  • Check your appliance connection:
    • Check that it has a good connection
    • Using 2.4 GHz WiFi band can help
  • Restart always help

@MartinHjelmare, these were the things that you did when you had this problem also, right?

By our side, maybe we can check if the appliance is connected and disconnected multiple times in a period of time, block the updates to avoid API rate limit, and rise an issue with the above steps to help other users to fix that problem, which will enable back the updates once the user clicks on fix.

@Diegorro98
Copy link
Contributor

@home-assistant remove-label needs-more-information

@Zajic73
Copy link

Zajic73 commented Apr 9, 2025

Skvělé, děkuji!

Prováděl jsem revizi protokolů a vidím, co v tomto případě spouští limit rychlosti API: zařízení se odpojilo a připojilo až 248krát za 10 hodin... Zde je několik věcí, které můžete udělat, abyste to zkusili napravit:

  • Zkontrolujte připojení vašeho spotřebiče:

    • Zkontrolujte, zda má dobré spojení
    • Pomoci může použití pásma WiFi 2,4 GHz
  • Vždy pomůže restart

@MartinHjelmare, to byly věci, které jsi dělal, když jsi měl také tento problém, že?

Na naší straně možná můžeme zkontrolovat, zda je zařízení připojeno a odpojeno několikrát za určitou dobu, zablokovat aktualizace, abychom se vyhnuli limitu rychlosti API, a vyvolat problém s výše uvedenými kroky, abychom pomohli ostatním uživatelům tento problém vyřešit, což umožní zpětné aktualizace, jakmile uživatel klikne na opravu.

​Hello, I've been experiencing this issue for about a month; previously, everything was perfectly fine. The Wi-Fi access point is approximately 2 meters away from the appliances. ​Thank you very much for the analysis, I will try to implement the recommended actions.

@MartinHjelmare
Copy link
Member

In my case it seems to have helped to move the device to a pure 2.4 GHz network instead of my regular mixed network.

Here's some general advise from Home Connect on Wi-Fi:
https://www.home-connect.com/global/help-support/error-codes#/Togglebox=15362315-13320636-1/

@christian1986
Copy link

Worked fine for some weeks, now it’s back with the limit problem.

I have five devices.

@Diegorro98
Copy link
Contributor

Please, if the issue is still happening, add debug logs so we can know what is happening.

@christian1986, since the issue has already occurred and you cannot get debug logs from that issue, review the connectivity entity history of all appliances from 24 hours before the issue up to the time it happened to see if the any of the appliances had connectivity issues, as it is our primary suspect and should be resolved with #142615 once it's released.

@ahattink

This comment has been minimized.

@perseus177

This comment has been minimized.

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

No branches or pull requests