# Advanced Flow - Trigger Card ID Or Device

**URL:** <https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406>\
**Category:** Flows\
**Tags:** flow, homey-pro, advancedflow\
**Created:** [February 20, 2026, 2:13pm UTC](https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406 "2026-02-20T14:13:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonesg1979](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonesg1979/32/144807_2.png) [@jonesg1979](https://community.homey.app/u/jonesg1979)\
**Post date:** [February 20, 2026, 2:13pm UTC](https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406/1 "2026-02-20T14:13:36Z")

</div>

Hi all,

Is there any way in an Advanced Flow to pass the Device ID or Device Name from the triggering WHEN card into a HomeyScript?

```auto
WHEN:

Ceiling Light → Turned On

THEN:

HomeyScript → toggle-scene (Device Name)

```

So essentially:

- A device triggers the Flow (e.g. _Ceiling Light turned on_)

- I want to pass **that triggering device** into a HomeyScript

- The script then uses the Device Name / ID to apply logic (e.g. toggle the correct scene for that zone)

Any guidance appreciated 👍

---

<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:** [February 20, 2026, 8:02pm UTC](https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406/2 "2026-02-20T20:02:49Z")

</div>

Hi Gareth,

It’s possible with this [Device Capabilities app](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) flow card for either the device name or -ID:  
(the result tag can be used as argument for a Hscript card)

 ![890](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b36e8c1e5c139db3992e87c4211e6a9ee40491ce.jpeg)

Result output of the Simple (Sys) Log card:

 ![Screenshot_20260220_203947_Vivaldi](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/3/a3c3bf8bc11b46bf11c6ccb8bf224d0a097047c1.jpeg)

When you only need the device name, you can use this Device Capabilities card:

 ![893](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cf0a0b9fca5729e117f663bb9afc00c564df313d.jpeg)

_Note: ‘…from 0 minutes ago…’ means ‘the last updated value’_

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 23, 2026, 7:57am UTC](https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406/3 "2026-02-23T07:57:35Z")

</div>

> [@Peter\_Kawa](#):
>
> When you only need the device name, you can use this Device Capabilities card:

Also note: this flowcard uses way less resources then the watch card.

---

<div class="post-metadata">

**Author:** ![jonesg1979](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonesg1979/32/144807_2.png) [@jonesg1979](https://community.homey.app/u/jonesg1979)\
**Post date:** [February 23, 2026, 9:36am UTC](https://community.homey.app/t/advanced-flow-trigger-card-id-or-device/151406/4 "2026-02-23T09:36:43Z")

</div>

Thanks @Peter_Kawa - will give it a try now.

Thanks @Arie_J_Godschalk for the insight - I do only need the device name.
