# Homey Bridge/Coud, detect when a plug uses no more power for more than x seconds

**URL:** <https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292>\
**Category:** Flows\
**Tags:** homey-bridge\
**Created:** [January 18, 2023, 8:58pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292 "2023-01-18T20:58:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ado3](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ado3/32/59935_2.png) [@ado3](https://community.homey.app/u/ado3)\
**Post date:** [January 18, 2023, 8:58pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/1 "2023-01-18T20:58:03Z")

</div>

Hi,  
i am using a qubino plug to load my phev with 220V at 0:00 with homey bridge and cloud only.  
I want to detect when the car is full, e.g. when the plug changes power usage to less than 2 watts for more than 2 Minutes. Ideally I would use a countdown timer for this, but i am shocked , homey beta does not even support such a simple thing as a a countdown timer.  
Any ideas how i could detect when no more power is needed and i can switch off my smart plug ? I mean it is a very simple requirement like detecting when the ebike is full, detecting when the washing machine is done and so on. explain the working of specific Flows in homey.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 19, 2023, 11:39am UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/2 "2023-01-19T11:39:54Z")

</div>

For homey pro there are countdown timer apps, unfortunately not for bridge. Does bridge have flowcards to start/stop flows and logic variables? If so, i think a solution based on these must be possible.

---

<div class="post-metadata">

**Author:** ![ado3](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ado3/32/59935_2.png) [@ado3](https://community.homey.app/u/ado3)\
**Post date:** [January 19, 2023, 12:06pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/3 "2023-01-19T12:06:14Z")

</div>

Thanky for your reply, yes, my bridge does support starting other flows and setting logic variables.  
But I do not see a way to use them to find out if the power usage after 2 minutes is still below 2 Watts. Do you have any rough hint how to use these tools to get t working ?

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 19, 2023, 3:11pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/4 "2023-01-19T15:11:29Z")

</div>

Well something like this:

First flow detects if powerusage is changed and below 2w. If so, starts a second flow with 2 minutes delay.  
Second flow, if started, checks is power usage is still below 2w. If so, execute next actions you want.

You can enhance this with a Boolean logic variable, set this to true in first flow, and set this to false in another flow if powerusage changes above 2w in the meantime of the 2 minutes. The second flow can check on this Boolean also before executing the next actions.

---

<div class="post-metadata">

**Author:** ![ado3](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ado3/32/59935_2.png) [@ado3](https://community.homey.app/u/ado3)\
**Post date:** [January 19, 2023, 4:05pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/5 "2023-01-19T16:05:56Z")

</div>

Wow, this works.Thanks so much for the idea. To start another flow with a delay is really a working method to implement some sort of timer logic.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 19, 2023, 4:25pm UTC](https://community.homey.app/t/homey-bridge-coud-detect-when-a-plug-uses-no-more-power-for-more-than-x-seconds/75292/6 "2023-01-19T16:25:17Z")

</div>

Great 👍🏻,  
Be careful not to start the second flow to many times. So to trigger it only once.
