-
Probably another dumb question of me, but looking at the Timers doc for Tasmota, I don't see any way to set a Day-of-Month for a timer: https://tasmota.github.io/docs/Timers/ I want to set a timer on an outlet socket to turn off on the first day of every month and then turn back on a minute later. This is to reset a modem that after a few months 'forgets' to let anything connect to it. What am I missing? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 31 replies
-
Make a rule that checks for uptime of 30 days, and then resets the modem, and then resets itself. example: rule1 on tele-UptimeSec>2592000 DO backlog power1 0; delay 600; power1 1; restart 1 endon rule1 1 Please note I haven't checked if it works - do it yourself |
Beta Was this translation helpful? Give feedback.
-
So, I'm trying this rule to turn the switch off at 50 sec mark every minute and then back on again after 20 seconds. But its not doing anything :( |
Beta Was this translation helpful? Give feedback.
-
Well, I don't get it. I tried this as a test and it doesn't do anything:
I tried Rule2 with "Local" and "time" as Status 7 shows 'Local' in the response instead of Time |
Beta Was this translation helpful? Give feedback.
-
This is the log from the "Status 7" rules previously suggested:
Again, the switch does not turn off or on and only Rule1 executes even though both are set to: "State":"ON","Once":"OFF","StopOnError":"OFF" |
Beta Was this translation helpful? Give feedback.
-
Interesting results... Works everytime:
Does not work if 'backlog' removed from Rule2 (even though there is only one Command)
The docs say "To accomplish a rule with one trigger but several commands, you need to use Backlog:", but it appears that for at least this instance, its always required. P.S. I did a:
And rebooted the switch between each test |
Beta Was this translation helpful? Give feedback.
-
There are two answers/working Rules for this question. Both scripts turn off the plug/socket at 1am on the first day of every month and then turn it back on after 30 seconds. The first one is courtesy of sfromis :
The second one is courtesy of barbudor with an added feature of always turning back on after 30 seconds even if manually turned off with the button on the socket, or via remote command:
Since I received excellent feedback. guidance and support from both of these people with working Rules, I'm marking this as "The Answer" as provided by both of them. |
Beta Was this translation helpful? Give feedback.
There are two answers/working Rules for this question. Both scripts turn off the plug/socket at 1am on the first day of every month and then turn it back on after 30 seconds.
The first one is courtesy of sfromis :
The second one is courtesy of barbudor with an added feature of always turning back on after 30 seconds even if manually turned off with the button on the socket, or via remote command: