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

Request Configurable driving polling interval for Cost Optimization #481

Open
flaviorighi opened this issue Feb 4, 2025 · 0 comments
Open

Comments

@flaviorighi
Copy link

I wanted to bring up a concern related to API usage costs. After recent changes in Tesla's pricing model, optimizing API calls has become more critical than before to manage costs effectively.

This module currently uses a hardcoded DRIVING_INTERVAL value, which determines how frequently API requests are made while driving. This fixed interval prevents users of the module, like Tesla Home Assistant integration (and potentially other applications) from optimizing API costs based on their specific needs.

Since this parameter is critical for balancing API usage and real-time functionality, it should be configurable via user settings. This would allow users to adjust the interval as needed (e.g., reducing frequency for cost-saving or increasing it for more frequent updates).

It would be great to add another controller constructor parameter like _driving_interval to let this externally configurable.

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

No branches or pull requests

1 participant