# Advanced Flow, last action by

**URL:** <https://community.homey.app/t/advanced-flow-last-action-by/95343>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [November 21, 2023, 4:39pm UTC](https://community.homey.app/t/advanced-flow-last-action-by/95343 "2023-11-21T16:39:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brumle](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brumle/32/79318_2.png) [@Brumle](https://community.homey.app/u/Brumle)\
**Post date:** [November 21, 2023, 4:39pm UTC](https://community.homey.app/t/advanced-flow-last-action-by/95343/1 "2023-11-21T16:39:49Z")

</div>

Hi

Is there a way to check what flow or app preformed the last action on a device, in an advanced flow?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f16df95f904d255903e30c2a07bd470dde2e35cf.png)

In my flow that handles lighting in the garage, I would like to know if “plejd” turned on the light (pressing the light switch), or if it was done by my flow. If the light switch is pressed, I dont want my flow to turn off the lights.

---

<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:** [November 22, 2023, 5:39am UTC](https://community.homey.app/t/advanced-flow-last-action-by/95343/2 "2023-11-22T05:39:56Z")

</div>

This is a way to do it, with use of the Device Capabilities app  
[https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/10](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/10)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/b/0b297e18993f42de049a85b6a23e59039dd0c819.png)

.  
There’s lots of local tags you can use

> [@Welke actie/flow/app veroorzaakt aanzetten licht?](https://community.homey.app/t/welke-actie-flow-app-veroorzaakt-aanzetten-licht/59605/21):
>
> For anyone interested, There’s a new way to find out what/which flow/who turned a device on or off. The app used is [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287).
