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?
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