Random reset of historical energy throughput values on CAN to Victron

First, I’d like to thank you for the amazing products.

My Batrium system has been running flawlessly for over a year. Since September, I’ve been testing Firmware 2.17.55 to display the new signals for battery energy throughput. Specifically, I have an active Victron CAN and am sending all Batrium data to my VenusOS. In the integrated Node-RED of Venus OS, I’m using MQTT to forward the signals to my Home Assistant interface.

And here we come to the problem. It seems that the accumulated energy throughput values for both charge and discharge are being randomly reduced. The behavior is unpredictable; the reset does not occur at a fixed time of day, nor does the value go down to 0 kWh.

This makes it very difficult to use energy dashboards to balance my household energy or even to document the battery’s lifetime data.

Below, you’ll find one screenshots (I am not able to post more than one): it is showing the time-based representation in Grafana, illustrating how the values are being reset.

As mentioned before, I can’t identify any pattern here (no time dependency, no specific value threshold before the reset occurs, and it doesn’t always reset to 0 kWh), so I suspect it may be a software bug.

1 Like

Hi Duz,

I can see why that value resetting would be a problem, as it’s the primary value HA uses to track power going in and out!

Which Batrium software and firmware are you running? In our preview release (56), we have changed the values to only reset on integer overflow or device reboot (a veeeery big number, what Victron asks for).

I can send you a link to 56 if you’re not on it already.

Hello James,

yes you got my point … the tracking in HA is my problem.

i think there would be no problem to reset this values on midnight in case your integer signal is to small to count such big values over time.

as i write in the topic i use 55 as Firmware. I am exiting to flash firmware 56.
I’m waiting for your Link :slight_smile:

Greetings from Germany :blush:

1 Like

Hello James,

I’ve been testing Firmware 56 since nov 4th. there are still randomly resets. I’ve made a Screenshot for you with the Power Curve maybe you see some systematic behavior depending on time or starting new day with Power?

Another question … would it be a better solution to take MQTT Messages directly from Batrium to Home Assistant? are the Signals “better” or do I have a better choice from signals?

Greetings

Hi Duz,

I will chat to our software engineer about this.

In the meantime, is it possible to configure that measurement as an increasing total? That should have HA accumulate rather than reset:

It has been a while since I have used HA, so I’m sorry if this is not quite right.

All the best