Riemann integration shows units of measurement “kwhh” instead of “kwh”, a double “h”. Is she crazy?
Before you ask, the source sensor will show the correct unit of measurement “wh”
state_class: total
source: sensor.energy_monitor_energia_autoclave
unit_of_measurement: Whh
icon: mdi:chart-histogram
friendly_name: test
source sensor:
state_class: total_increasing
unit_of_measurement: Wh
device_class: energy
friendly_name: Energy Monitor Energia Autoclave
Riemann (or integration) integration allows you to calculate integral for given instant values, let’s say, you device is only outputting instant power values in W unit and if you want to calculate kWh out of it, you should use Riemann integration to calculate the energy consumption out of it.
If you have already total increasing sensor, it should be in kWh or another energy unit so, use utility meter to track daily or monthly values. You can directly use the initial sensor in energy dashboard too.