Version: 2.5.6 (Build)
I have rules and items files for a specific purpose; what I mean is; e.g. I have a PumpStation1 controller and a Battery monitor controller. There is a dedicated rules and items file for each.
When I update rules in the PumpStation1.rules I also see the battery monitor rules are initialised.
This will disturb battery monitoring variables that are running when I save the PumpStation1.rules.
Is this behaviour by design?
Why would OH refresh a rule set when updating/saving another, which have no relationship whatsoever. E.g. no item or rule addresses something in the other set.
Here is an example, but with other names, but the same principle:
2020-10-05 10:15:36.769 [INFO ] [marthome.model.script.Irrigation1.24] - ... current Valve Minutes (int) .......: 15
2020-10-05 10:15:37.289 [INFO ] [marthome.model.script.Irrigation1.25] - ... Volume Previous (meter 1) ....... -> 125
2020-10-05 10:19:15.511 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'irrigation2.items'
2020-10-05 10:19:42.493 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Battery last update': The name 'Battery_LastUpdated' cannot be resolved to an item or type; line 33, column 3, length 19
2020-10-05 10:19:44.964 [INFO ] [pse.smarthome.model.script.Weather.0] - System start or rule file reload for weather sensor rules
2020-10-05 10:19:44.968 [INFO ] [pse.smarthome.model.script.network.2] - Internet is ON (command)
2020-10-05 10:19:50.234 [INFO ] [smarthome.model.script.watersystem.0] - loading rule and initialise state(s)
2020-10-05 10:19:52.560 [INFO ] [clipse.smarthome.model.script.shed.0] - System start or rule file reload for Shed rules
2020-10-05 10:20:04.480 [INFO ] [ipse.smarthome.model.script.Zeva.0.0] - System Start: Zeva BMS rules
2020-10-05 10:20:04.493 [INFO ] [.eclipse.smarthome.model.script.init] - initialise states...
2020-10-05 10:20:31.116 [INFO ] [smarthome.model.script.Irrigation2.0] - System Start: Irrigation 2 rules
2020-10-05 10:20:31.120 [INFO ] [smarthome.model.script.Irrigation1.0] - System Start: Irrigation 1 rules
2020-10-05 10:20:32.765 [INFO ] [marthome.model.script.Irrigation1.24] - ... current Valve Minutes (int) .......: 15
In thie example above, the irrigation2.rules save is triggering the following rules files:
weather
network
watersystem
shed
Zeva
⊠they do not share items and do not address âexternalâ items in their rules.