home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.91k stars 30.13k forks source link

Renault integration hitting rate limit #106777

Open shiner66 opened 9 months ago

shiner66 commented 9 months ago

The problem

Since a week I'm continously hitting the API rate limits with the default refresh rate (even when not sending any commands from HA) Seems like Renault has reduced again their rate-limits in recent times from what I'm seeing, has anyone noticed similar behaviour? Is there any available information on what the rate limit is and what the window is? (e.g. 500 requests in a 24h window) or is it entirely guesswork?

What version of Home Assistant Core has the issue?

core-2023.12.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

renault

Link to integration documentation on our website

https://www.home-assistant.io/integrations/renault

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.renault.renault_vehicle
Source: helpers/update_coordinator.py:332
Integration: Renault (documentation, issues)
First occurred: 15:20:41 (8 occurrences)
Last logged: 16:25:04

Error fetching UU1DBG005MU043525 location data: Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')
Error fetching UU1DBG005MU043525 hvac_status data: Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')
Error fetching UU1DBG005MU043525 cockpit data: Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')
Error fetching UU1DBG005MU043525 battery data: Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')

Additional information

I have no clue but, it seems to happen more frequently when the car is charging, even though in the automation traces the automation which I am using to manage charging with PV has never sent any command, not even run. So I guess it can't be the culprit.

home-assistant[bot] commented 9 months ago

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

Code owner commands Code owners of `renault` 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 renault` 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)


renault documentation renault source (message by IssueLinks)

effix1983 commented 9 months ago

I experince the exact same problem.

epenet commented 8 months ago

I have a Zoe40, and I don't have these problems at all (but I have less API endpoints available...)

I have heard that it might be possible to use a "websocket" connection, but I have never had the time to investigate it. Maybe that would solve the problems if someone wants to investigate that...

epenet commented 8 months ago

Note: the actual limit is entirely guess work.

reneboer commented 8 months ago

Hi, just a suggestion. Could we have a configurable poll rate. One if charging is active, one if not?

epenet commented 8 months ago

I will happily review a PR if it is submitted

shiner66 commented 8 months ago

Hi, just a suggestion. Could we have a configurable poll rate. One if charging is active, one if not?

I don't think it would solve the issue tbh. We are already hitting the rate limit now, what would two different polling intervals achieve? I see your idea, but we don't know what the quota is for which unit of time, so we can't really allocate a different rate for charging imho

mleck28 commented 7 months ago

Hello, I have the same problem. Is there a way to set the query interval? Ideally, there is also a "button/switch" that can manually trigger the querying. For example, when a wallbox reports that a car is plugged in.

I could imagine several intervals:

  1. Interval, for example, hourly.
  2. Interval when the car reports that it is plugged in, for example, every 30 minutes.
  3. Interval when the car is charging, then, for example, every 15 minutes.

And then triggered by connecting to the wallbox (possibly an external switch). Pulse after 2 minutes, 5 minutes, and 10 minutes.

Dreistein19 commented 7 months ago

In ioBroker E.g. the Poll is set to every 6 Minutes. Works fine. I'll stop ioBroker & start HA, the error comes up after a view minutes. The HA Integration wont work for me.

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

RSDynamics commented 4 months ago

As this is a Dacia, maybe they have a more strict rate limit? We have a Zoe ZE50 an a Megane E-Tech and we never had issues with a rate limit for years of using the integration.

mgroen63 commented 4 months ago

The intergration is not working correctly or at least it is not showing any data in Home Assistant most of the time. I'm not sue it is related. Im getting this message: " Logger: homeassistant.components.renault.renault_vehicle Source: components/renault/renault_vehicle.py:136 integration: Renault (documentation, issues) First occurred: 25 May 2024 at 10:36:53 (1 occurrences) Last logged: 25 May 2024 at 10:36:53

Ignoring endpoint VF1AGVYF057347830 res_state as it is denied: This endpoint is denied: ('err.func.403', 'Access is denied for this resource') ''

RSDynamics commented 4 months ago

The intergration is not working correctly or at least it is not showing any data in Home Assistant most of the time. I'm not sue it is related. Im getting this message: " Logger: homeassistant.components.renault.renault_vehicle Source: components/renault/renault_vehicle.py:136 integration: Renault (documentation, issues) First occurred: 25 May 2024 at 10:36:53 (1 occurrences) Last logged: 25 May 2024 at 10:36:53

Ignoring endpoint VF1AGVYF057347830 res_state as it is denied: This endpoint is denied: ('err.func.403', 'Access is denied for this resource') ''

I get those to at HA startup for both cars but for me this has no influence on the rest.

epenet commented 4 months ago

res_state is not available on all vehicles - so this message is perfectly fine and is for information

mze9412 commented 2 months ago

We seem to have a similar issue with our Zoe. Near end of the month issues come up with date no longer updating and then some time after start of a new month it starts working again.

ScratMan commented 2 months ago

Same issue.

Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')

I used the integration since August 23, when I bought a Zoé, with almost no issue. I now have a Mégane E-Tech next to the Zoé, since beginning of July, and I'm now facing this rate limitation accessing API.

mze9412 commented 2 months ago

Same issue.

Error communicating with API: ('err.func.wired.overloaded', 'You have reached your quota limit')

I used the integration since August 23, when I bought a Zoé, with almost no issue. I now have a Mégane E-Tech next to the Zoé, since beginning of July, and I'm now facing this rate limitation accessing API.

Our Zoe was not working for almost 4 weeks, now it suddenly works again. Very confusing

deligatedgeek commented 1 month ago

I've had the same issue since last year when the start AC button stopped working. I raised an issue with Renault and raised an issue several times but they are worse than useless. Last time they asked from screen shots from there app and after receiving them told me I hadn't register my car yet, which the screen shots clearly showed was registered. I tweet them once a month and they poke the r-link team, who send me an email saying they are waiting of the technical team, but nothing ever happens. Try the reset via repeatedly pressing the home button