OH3.4
How do I run a rule at 2 am in the morning only once and never again?
I have tried schedule and crom, but both make a daily repeating rule.
Edit: found out that Cron in OpenHAB supports year. This solves it.
OH3.4
How do I run a rule at 2 am in the morning only once and never again?
I have tried schedule and crom, but both make a daily repeating rule.
Edit: found out that Cron in OpenHAB supports year. This solves it.
So you want it to run once per year which is slightly different from your original question.
To answer your original question though, set the cron job to run a 2 AM. Add your action to do what ever it needs to do. Then add another action to disable the rule. The rule won’t run again until you enable it again.
0 0 2 8 8 ? 2023
will run the rule on august 8 2023 at 2am, so only once