HomeyScript: current device?


#1

I want to use a HomeyScript for a flow, triggered by multiple devices.
is it possible to GET the current device? (the device that triggered the flow)
Something like (pseudo-code):
let device = await Homey.devices.getCurrentDevice();


#2

The script is not aware of the calling flow, you have to program requesting and filtering the devices yourself.
Not sure it is possible (as no other flowcard in the condition or action column will automatically detect the triggered device. but else it would be a nice feature request.