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:
I also had the same problem. I fixed it by reading this post but not really sure what made it work. I suspect that adding last_reset had something to do with the energy dashboard picking up on data.
my Riemann attributes looks like this:
state_class: total_increasing
source: sensor.koogeek_dishwasher_power
unit_of_measurement: kWh
icon: mdi:lightning-bolt
friendly_name: EnergyTracker_DishWash
sensor.energytracker_dishwash: null
last_reset: “1970-01-01T00:00:00+00:00”
device_class: energy
unit_prefix: k
round: 2