question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: implement requested charge rate (amps)

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
purcell-labcommented, Oct 25, 2021

Incidentally when I try to call the service as per your example (with my own vehicle ID and any charging amps value)

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:

image

1reaction
purcell-labcommented, Oct 25, 2021

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.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChargePoint Home Flex Features and Settings
Get answers to your questions about connected features and settings for ChargePoint Home Flex. Can't find what you're looking for? See our ChargePoint...
Read more >
New features in the Tesla app with update 2021.36
The last improvement that comes to the app with update 2021.36 is the ability to change your charging amps while the vehicle is...
Read more >
What is required for a Level 2 Charging Station? - Qmerit
Specific installation requirements include: 40-100-amp, 240-volt electrical service —Your new charger will need a 40-100 amp, 240-volt ...
Read more >
Electric vehicle (EV) charging standards and how they differ
A in depth guide explaining the different standards of electric vehicle charging and how they vary from one another at home and in...
Read more >
EV Charging Basics - CALeVIP
Learn more about different charging options for electric vehicles (EVs), ... available DC fast chargers require inputs of at least 480 volts and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found