Tesla battery power wrong value on the webpage
MarkoBolt opened this issue · comments
Nice find @MarkoBolt , I pushed an attempted fix to this branch: main...bugfix/tesla-power
Wanna test it? :)
Tested it, not working ok yet. Value is too large for the variable power, causing an overflow in the variable power. Next to that, the power value should be 10 times less, so the divide by 10 helps in both cases in my setup. Scaled ok and no overflow.
Tested with the following line and then it seems to be ok in my setup and tested with 8415W.
power = ((volts/10) * amps);
@MarkoBolt Thanks! Fixed in 6b06132