Inspecting the event object

I am just starting to learn Groovy and I’ve come across a situation I am unable to google :slight_smile:

How can use the same function (or event handler) to process an event from two different sensors? Is it possible to pass the name of the sensor as input to the function or can I probe some property of the event for the sensor information?

These are temperature sensors by the way. :slight_smile:

The Event Object explicitly belongs to a specific Device Instance, I believe.

It’s device.event()… though you should check the docs.