i have recently connected a PV storage system to a Victron Multiplus II 3000 and unfortunately I have problems with the charging and discharging entities that I “calculate” via the HACS Victron integration
The integration provides the sensor “sensor.victron_system_battery_power” which outputs the charging and discharging in watts. Negative value = discharge positive value = charging of the battery.
As you can see on the screens, these sensors make a small “jump” when writing new values to “Input” and a jump of approx. 3kWh when discharging. This completely messes up my statistics.
I may have a consumption of 1500 watts for a short time, but never so much and for so long that the jumps of 3kwh can be justified.
Where have I made a mistake in the config? Does anyone have any other ideas on how I can track the charging and discharging of the battery?
it’s because your source entities are going unavailable and you’re using a default of 0 with float. When float can’t convert the value it receives from the states() function, it will use the default. When it then recieves a value that can be converted to a float, you end up with a state change that is 0 → large value. And that’s added to your energy readings.