-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Tesla: allow customizing the command proxy to use #14616
Conversation
I didn't see, that there is another pull request like mine (#14620). But I really think you have to remove the polling of the tesla server each time the current is changed. Otherwise you will hit the API Limit ... |
We indeed need to verify that. My understanding is that the limit of « read » requests is higher and sufficient for our use case. |
According to docs there's an API limit, not a write limit. |
The Limit of Read-Requests ist 200. So it‘s up to the weather, of thats enough or not. |
<> > > I didn't see, that there is another pull request like mine (#14620).
I see what you mean. On the other hand, this data is cached (and not fetched above 6A) so I wonder how many real API call this trigger in a one day. IMHO we should keep the existing logic to avoid issue #13007 coming back, and think of a further fix if we reach the API limits in practice and if that prevent evcc from doing its job properly. |
The Cache is resetted every time current is changing. So in my use case the limit will be reached very fast. 😕 |
Adding a parameter to disable « cleanly » the current check loop. So that we can let the (advanced) user decide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andig what about updating the :tesla docker image with this PR for testing ?
I would suggest that we separate using a different proxy from limiting API requests. The latter could (maybe) be done using without additional config. I'll try to file a PR for that. Could you limit this one to proxy only? |
done |
Regarding the |
Hopefully getting vehicle info should be possible over BLE as well. teslamotors/vehicle-command#229 |
Maybe, but it should not be necessary. The API limits should be fine once you start sending the commands via BLE. |
Yes, but while it isn't an issue for me, there's people without cellular reception at their charging spots. I think I read somewhere Wifi only doesn't work for the API. Could be wrong though. |
As described above this is an issue for my use case. I always charge with < 6A and when there is changing weather the API Limit is reached. Maybe we can try your proposed solution. Perhaps I can file a PR for that. |
Could you check the logs why that happens? We're caching the result and should only call the API if current is updated. That is 2, 3, 4, 5 Amps. Do we even need to call it if the change remains below 6A or only when going from 6A to below? Needs to be tested. |
Another approach would be to check from the charger meter if the actual current consumption match the expected value.
Le lun. 1 juil. 2024 à 16:50, andig ***@***.***(mailto:Le lun. 1 juil. 2024 à 16:50, andig <<a href=)> a écrit :
… Could you check the logs why that happens? We're caching the result and should only call the API if current is updated. That is 2, 3, 4, 5 Amps. Do we even need to call it if the change remains below 6A or only when going from 6A to below? Needs to be tested.
—
Reply to this email directly, [view it on GitHub](#14616 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AET5P3NVMWOHKG4NWN7IQRTZKFUEXAVCNFSM6AAAAABKCQA7RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGM3DSOJXGQ).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Actually, we've just added this in #14622. Since the TWC has phase currents, this should work if you remove the |
Mmmmh. Any change needed or is it suppose to already work with twc in latest nightly ? |
Ahhh, I see. Need to check the error return code, too. Change coming. |
@FraBoCH see #14659. It is a bit subtle but should work. Remaining drawback is that we'll only recognize if current is too high by at least 1A, so it might not detect not switching to 5A, but should detect on 4A due to https://github.com/evcc-io/evcc/pull/14622/files#diff-c456526d4bd9022a488ce32de208b40d86016e2c40b0c81a2dffe557c186377dR723. Seems this is the best we can currently do. Ymmv. |
Add support of custom http proxy like https://github.com/wimaha/TeslaBleHttpProxy for sending commands to the standard tesla vehicle template as discussed in #14252.
The corresponding yaml configuration would be: