Monthly timer #21369
-
Hello, I am looking for a solution to the following problem. Tasmota should always switch on a socket on the first Saturday of a month at 10 am. This should then remain active for 1 hour and then switch off again. Is it possible to implement this with rules and timers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You could create a timer for every saturday, which could then create an event with For switching off again after 1 hour, the command If using ESP32, you could have a single |
Beta Was this translation helpful? Give feedback.
Solved it:
I´m using a NOUS A1T. Since this device seems to not support the TimedPower parameter I had to use PulseTime for turning off the plug after 1 Minute.
For 60 seconds timed power off enter in console (Offset 100 + 60 seconds = 60 seconds):
PulseTime 160
The set a repeating timer for every saturday via GUI and set Action RULE (in this case I´m using Timer1.
Then execute the following code after Timer1 expires to check current date and power on if date fits the first 7 days of the week:
Rule1 on clock#Timer=1 do backlog event checkdate=%timestamp% endon on event#checkdate$|-01T do Power1 1 endon on event#checkdate$|-02T do Power1 1 endon on event#checkdate$|-03T do Power1 1 endon o…