Hello, I want the connected device to stay ON 24/7, except for an automatic 10-minute shutdown once every 24 hours.
I have a sort-of-working solution, detailed below, but it doesn't seem stable.
The exact timing doesn't matter, could happen any time of day, reset just has to happen at least once every 24 hours (roughly). A bit more often is ok.
Device must never remain off for more than 30 minutes at a time, assuming of course the plug gets electricity.
Needs to survive after returning from power outages and smart plug resets for any reason.
This is what I got - a rule to shut down every 24 hours and a reverse PulseTime to turn it back ON after 10 minutes:
PowerOnState 5 #causes PulseTime to be reversed, so OFF state is temporary
PulseTime 700 #10-minute shutdown
Rule1 on System#Boot do RuleTimer1 86400 endon on Rules#Timer=1 do Backlog Power 0; RuleTimer1 86400 endo
Rule1 1
RuleTimer1 86400
-----------------------------------
After testing it seems it doesn't always work. I suspect the plug itself gets reset, don't know why (logs of "tele/tasmota1/LWT << Online"), which then resets the countdown. Perhaps there's a solution that will keep the countdown timer going even after a reset? Or any other idea to make it more stable?
Thank you :)