# Create flow when a device's current is between 2 values for a certain period of time

**URL:** <https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294>\
**Category:** Flows\
**Created:** [July 2, 2024, 5:00pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294 "2024-07-02T17:00:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martijn\_Swart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_swart/32/78916_2.png) [@Martijn\_Swart](https://community.homey.app/u/Martijn_Swart)\
**Post date:** [July 2, 2024, 5:00pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/1 "2024-07-02T17:00:50Z")

</div>

Hi there,

I would like to crate a flow based on the following parameters:

- power current used by a device is between 1.8A and 2.2A
- in a time period of about 10 minutes

anyone has an idea on how to achieve this?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 2, 2024, 5:49pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/2 "2024-07-02T17:49:59Z")

</div>

If you own a Homey Pro, this is a way to achieve it, Martijn. And welcome here!

 ![Screenshot from 2024-07-02 19-55-07](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f423d3324a3b4202b8362743486673e24764251a.png)

This is also possible when using standard flows, you’ll need 2 flows:  
1 for the power change trigger  
1 for the timer finished trigger

Oh, and this is how to find the right tag of a device  
 ![Screenshot from 2024-07-02 19-54-20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/5508547c657fc77697cfb95bf01103c01a8bc7ae.png)

---

<div class="post-metadata">

**Author:** ![Martijn\_Swart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_swart/32/78916_2.png) [@Martijn\_Swart](https://community.homey.app/u/Martijn_Swart)\
**Post date:** [July 2, 2024, 6:25pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/3 "2024-07-02T18:25:38Z")

</div>

Thanks very much! I’ll give it a try.

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [July 2, 2024, 6:35pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/4 "2024-07-02T18:35:45Z")

</div>

Some questions:

- What happens if power is fluctuating between 1,8 and 2.2?
- What happens if power is between 1,8 and 2.2 for a minute within 10 minutes?

And are the answers what you want/need??

---

<div class="post-metadata">

**Author:** ![Martijn\_Swart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_swart/32/78916_2.png) [@Martijn\_Swart](https://community.homey.app/u/Martijn_Swart)\
**Post date:** [July 2, 2024, 6:47pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/5 "2024-07-02T18:47:30Z")

</div>

Don’t know yet. It’ll need a bit of testing and tweaking.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 2, 2024, 7:06pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/6 "2024-07-02T19:06:04Z")

</div>

> [@Hielke\_de\_Jong](#):
>
> What happens if power is fluctuating between 1,8 and 2.2?

Good point. I think an additional “amps within range” YesNo variable needs to be set, which then drives the timer. This eliminates the fluctuation triggers.

> [@Hielke\_de\_Jong](#):
>
> What happens if power is between 1,8 and 2.2 for a minute within 10 minutes?

Nothing I hope 😅  
What did I miss?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 3, 2024, 9:28am UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/7 "2024-07-03T09:28:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/292824d9bc3f3882141989dc958e7df20561c4cd.png)

If you need a translation, please let me know.

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [July 3, 2024, 9:54am UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/8 "2024-07-03T09:54:24Z")

</div>

> [@Peter\_Kawa](#):
>
> Nothing I hope 😅  
> What did I miss?

You are using Pause where I think you could better use Stop (As DirkG)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 3, 2024, 6:18pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/9 "2024-07-03T18:18:43Z")

</div>

> [@Hielke\_de\_Jong](#):
>
> You are using Pause where I think you could better use Stop (As DirkG)

Doesn’t matter if Pause or Stop is used when we start the timer with the “Start or Replace” card.  
It’s a different story when one uses “Start or Resume” card. But we don’t in this case.

I still don´t understand the where this is related with the above

> [@Hielke\_de\_Jong](#):
>
> What happens if power is between 1,8 and 2.2 for a minute within 10 minutes?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 3, 2024, 11:17pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/10 "2024-07-03T23:17:53Z")

</div>

This works for me, the variable now controls the timer as in-between

 ![Screenshot from 2024-07-04 01-19-13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4a3ecb592cfa381aae93feddb35d8cad55d23245.png)

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [July 4, 2024, 7:34pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/11 "2024-07-04T19:34:14Z")

</div>

My mistake 🙂 because of the use of the Pause and not seen the use of the start or replace, I was thinking after the pause the time would continue. So that the timer could reach 10 minutes separated over time.

But indeed you use the start or replace so nothing unexpected will happen.

---

<div class="post-metadata">

**Author:** ![Martijn\_Swart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_swart/32/78916_2.png) [@Martijn\_Swart](https://community.homey.app/u/Martijn_Swart)\
**Post date:** [August 21, 2024, 11:29am UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/12 "2024-08-21T11:29:07Z")

</div>

Took some time to do proper testing and tweaking, but it works great!

Thanks for all the advice.

---

<div class="post-metadata">

**Author:** ![KenZ](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kenz/32/94527_2.png) [@KenZ](https://community.homey.app/u/KenZ)\
**Post date:** [February 8, 2025, 11:45pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/13 "2025-02-08T23:45:10Z")

</div>

This is all great info. The issue _I_ have is the Ikea Inspelning and when used in the “and” card mode it only gives ONE option:

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

Which seems like particularly weak sauce to me. If I could link two “When” cards together as both needed conditionals that might work, but either way, those would likely need to come after a “When” card for when power changes.

I guess I need to go find other on/off switches (for the US) that have a few more… options.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [February 9, 2025, 12:19pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/14 "2025-02-09T12:19:45Z")

</div>

Maybe you can share what you want to achieve?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 9, 2025, 3:21pm UTC](https://community.homey.app/t/create-flow-when-a-devices-current-is-between-2-values-for-a-certain-period-of-time/112294/15 "2025-02-09T15:21:11Z")

</div>

> [@KenZ](#):
>
> and when used in the “and” card mode it only gives ONE option:

For most “And” options, you’ll need to use one of the logics cards. A main reason for developers not to create additional ‘And’ cards for standard conditions.

Apps often provide for info through so called ‘tags’. Tags can be considered as variables controlled by apps only. You can use those tags to read out their values.

> **[Using Homey Logic in Flows](https://support.homey.app/hc/en-us/articles/4410240765586-Using-Homey-Logic-in-Flows)**
>
> You’ve probably seen Homey Logic. Once you get the hang of it, it's a great tool for any smart home. By creating your own Variables and using these in your Flows as Tags, you can often accomplish c...

 ![1000042901](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f64fb25a1432aad8b0408f0f4a476cd67bdd6437.jpeg)
