Homeyscript: motion trigger - name and location device

I can use some help.

I want to have an efficient homeyscript that acts on any motion trigger from any of my motion sensors (I use Frient motion sensor btw) and gets the details from the sensor that was triggered, esp the name and location of that sensor.

That’s not possible with Homeyscript.

The simplest way (using built-in capabilities) is upon motion, to start a flow with a text containing the sensor name and other info you want to pass on in the text field.

If you want to pass more text/number/yes/no variables to use in the destination flow, then you can use Advanced Triggers in a similar way with up to 10 variables of each kind. It will also help you minimize repeating triggers (and CPU time) by using the debounce (skip) duration.