Does anybody have a way to test for a date like second Monday of the month or third Thursday?
Haven't played with RM yet (came over from ST and all of my rules were in webCore), but logically it should be something like
weekDay = Monday and dayOfMonth > 7 and dayOfMonth < 15
Unfortunately there isnāt a day of month. Might have to cave in and use a custom app.
Like this you mean?
When you go into triggers select
Periodic Schedule
Select Monthly
Select in the week of the month
Select day of the month
Select the time
I was looking for a conditional. I hadnāt checked triggers. Iāll see if I can rethink it.
Kind of roundabout but this looks like it might work.
The only issue is I want to trigger it over several days so Iāll have to create a few conditionals. It only runs once a day so thatās not too bad.
It ends up with two ifs for each holiday but I can live with that.
Most holidays will be a simple conditional and anything that moves will be a regular conditional like Thanksgiving. It may not be elegant but it works.
I think I looked at that some time ago. I would either have to maintain a bunch of virtual switches and read their states or update the app to write to my variable. Both seem to be more trouble.
Up until now I have just been manually updating the variable. Eventually Iāll port everything over to Node-RED but that hasnāt happened yet so I figured I word do a quick rule.
Thanks for the suggestion.