I integrated my smart dishwasher via GitHub - gvigroux/hon: Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters · GitHub.
It is working nice, but the energy usage calculation is buggy.
The integration brings in a sensor for current energy usage:
state_class: total
unit_of_measurement: kWh
device_class: energy
icon: mdi:lightning-bolt
friendly_name: Dish Washer Current electricity used
which I am tracking as a single device in the energy dashboard.
It starts looking good, but after the dish washer has finished the electricity usage within the last hour is turned negative:
But the regular history graph looks normal:
Actually I can correct this when searching for outliers in the statistics, but this time it does not show a negative value at all.
Any idea what is causing the bug here?

