Here's the scenario. I travel a lot for work, some times a month at a time. There is a hand full of tasks I'd like to be reminded to do for every x days I am home. For example:
- Descale the coffee machine every 60 days.
- Run the cleaning cycle on the coffee machine every 45 days.
- Change the water filter every 90 days.
- Disinfect keyboard and mouse every 7 days.
- etc...
In SmartThings of WebCore, I used to have a piston called Home tasks reminder. There's a global variable called At home counter, where the number goes up for every night I am home. Then I divide this At home counter variable with x days(days required for tasks). If the remainder is zero, then execute a task.
Here is an example code for descaling the coffee machine:
If At home counter%60 == 0
{ Create a task on Todoist, "Descale the coffee machine."}
How do I do the same thing on RuleMachine?