# Sonoff Presence Detection: Faster Flows with Logic card and Tags?

**URL:** https://community.homey.app/t/sonoff-presence-detection-faster-flows-with-logic-card-and-tags/120369
**Category:** Flows
**Created:** [November 12, 2024, 1:05pm UTC](https://community.homey.app/t/sonoff-presence-detection-faster-flows-with-logic-card-and-tags/120369 "2024-11-12T13:05:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HenriDO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrido/32/84845_2.png) [@HenriDO](https://community.homey.app/u/HenriDO)
#### Post date: [November 12, 2024, 1:05pm UTC](https://community.homey.app/t/sonoff-presence-detection-faster-flows-with-logic-card-and-tags/120369/1 "2024-11-12T13:05:56Z")

</div>

I have a Sonoff presence detector that’s working well. The card provided by the Sonoff app can detect light levels (e.g., bright or dark) and trigger actions accordingly.

In my testing, I’ve noticed that when I use the Logic card with a Tag in my flows, they seem to execute faster than when using the card directly provided by the app. time is display on the debug of the card.

 ![Capture d’écran 2024-11-12 à 13.55.09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2a5cded0fade3fd4b328df1f3f5de6e1161ea09.png)  
 ![Capture d’écran 2024-11-12 à 13.55.05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/49cf8aeb83766d6229ed186ac6d0fc2a73a475e9.png)

Does anyone know why this difference in performance might be happening?

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [November 12, 2024, 1:20pm UTC](https://community.homey.app/t/sonoff-presence-detection-faster-flows-with-logic-card-and-tags/120369/2 "2024-11-12T13:20:45Z")

</div>

I’m not sure how often you tested this and if it’s consistent, but the only possible reason I see is that the Sonoff app uses an unnecessary `await` to get the capability value which may take a bit more time in comparison with the Logic card’s (likely) synchronous execution.
