Hi all,
while moving to OH3, I was able to get rid of 99% of my coded rules - i only use rules using whens, thens and buts. And I just found this very helpful:
openhab> log:set TRACE org.openhab.core.automation.internal.RuleEngineImpl
will result in:
==> /var/log/openhab/openhab.log <==
2021-05-11 23:20:10.436 [DEBUG] [e.automation.internal.RuleEngineImpl] - The trigger '1' of rule '4969498756' is triggered.
2021-05-11 23:20:10.436 [DEBUG] [e.automation.internal.RuleEngineImpl] - The condition '3' of rule '4969498756' is unsatisfied.
2021-05-11 23:20:10.437 [DEBUG] [e.automation.internal.RuleEngineImpl] - The rule '4969498756' is NOT executed, since it has unsatisfied conditions.
Which can come in handy while “debugging”.
Have a good night!
PhiL