Trying to get my Sonoff to switch something on once a month for a day but will this work ?? Idea is the first of the month it's on for the entire day, the rest of the month it's not.
on %sysmonth%=1 do
gpio 12,1
endon
on %systmonth%!=1 do
gpio 12,0
endon
thanks !
Edit :
seems to work with the following (stupid me, shouldve used sysday of course, besides some code changing )
on Clock#Time do
if %sysday%=18
gpio 12,1
endif
endon
on Clock#Time do
if %sysday%!=18
gpio 12,0
endif
endon
Rule monthly action
Moderators: grovkillen, Stuntteam, TD-er
Who is online
Users browsing this forum: Ahrefs [Bot] and 150 guests