Identify device id that triggered scene

Hi,

I have a few motion sensors that trigger scene & I want to be able to see which exact sensor triggered this scene & log it to main log.

is there a way to do something like:

luup.log("Motion sensor #"..deviceID.." triggered this scene.") 

Instead of using SCENE level LUA code … put in the LUA code for the specific trigger … then you will know which trigger …
Or in the scene level LUA set the variable
deviceID = XXX

Then your existing code fragment in the the Scene Level LUA code would work.