WTH can’t the energy dashboard/statistics filter out negatives

I routinely get negative values in statistics for power monitoring devices which cause the energy dashboard to not make a lot of sense.

I know I can go into dev tools and statistics and clean out outliers, WTH can’t they just be ignored to begin with.

Can you post your yaml? You may be able to filter there.

It’s the energy dashboard.

I’m thinking you should probably be massaging your data before it is stored (incorrectly) in the database.
Filter for reasonable values and discard the rest at sensor stage, and your energy dashboard will then be beautifully displayed.

There is an option to filter outliers in one of the developer options. Not sure if you can make that work for you for historic sensor data, otherwise you may have to go back and modify your database directly.