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

Allow disabling increased frequency polling when car is driving when using TeslaMate MQTT and/or Fleet API #1038

Open
philjohn opened this issue Sep 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@philjohn
Copy link

philjohn commented Sep 1, 2024

Is your feature request related to a problem? Please describe.

According to https://github.com/alandtse/tesla/wiki/Polling-policy when the car is driving the polling is changed to every 60 seconds.

Unfortunately with the Fleet API limits of only 300 API queries a day this quickly exhausts the allowed limit and further polling then fails and the integration can't be used to view up-to-date information.

This is doubly problematic when using TeslaMate as Tesla seems to disable the streaming telemety updates at the same time.

Describe the solution you'd like

When electing to update sensor values from MQTT when using TeslaMate OR when using the Fleet API, I would like to be able to disable the automatic changes to polling frequency - and for the polling frequency entered during configuration to be adhered to.

Describe alternatives you've considered

I've had to disable polling by the integration entirely now, and only use the integration for updates, however, since not all sensor values update from MQTT this leads to issues, e.g., last updated sensor.

@philjohn philjohn added the enhancement New feature or request label Sep 1, 2024
@philjohn
Copy link
Author

philjohn commented Sep 2, 2024

OK, digging deeper, it's the only behaviour supported by the underlying Tesla python client used and there's no way to override it (set as a const).

I'll open up a PR there as well to allow it to be passed in as a param to the controller class.

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

No branches or pull requests

1 participant