diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/RuleEngineImpl.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/RuleEngineImpl.java index 69fb534fa..15bb3ada6 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/RuleEngineImpl.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/RuleEngineImpl.java @@ -1555,15 +1555,16 @@ public class RuleEngineImpl implements RuleManager, RegistryChangeListener { - ruleRegistry.getAll().forEach(r -> { - compileRule(r.getUID()); - }); + ruleRegistry.getAll().stream() // + .filter(r -> isEnabled(r.getUID())) // + .forEach(r -> compileRule(r.getUID())); executeRulesWithStartLevel(); }); }