teslamate-org / teslamate

A self-hosted data logger for your Tesla 🚘
https://docs.teslamate.org
MIT License
5.97k stars 746 forks source link

Battery level should be 'green' through to 100% for LFP battery Model 3s #2545

Closed CharlesElliottGH closed 2 years ago

CharlesElliottGH commented 2 years ago

Is there an existing issue for this?

What happened?

The Battery Level gauge on Overview, as well as Charging Stats and Charge Level screens have 80% as the optimum maximum charge.

Expected Behavior

On Tesla Model 3 late 2021> cars, the recommendation from Tesla is to charge to 100%, so the charge should be considered 'Green' through to 100%.

Steps To Reproduce

View Overview, Charging Stats and Charge Level dashboards which all have green thresholds for charge level at max 80%.

Relevant log output

N/A

Screenshots

No response

Additional data

No response

Type of installation

Docker

Version

2.9.0

LarsAC commented 2 years ago

+1

Maybe we can have per-car battery levels in the settings ?

cwanja commented 2 years ago

Do you know if there is any way to identify a LFP battery in the owners API response?

LarsAC commented 2 years ago

VIN Decoder is claiming that digit 7 of the VIN identifies the battery type:

Digit 7: Type of drive train
E = Lithium Ion Battery – Electric (NMC)
F = Lithium Iron Phosphate Battery (LFP)
H = Lithium Ion Battery- High Capacity (NMC)
S = Lithium Ion Battery – Standard (NMC)
V = Lithium Ion Battery – Ultra High Capacity (NMC)

Would that help ?

CharlesElliottGH commented 2 years ago

My 2022 Model 3 has F as the 7th digit, so that seems to work.

woyteck1 commented 2 years ago

I cannot agree with this one - mine (2021 M3 SR+) also has 7th letter as 'F', but OS clearly shows Daily & Trip charging ranges.

CharlesElliottGH commented 2 years ago

A manual setting would be fine for this for now I suggest - if there is a definitive way of finding this via the API in future then it could be changed to trigger from that.