Get event triggering Thing

I am experimenting with Thing-based events and was wondering how to get a reference to the Thing causing the event to fire.
This is my rule:

rule "test rule"
when
    Thing 'zwave:device:acbdef:node2' changed
    or
    Thing 'zwave:device:abcdef:node9' changed
then
    logInfo("test", "{} changed", previousState);
end

I am aware it’s possible to get the Item from Item-based events with triggeringItem, is there some way to get the Thing?
triggeringThing does not work.
Or, more usefully, could we get a reference to the Event object itself?

Have a look here:
https://openhab-scripters.github.io/openhab-helper-libraries/Guides/Event%20Object%20Attributes.html

It seems to be not supported for dsl based rules

@Matze0211 Very useful post.
So we cannot access the event object itself?
That would actually be better.

You can do this e.g. in a JavaScript rule but as per my understanding not in a dsl rule

with OH version 3.3 you have the following implicit variables availabe in DSL rules:

triggeringThing
previousThingStatus
newThingStatus

see here
thanks to @jamesmelville

2 Likes