Energy counters wrong after reboot on POWR316D Elite #21085
Replies: 2 comments 1 reply
-
Have you made sure to allow it to have correct local date/time, typically by contacting a NTP server? Without this, time-related logic (including rollover and save at midnight) cannot work properly. Note that saving data every minute does "cost" in flash write cycles, contributes to wearing down flash in the long run. By default Tasmota will save data at midnight, or when there's other reasons to save data, depending on your selected options - very much including your settings for SaveData and Not sure what you did to flash, but the recommended procedure is to flash |
Beta Was this translation helpful? Give feedback.
-
Use command |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
Device Sonoff POW R316D Elite
Program Version 13.4.0(tasmota32)
Build Date & Time 2024-02-14T16:17:40
Core/SDK Version 2_0_14/4.4.6.240105
Uptime 0T03:05:06
Flash Write Count 167
Boot Count 38
I bought this POWR316D that I would use in the future to control power usage for some devices.
After setting up that with this template, found here https://templates.blakadder.com/sonoff_POWR316D.html
{"NAME":"Sonoff POWR316D","GPIO":[32,0,0,0,0,576,0,0,0,224,9280,0,3104,0,320,0,0,0,0,0,0,9184,9248,9216,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
I have this issues:
To solve the first issue, I tried applying a rule to periodically save stuff on the flash:
Rule1 on time#minute do savedata endon
BUT after 4 days I checked with a reboot and the counter dropped from 2.300 to 1.500, and restarted from that.
Is there something wrong with my template?
Consider that I just flashed using the tasmota32.bin to convert the device from factory.
Am I using the wrong firmware?
Except for that, everything seems to work great, and even the metering seems to be kinda precise.
Beta Was this translation helpful? Give feedback.
All reactions