First of all, I know this must be a common error, but I have tried everything and nothing seems to work.
I have an individual plug that measures W. And I am using “Integration - Riemann sum integral” to obtain the energy consumption in kWh. This is the integration code:
sensor: - platform: integration source: sensor.fridge_current_consumption name: fridge_energy unit_prefix: k round: 2
I also modified the state_class and device_class with:
homeassistant: customize: sensor.fridge_energy: last_reset: "1970-01-01T00:00:00+00:00" state_class: measurement device_class: energy
This is the state as read from Developer Tools:
I have added it to Monitor individual devices but I do not get any value back.
And I am sure there is constant consumption in this device.
What else am I missing?