I find it useful to change the logging level of openhab.event.StartlevelEvent to INFO and then you’ll see log entries in events.log when each runlevel event occurs.
Note, if you hav Things that are in an error state, runlevel 80 and 100 may never be reached at all.
No wonder that those rules don’t work on openHAB 3.4 …
Most automation add-ons started-up on a higher start-level and therefore the rules were loaded e.g. on start level 100 so rules with start-level trigger 60 weren’t executed.
Correct, I have just verified that on the latest snapshot (Build #3508) and it is fixed.
Note that startlevel triggers now also trigger when you change a file and the rule is re-added then – they trigger immediately when the start level is already reached.
Has this fixed regressed since the last patch openHAB 4.3.1 (Release Build) was applied?
because I’m seeing same symptom now?
eg the below script doesn’t output anything in log
This is why we have different levels. By having run level 100 it means the system has fully and successfully come online and operational. This may be important and you don’t want certain rules to run until all Things are online.
If you don’t care if all your Things have come online you have run level 70.
To be honest, I don’t know the difference between rls 40 and 50. I wouldn’t think any rules would be able to run until 50 anyway. I’ve always meant to ask about that.
You can’t get to run level 40 without successfully passing the earlier run levels so those can be ignored as outside the scope here. This is where Items are loaded and restoreOnStartup runs.
Wrt to rules SL 40 means that rules are loaded and SL 50 that the rule engine has successfully started.
So SL triggers are only useful for SL 50 and above.