Closed hp197 closed 3 months ago
Have you tried with a little lower value then 1.5MWh?
You mean with the Wh value in EV? Yes, I also tried with -1. This parameter is this value in the webinterface:
I read this as the total kWh handled by the meter as per this piece of code:
if (WH > -1) {
// Energy measurement
EnergyEV = WH;
if (ResetKwh == 2)
EnergyMeterStart = EnergyEV; // At powerup, set EnergyEV to kwh meter value
EnergyCharged = EnergyEV - EnergyMeterStart; // Calculate Energy
RecomputeSoC(); // Recalculate SoC
}
Setting it to -1 results in the same EV_NOCOMM error.
This should solve it: 6eec7943.zip
Fixed in b058a71
Describe the bug I have a problem with injecting data through MQTT. Mains seems to work, but EV keeps getting into NO_COMM error.
Upload your config
Upload a debug log
*** mqtt_receive_callback, is debug added by me just before the UpdateCurrentData call when [topic == "/Set/EVMeter"] (Line: 2566).
To Reproduce
Expected behavior No EV_NOCOMM error.
Screenshots
P.S. The documentation should be updated that injecting EV data requires 5 parameters (L1:L2:L3:W:Wh) instead of 3 (with the mains meter). I can do this afterwards.
Data in MQTT:
This is retained data and updated every 5 to 10 seconds (depending how long the modbus query took).