I've read the handful of posts of people setting up garbage day reminders in RM using day of week as the trigger, or even using variables to change it to garbage and recycle every other week.
My garbage schedule is a little different though, and I'm trying to wrap my head around setting up a rule to notify us for garbage or garbage/recycle day.
We have garbage pickup every Wed, but recycle is only on the first and third Wed of the month. On long months, if the first Wed is one of the first couple of days of the month, we will go two weeks at the end of month into the next month without a recycle pickup, so a simple back and forth variable state won't work.
Is there any way to account for this? Eventually I'd like to mount a couple of rgb lights over each can and have them light red or green to let us know which cans to grab without having to look at the phone.
I can't think of a way to solve the logic you need, but if you can't get it going, you may want to look at the Google Calendar Search driver as a way to still get the schedule for your bin collection in, requiring manual creation of the calendar.
Thinking about it now, Google may provide something like what you described as a recurring option ... Still, self-contained in HE would still be better.
One of the trigger options is "Periodic Schedule." If you select "Monthly" then you have a "In the week of the month" option to select first week, second week, etc. When you select that, you then get an option to select the specific day of the week.
Bingo. Thank you. I just set it up, and looks like it will work. The only caveat is that I will have to make 2 seperate rules- one for garbage only, and one for garbage/recycle, because the periodic condition doesn't seem to be in the actions to use for an if/then. No big deal though. This is great.
In thinking how I would do it, I would trigger every Wednesday and on the first day of the month. This driver might come in handy, when you get into coming up with the final logic. On the first you can see what day of week it is and then set the rest of your monthly schedule from there.
Huge thanks for the input of @sburke781 !!! I learned that RM5 doesn't handle Boolean attributes in rules. I've updated my device driver to store all booleans as strings (which actually handles a bit nicer anyway!). Here is a rule to text my phone every 2 weeks on monday that the garbage cans go out.
That brings to lite the '30 days has sept, april... ' thing. Some months have odd days, some don't. Not sure how that gets handled...
I'm adding an 'even/odd' value for the date number similar to week odd/even. maybe that will help. v.0.2.5 coming up - once dmans spider fingers my git repo.
Just here to say that this EVEN/ODD DAY SWITCH driver that you made has allowed me to control Simple Irrigation App ( @bptworld ) perfect to my peak summer irrigation needs.
I actually ran across this thread when looking to refresh my memory about the driver.... so I could feed that state into a Morning Systems & Temperature Announcement.
Not quite a "take the trash out" but more a "it's already hot out and this is NOT a scheduled irrigation day, consider the soil conditions and if you want to run it".
So THANKS AGAIN
P.S. Even though this contributed to the functionality of HE it continues to bother me that fundamental utilities such as this are not integrated features. This is a whole different discussion but none-the-less, thank you.