Skip to content

Sonoff Pow R2 persistent total over unexpected shutdown #13781

Answered by barbudor
mikhail5555 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mikhail5555
The point is not to write to often to the flash in order to avoid wearing it too early.
Also I would say that willingly shutting down an IOT device is not really what is intended. Don't forget that in some circumstances that could trigger Tasmota recovery procedure, erasing all settings.

This being said, command SaveData without any parameter will force saving of values in the flash.
You can then use either a rule based on Time or on a Timer to execute the command.
A rule like below will regurlarly save every XX minutes (here, every 60 minutes...):

ON Time#Minute|60 DO SaveData ENDON

Or if you want to save at specific time of the day, you can use a Timer to trigger at a c…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@mikhail5555
Comment options

@sfromis
Comment options

@mikhail5555
Comment options

@sfromis
Comment options

@ascillato
Comment options

Answer selected by mikhail5555
Comment options

You must be logged in to vote
2 replies
@mikhail5555
Comment options

@barbudor
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants