Tesla Fleet integration works but requires reconnect about once a week

I got a few notifications set up and they seem to work save for the fact that once every week or so it disconnects from Tesla. I have to manually go into Home Assistant and reinitialize the connection to Tesla.

Is this really the way it’s supposed to work or have I messed something up. Everything else about it seems to work correctly.

Any entries in your logs around that time?

DHCP Timeout on your router?

Tesla logging you out?

I’m getting the following errors:

tesla_fleet_api.exceptions.RateLimited: Account or server is rate limited.

Authentication failed while fetching Tesla Fleet Energy Site Live data: The OAuth token has expired.

It looks like Home Assistant is trying to access the Tesla account too often?

I’m not sure how often default Tesla fleet API integration was polling but I disabled polling for changes and added an automation to try and update it every three minutes.

General comment: Not sure how it works and how often the refreshes usually happen for normal traffic, but for the sake of all other Tesla owners please don’t DDOS their servers with too much traffic, just because you can.
Other car manufacturers have reacted aggressively and made it difficult for third party integration for this very reason.