pkuehnel / TeslaSolarCharger

A software to let your Tesla charge with solar energy ☀
GNU General Public License v3.0
136 stars 21 forks source link

Switch to control the charging station for charging currents above 5A, set Tesla to 16A #1344

Open ptar opened 5 months ago

ptar commented 5 months ago

A possible solution to get around the new Tesla API's request count limit might be to switch to station control for charge currents of 6A and above, and keep Tesla control for currents below 6A.

Therefore, a HTTP, REST or similar command to set the charging amps of the charging station must be available and must be provided in the TSC settings.

Desired charge current >=6A If the charge current should be set to 6A or higher, e.g. 8A

Then check the charging current in the charging station and leave the Tesla at 16A until the desired charging current drops below 6A.

Desired charge current <6A If the desired charge current drops below 6A, e.g. 5A:

Thank you for considering this suggestion!

pkuehnel commented 5 months ago

That already came to my mind. But will take months to implement. Primary goal is to have a solution that works for everyone (BLE). Secondary goal is to implement OCPP. I won't implement custom APIs.

pkuehnel commented 5 months ago

The generic way for now is to optimize BLE. Tesla reduced the limit for charging commands to 5 per car per day, so it makes the API completely useless for TSC.

ptar commented 5 months ago

I agree, BLE is the right way with the command limitations in mind. Nevertheless, if the general logic for using a different device for >= 6A and < 6A is implemented, it wouldn't matter, if a single URL is called or OCPP is used. That's just like getting the grid power via a pre-configured URL.