# HomeyScript: current device?

**URL:** <https://community.homey.app/t/homeyscript-current-device/2073>\
**Category:** Developers\
**Created:** [September 24, 2018, 3:46pm UTC](https://community.homey.app/t/homeyscript-current-device/2073 "2018-09-24T15:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bassie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bassie/32/10496_2.png) [@Bassie](https://community.homey.app/u/Bassie)\
**Post date:** [September 24, 2018, 3:46pm UTC](https://community.homey.app/t/homeyscript-current-device/2073/1 "2018-09-24T15:46:35Z")

</div>

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();`

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [September 24, 2018, 5:24pm UTC](https://community.homey.app/t/homeyscript-current-device/2073/2 "2018-09-24T17:24:27Z")

</div>

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.
