Time cron "0 0 7 ? * 2-6 *" // every weekday at 07:00
All openHab documents says: 1= Sunday, …
But my rule was executed last Saturday (which should be not!) and was not executed this Monday.
So it seems the numbers starts with 1= Monday.
Can anyone confirm, that this is an issue or am I wrong?
My configuration is:
openHab 3.3.0
Linux Ubuntu 20.04
Then the cron handler in OH seems to deviate from the unix standard in this regard. Just created a test rule (via the UI) and for me it works when using 2 as Monday, (the UI, however, says it should run on Tuesdays)
Anyway, could you try to use the weekday names instead and see if that works?
Time cron "0 0 7 ? * MON-FRI *" // every weekday at 07:00
Could it be the case, that the start of the week is depending on your local and therefore it can be different on each installation?
I only know this from other software where start of the week will be different e.g. us english has Sunday to Saturday week but uk English, fr or de have Monday to Sunday as a week