I am violating the “if it ain’t broke, don’t fix it” rule and moving my sprinkler controls from Node Red to Home Assistant.
(I break that rule often). I have the functions mostly finished and learned a bit about automations, scripts and helper entities along the way. (Not that that means I won’t continue to ask stupid questions in the future).
But, I have run into a wall. My town requires that my lawn irrigation can only be run on even-numbered days.
So, how can I run my sprinkler script only on even-number days?
The following template reports true when the current day (of the month) is an even number. Depending on how you have constructed your automation, it can be used in a Template Condition or in a Template Trigger (along with the scheduled time).
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information, refer to guideline 21 in the FAQ.