Open Naiki92 opened 2 months ago
The problem is Tesla's shity data:
226V, 16A but only 10 kW. 226 16 3= 10848 W = 11kW
I'll take 10 kW, voltage 226V and 16A to calculate phases, because only old S&X can provide real 3-phase number, all newer teslas says "2" if it means 2 or 3 phases :/
https://github.com/bassmaster187/TeslaLogger/blob/master/TeslaLogger/DBHelper.cs#L4999
trunc ((10kW*1000 + 500) / 226V / 16A + 0.3) (correction factor) = 3 (should be...) But it is 2 in your case. one Truncate to much?! :/
with this "2" phases I calculating wrong power => 2 226 16 = 7232 W... Some times, Tesla updates power, but not a current/voltage or vice versa, it leads to wrong caculated values.
Okay, that's shitty, but I have different values between Grafana and the /admin overview. So as you can see the diagram above says 3 phases the whole time (min/max also 3 because I started charging directly with three phases). At the same time on /admin I see 2 phases.
It looks wrong to me even though it solves itself after a few minutes to an hour.
I'll try to use original values for older S&X (your case). Because of this sh*t I didn't chaged Grafana, so grafana uses still original Tesla values. Than means also, that Grafana shows 2 phases instead of 3 for all 3&Y and also newer S&X users :/ Admin panel is to check how good my implementation works...
Append Logfile
Describe the bug The vehicle is charging at 10kW at three phases but /admin shows only 2phases and much lower power.
To Reproduce I think it could be caused by this problem: #1353 The vehicle is currently charged not by the Wallbox set under Settings -> Wallbox
Expected behavior Self explanatory
Screenshots
Teslalogger Type Synology Docker