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?