I have a few sonoff POWR320D in the house. All have nearly identical configs. The total daily energy config on all except 1 of them, works fine. On the 1 device, the total daily energy does not reset each day, it just keeps going up.
platform: cse7766
- platform: total_daily_energy
name: $friendly_name Total Daily Energy
power_id: w_sensor
filters:
- multiply: 0.001
unit_of_measurement: kWh
Logs look like:
12:27:58][D][sensor:094]: 'xxx geyser Total Daily Energy': Sending state 601.73431 kWh with 3 decimals of accuracy
Is the time from the “esphome logs” command the date from the device? If so, it looks right.
I see that the loop function here should reset the value each day, I’m not sure it is running.
I’ve updated firmware on the device multiple times, it did not fix the issue.
How would I diagnose this? Not sure if the device clock is the issue, do esphome devices get date/time from the network?