I have an ESPHome device talking RS485 to my Epever upower-hi 3KW unit. Looking at the solar “total” values, I’m seeing a (usually every few days) error where the statistics briefly blip to 0 or otherwise to an extremely high value (megawatts, on a 1KW array) - I suspect there’s bit-shift error on the reading, and sometimes the value doubles. No idea why the value reads as zero more frequently. Aside from replacing the (terrible, un-twisted, flat, and probably super noise-prone,) cable I currently have wired up to my ESP, are there filters I can apply to avoid reporting those “blips”?
Example from the Statistics for today. This was set up as a “total_increasing” sensor type up until today, and I’m changing it to “total” going forward to see if that helps with my energy dashboard not showing super crazy results. I’d still like to filter the zero and something-like-double readings I’m getting on occasion.
Main reason it’s a problem for me is the “energy” dashboard:
EDIT:
Adding a filter of:
- filter_out: 0
to the “total” values for the inverter for a good starting point; most of the averaging filters don’t look like good choices as they will still shift a large distance away rather than fully block sending of a value if it’s invalid; I basically just want to remove all outliers, or changes that are above a certain size up or down from being reported as “valid” readings. Anything more than say… 2kWh above or below the current value should just be omitted

