I try to trigger a rule with a thing status change, i.e. the thing goes online or offline.
When I deactivate the thing in the GUI, the rule should fire. However, it does not.
This is my rule (which loaded without errors)
rule "Test Thing Trigger in Different File"
when
Thing "homematic:HM-LC-Bl1PBU-FM:3014F711A061A7D8A98C0DEE:MEQ0729056" changed
then
logInfo("TestDifferentFile", "*** Thing MEQ0729056 status changed in DIFFERENT FILE! ***")
logInfo("TestDifferentFile", "TriggeringThing: " + triggeringThing)
end
This is the resulting output.
2026-02-06 19:05:39.380 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'homematic:HM-LC-Bl1PBU-FM:3014F711A061A7D8A98C0DEE:MEQ0729056' changed from ONLINE to UNINITIALIZED
2026-02-06 19:05:39.384 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'homematic:HM-LC-Bl1PBU-FM:3014F711A061A7D8A98C0DEE:MEQ0729056' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
2026-02-06 19:05:44.974 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'homematic:HM-LC-Bl1PBU-FM:3014F711A061A7D8A98C0DEE:MEQ0729056' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2026-02-06 19:05:44.977 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'homematic:HM-LC-Bl1PBU-FM:3014F711A061A7D8A98C0DEE:MEQ0729056' changed from INITIALIZING to ONLINE
Right. that was an artefact from me trying other things. I fixed it in the code which still does not work.
Also tried the wildcard trigger “homatic:*” as well as restarting openhab or placing the rule in a different file.
Perhaps your logging is the issue, because it does look like the rule should run properly (but I admit it’s been many years since I’ve used a DSL rule).
Have you tried other lines in the rule body such as commands to an item?
Have you tried changing the logger name or logging at a different level (e.g., logWarn) just in case the TestDifferentFile logger has been set to a level that doesn’t display info logs?
Interesting, never heard about before. Is that documented anywhere? If no, could you please add it? And is it the all-wildcard “*” only or truely a pattern?
@s0170071 your "homatic:*" would also not match, it’s "homematic:*"
As @JustinG says debug the rule first. Add a 2nd trigger to find out if it triggers and runs at all.
It really was a logging issue. Logging was set to warn which I did not realize as the logs were still flooded with state change info messages.
Thank you all !