tesla icon indicating copy to clipboard operation
tesla copied to clipboard

Charge voltage

Open 27andrea opened this issue 1 year ago • 8 comments

To manage a charge session using the Solar power,the charge voltage is necessary . Can you implement it?

27andrea avatar Apr 02 '23 12:04 27andrea

I think you mean current, which is exposed by the integration as "Charging Amps". Voltage is a constant 230 (or thereabouts), so 7.4kW is 32A (32230), and the lowest you can go is 5A (5230) or 1.1kW, then in 1A increments from there.

craigrouse avatar Apr 03 '23 15:04 craigrouse

I think you mean current, which is exposed by the integration as "Charging Amps". Voltage is a constant 230 (or thereabouts), so 7.4kW is 32A (32230), and the lowest you can go is 5A (5230) or 1.1kW, then in 1A increments from there.

The problem is that voltage is not costant.it Can be 210 volt or 219 or 237 volt So i cannot calculate it

27andrea avatar Apr 03 '23 17:04 27andrea

@27andrea I see your point, though for my own use, I just build enough margin in so I never pull from the grid if the aim is to just charge from excess solar . If you have the Tesla Wall Connector Gen 3, the voltage is exposed in Home Assistant by default through the Tesla Wall Connector integration, so perhaps that's an option for you? I'm not sure if the charging voltage is even available on the Tesla vehicle API, but if it is, I'm not sure it would update quickly enough for your use case. The wall connector's local API, on the other hand, updates instantly. As a point of interest, our grid tolerance here in the UK is -6%, +10%, giving a minimum of 216.2V and a maximum of 253, but my own supply rarely goes below 227V or above 240V.

craigrouse avatar Apr 03 '23 18:04 craigrouse

I don't have tesla wall connector and i use the charger of the tesla. The problem as i said is that i have 300 watt of difference that is a lot. So i cannot set the correct amperage to use solar production

27andrea avatar Apr 04 '23 20:04 27andrea

Check the Tesla API and see if it gives the info you want. If it does, someone who wants to can add it.

alandtse avatar Apr 04 '23 21:04 alandtse

It looks like this is available on the API as "charger_voltage" (https://tesla-api.timdorr.com/vehicle/state/chargestate). Should be fairly easy to add, though I don't have time to do it right now.

craigrouse avatar Apr 07 '23 15:04 craigrouse

Charger volts is available as an attribute under "Charger Power" sensor. Attributes should be easily accessible in automations.

image

InTheDaylight14 avatar Apr 21 '23 15:04 InTheDaylight14

Also, the current power given by the api is not accurate at all (gives kw without decimal which is unfair as it only a matter of volt * amp) Could we implement both sensor?

storm1er avatar Jul 10 '23 08:07 storm1er