Struggling with Cron Builder

Running OH 5.1.1 on RPi5 configured entirely with Main UI

I’m trying to create a Rule that will trigger every day at 23:58 but can’t get the Cron Builder to cooperate. Is there a specific order of operations for this thing?

If you want the rule to run once a day use the “at a fixed time of the day” option instead of “on a schedule (cron)”

Actually should have said I’m trying to build a persistence Strategy and that cron builder is the only option.

It’s not clear what problem you are having. Is the cron not running at the specificed time?

It won’t update the actual expression at the top until you move to another tab or hit done. But based on the screen shot that should be every day at 23:58.

Yes mine didn’t work either.
It might be a 5.1 bug.

I just accepted the 0 0 23 * * ? * and then changed it in the cron statement to 0 58 23 * * ? *

I noticed this as well. I am overhauling the persistence definitions UI (https://github.com/openhab/openhab-webui/pull/3766) and I already fixed this bug in that exercise (+ added the ability to edit previously create cron strategies with the builder, right now it always starts from scratch).

As there is a workaround for this, I am not going to extract this fix in a separate PR.

1 Like

Thanks for confirming this is a bug and I’m not just using the tool incorrectly.

Knowing this I can certainly work around it!