Skip to content

Set a Timer for Day of Month #17792

Answered by ZhuDaHai
ZhuDaHai asked this question in Q&A
Jan 26, 2023 · 6 comments · 31 replies
Discussion options

You must be logged in to vote

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 :

Rule1 on StatusTIM#Local$|-01T01 do backlog power1 0; delay 300; power1 1 endon
Rule2 on Time#Minute=60 do backlog Status 7 endon
Rule1 1
Rule2 1

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:

Rule1 on Time#Minute=60 do backlog event checkdate=%timestamp% endon on event#checkdate$|-01T01 do backlog power1 0 endon
Rule1 1
Pulsetime 130
PowerO…

Replies: 6 comments 31 replies

Comment options

You must be logged in to vote
8 replies
@barbudor
Comment options

@sfromis
Comment options

@ZhuDaHai
Comment options

@sfromis
Comment options

@ZhuDaHai
Comment options

Comment options

You must be logged in to vote
5 replies
@sfromis
Comment options

@sfromis
Comment options

@ZhuDaHai
Comment options

@gemu2015
Comment options

@ZhuDaHai
Comment options

Comment options

You must be logged in to vote
12 replies
@barbudor
Comment options

@barbudor
Comment options

@ZhuDaHai
Comment options

@barbudor
Comment options

@ZhuDaHai
Comment options

Comment options

You must be logged in to vote
1 reply
@ZhuDaHai
Comment options

Comment options

You must be logged in to vote
5 replies
@barbudor
Comment options

@barbudor
Comment options

@ZhuDaHai
Comment options

@barbudor
Comment options

@ZhuDaHai
Comment options

Comment options

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