# Can manual press of a button delay automation?

**URL:** <https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817>\
**Category:** Questions & Help\
**Tags:** app, flow, homey-pro\
**Created:** [November 26, 2023, 8:49am UTC](https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817 "2023-11-26T08:49:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaliN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/calin/32/79073_2.png) [@CaliN](https://community.homey.app/u/CaliN)\
**Post date:** [November 26, 2023, 8:49am UTC](https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817/1 "2023-11-26T08:49:02Z")

</div>

Hey everyone,

I would like to buy a homey-pro for my new house to automate everything more easily than with my home assistant.

There is only one thing that is holding me back and I couldn’t find it neither in the homey videos, nor on the community forums.

Let me give you an example of what i am doing and what i am looking for:

So I have a smart socket from nous in which I’m plugging my iron (clothing).  
Then, I start the smart plug so I press the switch button in my home assistant, through which i give power to that iron and it starts heating.

Now, let’s say I forget to unplug the iron today, so I have an automation that checks every 5 minutes 24/7 if the iron is consuming any electricity and if it does, this will stop it.  
This would be wrong to be left like that because it will stop my iron while i am actually ironing.

Here comes my second consition that i couldn’t find here so far.

So when i press the switch button in order to start, it logs that time. Now, besides checking the wattage consumption, it also checks if that switch was pressed in the last 20 minutes. And only if both these consitions are satisfied it will stop the power to the iron

And my question is: is there a way to use the logs of buttons pressing and based on that, to delay the every 5 minute repetitive automation until 20 minutes from that button actions have passed?

Sorry for the long post but i wanted to be as accurate and easy to understand as i could.

Thank you!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 26, 2023, 9:06am UTC](https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817/2 "2023-11-26T09:06:02Z")

</div>

You can use the Chronograph app to set such timers.

> [@\[APP\]\[Pro\] Chronograph - Adds precise timer, stopwatch and transition functionality to Homey](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214):
>
> Chronograph Adds precise timer- and stopwatch functionality to Homey. Features Create timers and stopwatches directly from flow cards, no need for a prior configuration, Start timers with a duration in milliseconds (fractional seconds), seconds, minutes, hours or days, Start stopwatches without a predefined end time, Trigger flows at exact timer- or stopwatch durations with millisecond (fractional seconds) precision, Self-explanatory flow cards for easy integration of timers and stopwatches…

---

<div class="post-metadata">

**Author:** ![Henrik\_Johnsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_johnsson/32/13707_2.png) [@Henrik\_Johnsson](https://community.homey.app/u/Henrik_Johnsson)\
**Post date:** [November 26, 2023, 9:08am UTC](https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817/3 "2023-11-26T09:08:50Z")

</div>

Not sure I follow your reasoning, but I think the Chronograph app would solve this in a way that’s easy to understand and maintain.  
One flow where a button press would set a timeout timer to 20 minutes and turn on the socket, one flow when the timer times out that switches off the socket.

---

<div class="post-metadata">

**Author:** ![CaliN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/calin/32/79073_2.png) [@CaliN](https://community.homey.app/u/CaliN)\
**Post date:** [November 26, 2023, 9:54am UTC](https://community.homey.app/t/can-manual-press-of-a-button-delay-automation/95817/4 "2023-11-26T09:54:26Z")

</div>

Wow!

Thanks a lot for your answers! Much faster than I expected

Have a great rest of weekend!
