# Advise about creating a flow to turn off a smart plug

**URL:** <https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648>\
**Category:** Flows\
**Tags:** flow\
**Created:** [July 21, 2020, 7:35pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648 "2020-07-21T19:35:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [July 21, 2020, 7:35pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648/1 "2020-07-21T19:35:36Z")

</div>

Hi y’all!

I new with Homey and flows so bear with me.

I have managed to get the flow to notify me when the washing machine and the dryer are finished, running. So far so good. But I would like to switch off the TP-Link smart wifi plug HS-100 after the washing machine is finished. But if we start a new washing the machine should not turn off, of course.  
 ![flow 2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4dd21f4cdb3595b16ecb74802d63f244395a44e3.jpeg)

Under ‘Then’ in the washing machine notify flow I have the ‘Start a new flow’ card. It points to the new flow that turns off the smart plug.  
As you can see I have a delay of 1800 seconds before the smart plug is turned off. But what if my wife decides to put on another washing within that 1800 seconds? Will the plug still be turned off? The flow should first check if the power consumption is \< 1 Watt. If it is more than 5 watts or so it should stop the 1800 seconds delay.

 ![flow 1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/4/b49b2b214df908cef0e3732b820a3ffbe3082b27.jpeg)

How should I do that?

Any help is appreciated.

Cheers,

Wim van Bezouw

---

<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:** [July 21, 2020, 7:47pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648/3 "2020-07-21T19:47:53Z")

</div>

> [@Washingmachine & Dryer notification: notification when they're both done](https://community.homey.app/t/washingmachine-dryer-notification-issues-how-do-i-get-it-right/32566):
>
> Both my washing machine and dryer are in the basement. Both have a plug that measures the energy. Setting a variable for both based on power is easy, on and off. Although for the washing machines it is more difficult because it has moments of almost no power consumption during the program. But now comes the hard part: if the washing machine is finished, and the dryer isn’t on: I want a notification. If the dryer is finished, and the washing machine isn’t on: I want a notification. If the wa…

---

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [July 22, 2020, 4:37pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648/4 "2020-07-22T16:37:07Z")

</div>

Hi Roy, thanks for the tip but with timers or countdown timers alone I wouldn’t know how to get the 1800 seconds questions in my message solved. As I said I am new with Homey, let alone flows and variables. Cheers.  
Wim

---

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [July 22, 2020, 6:19pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648/6 "2020-07-22T18:19:34Z")

</div>

Thanks Roy, I will give this a try. I’ll keep you posted!

---

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [July 31, 2020, 10:00pm UTC](https://community.homey.app/t/advise-about-creating-a-flow-to-turn-off-a-smart-plug/32648/7 "2020-07-31T22:00:59Z")

</div>

Hi Roy,  
I had a few days planned away with my wife. (duty calls) That’s why I reply a bit late. I tried the flows as you described and they work great. Thanks for the advise!  
Cheers,  
Wim
