# When powerconsumption -eq 1234W then wait - recheck - and perform an action

**URL:** <https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [October 29, 2022, 9:34am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363 "2022-10-29T09:34:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![haovard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/haovard/32/63855_2.png) [@haovard](https://community.homey.app/u/haovard)\
**Post date:** [October 29, 2022, 9:34am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/1 "2022-10-29T09:34:54Z")

</div>

Hi,

I have connected a Tibber power meter which monitors the total power consumption in my power meter, which goes into the fuse box.

I want to set up a flow that performs the following:

**Step 1)** If power consumption reaches 7100W  
**Step 2)** Wait for 5 minutes  
**Step 2)** If the power consumption is still above 7100W then perform nessecary actions(disable heating cables etc.)  
**Step 3)** Wait for 5 minutes  
**Step 4)** If the power consumption is below 7100W  
**Step5)** Wait for 5 minutes  
**Step6)** Power on floor heating cables etc.

How man flows do I need to create to perform this action?

Is there a way to store the output from the Tibber device to a variable so that I can use it throughout the rest of the flow? I`ve seen some examples where a Yes/No confirmation can be sent to a user to perform the rest of the flow, but I want it to run a bit more automatic.

//Håvard

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 29, 2022, 9:43am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/2 "2022-10-29T09:43:53Z")

</div>

Standard Flow or Advanced Flow?

---

<div class="post-metadata">

**Author:** ![haovard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/haovard/32/63855_2.png) [@haovard](https://community.homey.app/u/haovard)\
**Post date:** [October 29, 2022, 9:44am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/3 "2022-10-29T09:44:32Z")

</div>

Hi Adrian,

I have the ability to use advanced flow.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 29, 2022, 9:47am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/4 "2022-10-29T09:47:25Z")

</div>

So you could use the delay card between the trigger and the condition. The condition could look at the power tag for the device so no need to store the value in a variable.

The alternative is to use one of the timer apps for the delay.

---

<div class="post-metadata">

**Author:** ![haovard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/haovard/32/63855_2.png) [@haovard](https://community.homey.app/u/haovard)\
**Post date:** [October 29, 2022, 10:04am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/5 "2022-10-29T10:04:26Z")

</div>

Yes, that would be the solution if I could reuse the Tibber application in _And_ or in the _Then_ setting.  
I can only use it in _When_

 ![Screenshot 2022-10-29 at 12.03.13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/0/303abfb2a9bb6216f71fc34b25269993b27ac3f0.jpeg)

As you can see from the picture I cannot connect the line to the left side of the action of it - only to the right side.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 29, 2022, 10:08am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/6 "2022-10-29T10:08:46Z")

</div>

You should be able to use it in the And with a Logic card and a tag:

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

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48164bdadd5cbfd9b1167c8809a52cd64d89dc10.png)

When you click on the Value parameter you can find the Power tag for the Tibber device.

But the more I look at it (I’m playing with setting up the flow), it would be better to use a timer app such as CountDown (there are others but that is the one I’m familiar with).

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 29, 2022, 10:48am UTC](https://community.homey.app/t/when-powerconsumption-eq-1234w-then-wait-recheck-and-perform-an-action/71363/7 "2022-10-29T10:48:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/6355764fcd576a0c6e8d1ec7e32713a8cc4e6a47.png)
