Rules on startup - How to prevent running if things not yet reported the correct state?

  • Platform information:
    • Hardware: RasPi 4
    • OS: _RaspiOS Bookworm
    • Java Runtime Environment: _Whatever the docker image is
    • openHAB version: 4.2.2
  • Issue of the topic: Delay Rules on startup
  • Please post configurations (if applicable):

Hello Friends,

So i use a group in my System to evaluate if my Wife and Me are at home. (Network Plugin)

Group isHome
Mobile 1 (on/off)
Mobile 2 (on/off)

After reboot both phones switch to undef.
Then Mobile 1 iswitches to off and then all is off. → And this is what i don‘t want
Then Mobiel 2 comes back online.

This could be avoided if there would be something like (don’t run after restart).
(I know I can also set the group to All Off then Off else On, but there are also other rules that need to have a delay.

it’s there a good pattern to do so?
I would suggest to have something like a But only if Condition that checks that all is up.

Are you using persistence with restore on startup?
Greets

Edit:
And for delaying DSLrules at system start I use one of this…
https://community.openhab.org/t/cleaning-up-the-startup-process-renaming-rules-windows-possible/38438

1 Like

Hi,
Thank you.
I‘m using influx db2 as persistence
(Out of the box)

very close to your use case there is a marketplace rule in the add-on store. It’s that one:

2 Likes