Hi,
I’m looking for some advise on finding a root cause and how to fix a problem I faced.
Scenario:
- Smart plugs with esphome and energy sensor.
- Disconnected the plugs for 3 weeks.
- In the meantime Home Assistant was restarted (power outage).
- When plugs were reconnected, in the Energy dashboard I see hundreds of kWh negative for sensors of these plugs.
Details:
- Plug models: Blitzwolf SHP6, Gosund SP111.
- ESPhome config of the sensor:
- platform: total_daily_energy
name: "${plug_name}: Dzienne zużycie energii"
power_id: "${plug_id}_Wattage"
filters:
# Multiplication factor from W to kW is 0.001
- multiply: 0.001
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
- Energy dashboard for the problematic day:
- History graph for an energy sensor of one of the plugs:
- Dev opts entity state:
Any idea what happened?