# Trigger flow when 2times on/off

**URL:** <https://community.homey.app/t/trigger-flow-when-2times-on-off/31703>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [June 26, 2020, 8:09pm UTC](https://community.homey.app/t/trigger-flow-when-2times-on-off/31703 "2020-06-26T20:09:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [June 26, 2020, 8:09pm UTC](https://community.homey.app/t/trigger-flow-when-2times-on-off/31703/1 "2020-06-26T20:09:32Z")

</div>

Hi, I can not figure out how to create the following flow. I am using Aqara 2way relay on the dumb switch. I want make trigger it a flow when I quickly turn it on and off 2 times in a raw. Lets say within 2 or so seconds. Any suggestions from experienced guys in logic? Many thanks

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [June 26, 2020, 8:32pm UTC](https://community.homey.app/t/trigger-flow-when-2times-on-off/31703/2 "2020-06-26T20:32:06Z")

</div>

Maybe my own suggestion: first flow is start coundown 3 seconds. Second flow IF turn on AND counter running THAN trigger flow.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [June 30, 2020, 3:34pm UTC](https://community.homey.app/t/trigger-flow-when-2times-on-off/31703/3 "2020-06-30T15:34:26Z")

</div>

Sure, why don’t you try?

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [July 1, 2020, 5:57pm UTC](https://community.homey.app/t/trigger-flow-when-2times-on-off/31703/4 "2020-07-01T17:57:35Z")

</div>

I then tried at home and it works 😉
