Rules for always-on device with a daily power reset

28 views
Skip to first unread message

Ryan P

unread,
Oct 23, 2025, 7:35:42 AMOct 23
to TasmotaUsers

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 :)

Philip Knowles

unread,
Oct 27, 2025, 7:14:39 AM (12 days ago) Oct 27
to Ryan P, TasmotaUsers
I would 
  1. Set the Relay as an 'inverse' so that Tasmota thinks that ON is OFF (which will help with restarts)
  2. Set BlinkCount 1
  3. Set BlinkTime 3600
  4. Set Timer1 {"Enable":1,"Time":"02:30","Window":0,"Days":"SMTWTFS","Repeat":1,"Output":1,"Action":3}

From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Ryan P <the.ro...@gmail.com>
Sent: 23 October 2025 12:35
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Rules for always-on device with a daily power reset
 
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/sonoffusers/b632df8b-936e-4f6b-b292-d60d02025afan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages