It won’t be perfect but, day of month modulo 3.
At the end of month or start of month it will be off.
Another way would be day of year modulo 3.
But this will fail at new year instead.
Don’t have any way of testing it currently but it seems you need to use lambdas:
And if you use the timestamp as Nick suggests then divide it with 86400 and round to 0 decimals.
That will be the number of days since 1970.
So the above calculation % 3 == 0 should return true every three days.
** Edit … cron requires (6) spaced digits, not (5) - not sure what the sixth digit is as it is not shown in the crontab.guru page. Also, the */3 needed to be /3 to make the yaml like it.
Will test and see!
Thanks to all - Greatly appreciate your input and kindness!
This was because I wanted the interval to be changeable in a home assistant dashboard.
Maybe it’s possible to create the cron syntax string dynamically in a lambda too, I haven’t checked.
For my specific case having it in the dashboard wasn’t really worth it. The interval is rarely changed, but easy to change by accident in the dashboard.