# Advice with Advanced Flows - allow only to happen each hour

**URL:** <https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [August 24, 2022, 4:51pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855 "2022-08-24T16:51:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 24, 2022, 4:51pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/1 "2022-08-24T16:51:11Z")

</div>

Using another home automation hub I was able to trigger an Air Wick spray to operate once per hour when motion was detected in the room.

So a Hue Motion Sensor (using Hue App) triggers on motion turn on a plug then through a battery eliminator power up the AirWick Spray. It would then auto turn off after 60 seconds the Pause for 59 minutes.

This Pause meant that the Airwick spray could only fire once per hour - or any other duration set in the Pause.

Will this work in the Advanced Flow - will a delay cause the whole Flow to freeze for an hour?

ie will this work as described above?

 ![Screenshot 2022-08-24 at 17.53.33](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/62c1301b1e249218bda073981ddac3566f4bf88d.png)

---

<div class="post-metadata">

**Author:** ![ReidarRoen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reidarroen/32/33964_2.png) [@ReidarRoen](https://community.homey.app/u/ReidarRoen)\
**Post date:** [August 24, 2022, 8:03pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/2 "2022-08-24T20:03:32Z")

</div>

I’m using another way of making a flow run every 30 min. (between 23:00 and 06:00). Sorry it’s in Norwegian, but maybe you understand.

 ![Skjermbilde 2022-08-24 kl. 21.56.30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fc5f8fe045cce28fcb0b8004c49e092035934caa.png)

---

<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:** [August 24, 2022, 9:34pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/3 "2022-08-24T21:34:08Z")

</div>

Replace the “59m” delay for a timer. I use Chronograph f.i.  
It would be the card: _Then_ "Start or replace timer ‘pause\_airwick’ " (just any name)  
Set the timer to 59 minutes.

Between card ‘motion alarm on’ and 'turn on Hall airwick, place the _AND_ card ‘Timer pause\_airwick is not running’

---

<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:** [August 25, 2022, 8:42am UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/4 "2022-08-25T08:42:20Z")

</div>

> [@Busta999](#):
>
> will a delay cause the whole Flow to freeze for an hour?

No

My suggestion:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/70e25c6e06249004e2e07bce5a7bae3df8c5239a.png)

In English:

_ **When…** _  
– Motion alarm turned on

_ **And…** _  
– Timer “Airwick” is not running

_ **Then…** _  
– Turn on  
– Turn off with 60 s delay  
– Start or replace timer “Airwick” with a duration of 1 hour

The _ **And…** _ card _Timer “Airwick” is not running_ prevents the flow from passing through at every movement. If a new movement is detected **AND** the “Airwick” timer no longer runs (i.e. after at least 60 minutes), the “Airwick” is switched on again.

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 25, 2022, 12:16pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/5 "2022-08-25T12:16:07Z")

</div>

Thanks that looks good - added Chronograph App

The second AND is redundant isn’t it if I put the start Chronograph timer last.

I have reduced from 59 to 29 mins

 ![Screenshot 2022-08-25 at 13.15.14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c58ddf18c89fa1a5c5f0ef41d267e15d7835e4a.png)

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 25, 2022, 3:30pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/6 "2022-08-25T15:30:49Z")

</div>

Actually come across another one I a trying to figures out.

WHEN - VARIABLE Changes to TRUE - THEN - Turn on TOOL CHARGER - WHEN - POWER of TOOL CHARGER falls below 20W - THEN - Turn Off TOOL CHARGER

Does this have to be managed in TWO different Advanced Flows?

I wonder if this will work?

 ![Screenshot 2022-08-25 at 16.36.53](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/69592319af17e5e8b8969bbaaced45bc483d285c.png)

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 25, 2022, 4:12pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/7 "2022-08-25T16:12:43Z")

</div>

It works!!

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [August 25, 2022, 4:45pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/8 "2022-08-25T16:45:09Z")

</div>

@Busta999 Do you also have another flow were you say that the energy is cheap?  
When the energy changes it will not always be cheap.  
Where you say \> €0,20 kWh is cheap.

---

<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:** [August 25, 2022, 5:35pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/9 "2022-08-25T17:35:00Z")

</div>

What are the 5 minutes delay for? They have no function in this flow.

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 28, 2022, 11:14am UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/10 "2022-08-28T11:14:26Z")

</div>

Correct!! I have removed it, it was a remnant of another idea 🙂

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [August 28, 2022, 11:18am UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/11 "2022-08-28T11:18:10Z")

</div>

Yes, I have another flow that sets Cheap rate to True and sets the value to 7.5p kWh, when Cheap rate not available it will switch to FALSE. And the rate moves to 35p kWh.

Somewhat moot as I will always be on cheap rate from end of next week, but the TRUE/FALSE indicator will still be useful as it moves a lot of devices energy usage to Grid cheap rate rather than battery cheap rate.

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [August 30, 2022, 11:07am UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/12 "2022-08-30T11:07:30Z")

</div>

I think the second step should be “timer is NOT running”. or replace the first one with “when timer has ended” AND movement alarm is on.

---

<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:** [August 30, 2022, 1:13pm UTC](https://community.homey.app/t/advice-with-advanced-flows-allow-only-to-happen-each-hour/67855/13 "2022-08-30T13:13:37Z")

</div>

The second step **IS** “Timer is NOT running”, because the connected line is orange.  
That means, “Timer is running” is not fulfilled what is equal with “Timer is NOT running”.

> [@Inunekko](#):
>
> or replace the first one with “when timer has ended” AND movement alarm is on.

And what should start the flow?  
The flow as it is does exactly what it is supposed to.
