Feature Request: implement requested charge rate (amps)
See original GitHub issueIs your feature request related to a problem? Please describe. The Tesla API recently introduced new functionality related to setting and reading the preferred charging rate in Amps and it would be great to have this included (without customising yaml with new services etc).
The use-case includes:
- automation of charging rate to trim charging so that it stays within solar generation limits.
- accelerated charging before power prices increase.
- adjusting usage when other high-load devices are operating.
Describe the solution you’d like
A method to read the charge_current_request
and charge_current_request_max
values (HA sensors?) and a method to set the charging current ideally supported through the standard HA UI (which entity type? Requested Current (amps) will be 1 - 40 (or rather, 1 to charge_current_request_max)
Describe alternatives you’ve considered Manually adjusting the charge rate in the app, or using a different tesla automation app.
See also discussion in telsajsonpy: https://github.com/zabuldon/teslajsonpy/issues/246
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Again we need some simplified documentation, you need to use id, not vehicle_id, even though the parameter is vehicle_id. My id to utilise for this service call has 16 digits in it, your id above looks like the vehicle_id.
https://tesla-api.timdorr.com/api-basics/vehicles
Try something like this:
I then used the Tesla API to match my solar production, by using an automation to call a script with a template value to set charging_amps every minute.
https://community.home-assistant.io/t/optimizing-use-of-unused-solar-power-to-charge-a-tesla/340818/12?u=markpurcell
You can see from the link that I set charging_amps to the amount of solar being produced (sensor.solaredge_solar_power), multiplied by 1.4.
Thus if my solar is producing 10 kW *1.4 sets charging_amps to 14 A.
14 Amps * 3 phases * 230 volts = 9660 W for EV charging,
5 minutes later if solar is producing 8 kW *1.4 sets charging_amps to 11 A.
11 Amps * 3 phases * 230 volts = 7590 W for EV charging.
This results in the following production/ charging curves, which as you can see tracks quite nicely and is your first use case.