Converting APSystems data to Home Assistant locally

I have edited the file, it looks like this now:

sensor.sum:
state_class: measurement
device_class: power
sensor.utility:
state_class: total_increasing
device_class: energy

After saving and reloading HA, the sum sensor becomes ‘unavailable’, and the utility sensor is still in W. Do I need to configure something outside of this file, other than including it in the config file?

Hi all, does anyone have a idea to solve this?

Hi!

Sorry for the delay. Reading all again, I missed a step… Utility_meter needs an energy sensor in Wh.

So you need to create a helper sensor using Riemann sum integral sensor. It will convert your power sensor to an energy sensor. And then you will be able to use it in the energy dashboard.

utility_meter is not needed for the energy dashboard

Some documentation here:

And