Advanced Flow - Trigger Card ID Or Device

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?

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 :+1:

Hi Gareth,

It’s possible with this Device Capabilities app flow card for either the device name or -ID:
(the result tag can be used as argument for a Hscript card)

Result output of the Simple (Sys) Log card:

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

Note: β€˜β€¦from 0 minutes ago…’ means β€˜the last updated value’

1 Like

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

Thanks @Peter_Kawa - will give it a try now.

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