I am looking for some advise/suggestions.
I use rrd4j for persistence and also a Shelly UNI device to monitor the battery of my UPS/Inverter.
I am trying to find a way to find the trend of the state of the VDC on the UNI to determine what the UPS is currently doing.
This is an example of the chart of the state of the VDC:
As you can see it fluctuates quite a lot.
What I am looking for is a way to determine what the trend is over time to allow me to work out what the current UPS/Inverter mode is: - Trickle Charge, Idle, Discharging, CHarging, etc
I have tried using the avergaeSince for 1, 2, 5 and 10 minutes, this seems to give a smoother result, but wonder if there is a better way to achieve this?
Currently I count the number of counts in specific direction and try infer the status from that - which works mostly, but is quite a complex way to achieve this.
Would appreciate any suggestions.