I updated an items file named weather.items… it triggered the reload of .rules files?
I have also noticed this, when updating one rules file; it triggers other rules files to reload.
For the event bus, modifying any of the “essential” files means a system start up! For clarity (as far as I know): modifying *.items, *.rules while openHAB is running, triggers a start up event on the bus.
If your rules are designed to not take in to consideration the above mentioned experience, means you need to rethink your rules. BTW: it happened (not in the same manner) in OH 1 also.
Thanks
IIRC, OHv1 only showed the file that was updated in tail openhab.log
OHv2 shows quite a lot of rule files being reloaded; I have to check, whether it does all of them.
I have sequential timers for sprinklers (and there was once an issue with timers continuing when reloading rules); so I had the fear of these being buggered up.
However, the timer I had running kept going and finished.
The lesson learned seems to be not to fiddle with items and rules in production when things are going on.
[I actually have a window from 16:00 to 23:50 when not much is going on (at present)… as I have lots of repeat daily automations. but no human/movement triggered events.]
Aha, now I understand… will have a look, whether I need those startup rules.
Most startup rules initialise items, which I can move into a single init.rules.
(Not all .rules have a at startup, why I did not see all rules reloaded)
Done… now only 2 out 10 rules files have System started clauses…