# Get triggered device via homeyscript in flow

**URL:** <https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769>\
**Category:** Flows\
**Tags:** virtual-device\
**Created:** [January 14, 2025, 11:18pm UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769 "2025-01-14T23:18:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noghster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/noghster/32/123171_2.png) [@Noghster](https://community.homey.app/u/Noghster)\
**Post date:** [January 14, 2025, 11:18pm UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769/1 "2025-01-14T23:18:27Z")

</div>

Hi,

I’m trying to setup a simple flow using virtual devices to control lights in each of my zones.  
The flow starts using when “A virtual device changed” and then launches a HomeyScript.  
I’m trying to get the id or the name of the virtual device that triggered the flow, but there is no tag attached to the card.

Is there a simple way (or even a complicated one) to get it?

Thanks for the help !

Cheers,  
Nogh

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 14, 2025, 11:42pm UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769/2 "2025-01-14T23:42:37Z")

</div>

> [@Noghster](#):
>
> virtual devices

Which app? The Homey VD’s, the Virtual Devices app, or Advanced virtual devices from the Device Capabilities app?

---

<div class="post-metadata">

**Author:** ![Noghster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/noghster/32/123171_2.png) [@Noghster](https://community.homey.app/u/Noghster)\
**Post date:** [January 15, 2025, 6:35am UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769/3 "2025-01-15T06:35:53Z")

</div>

I m using the virtual devices app from arie j. Godschalk.

I have virtual switches with dim, hue, and intensity properties.

I can add a screenshot of The flow if needed!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 16, 2025, 2:47am UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769/4 "2025-01-16T02:47:24Z")

</div>

> [@Noghster](#):
>
> screenshot

Yes please

> [@Noghster](#):
>
> “A virtual device changed”

Can’t find such card 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [January 16, 2025, 3:41am UTC](https://community.homey.app/t/get-triggered-device-via-homeyscript-in-flow/127769/5 "2025-01-16T03:41:09Z")

</div>

Checked the „Virtual device“ app by Arie and the changed card is the only card in „when“. It provides for an „and card“ the info about the triggering device
