Hichi IR WIFI shows extreme negative and then extreme positive values

Hi everyone,

For some reason, my Energy Dashboard almost always shows extreme values: first the total meter reading as a negative value, and then the total meter reading as a positive value.

customize.yaml:

sensor.tasmota_sm_power_curr:
  device_class: power
  unit_of_measurement: "W"
  state_class: measurement

sensor.tasmota_sm_total_in:
  device_class: energy
  unit_of_measurement: "kWh"
  state_class: total

sensor.tasmota_sm_total_out:
  device_class: energy
  unit_of_measurement: "kWh"
  state_class: total