Open BobC76 opened 2 months ago
Hi @BobC76 sorry I didn't respond to this sooner, I've only just seen it while doing some admin.
The difference between the 'total' and the 'total_increasing' sensor types is the difference between something that resets daily (total_increasing) and something that increases forever (total) it's buried somewhere in the HA documentation and you'll have to just trust me that it's implemented correctly.
As you've identified though, there is the potential for this 'calculated' value to have a negative delta based on the offset of when things are calculated, now, looking at your graphs it should always be within an acceptable percentage of the previous value. What I could do is ensure that if the value has not dropped by greater than X percentage just re-use the previous value.
I'd need to dust off my knowledge of how to get the current state of a sensor, but I think it could be done with a little bit of effort.
Thanks, its not a big deal, but occasionally crops up in my logs and a cursory read of what HA docs I could find seemed to favour "total" where its possible a value can go negative. Anyway happy to close "won't fix" rather than waste your time on it further.
Just going through errors and warnings in my logs, and saw this, tells me to create a bug report :)
I've noted there is indeed a step down in the value: Looking more closely at the contributing values
..it seems there's the potential for negative delta, due to offset timing for each contributing sensor to be updated:
I guess that's coming from grott, and then from growatt itself, so I may just ignore the warning, or edit the sensor to be "total" instead? Is there any disadvantage to using 'total' instead of 'total_increasing'?
Log entry shows it affects a couple of the other calculated sensors: