# Wait until next hour

**URL:** <https://community.homey.app/t/wait-until-next-hour/143828>\
**Category:** Flows\
**Created:** [October 6, 2025, 1:14pm UTC](https://community.homey.app/t/wait-until-next-hour/143828 "2025-10-06T13:14:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundlof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sundlof/32/51033_2.png) [@Sundlof](https://community.homey.app/u/Sundlof)\
**Post date:** [October 6, 2025, 1:14pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/1 "2025-10-06T13:14:05Z")

</div>

I am creating a flow to keep track of power usage and turn things off when I use a lot electricity during one hour. In Sweden we have this thing where you pay for your top three hours over the month so there is a lot to save to keep the top hours under for example 6000W instead of 12000W. For this I use Tibber Pulse flow card “_Effect is over 4000W for 15 minutes_”. And cards for 6, 8 and 10kW.

The most ideal would be to have “_The power usage for this hour is above 4kWh_” but I have not found this yet. Please let me know if you have an ideas on this!

**My question is** , if I turn things off to save power, they can be restarted again next hour. I can not solve this. For example if I hit 6000W for 15 minutes I want to turn of some heaters, radiators, FTX-system or heat pump. But as soon as its the next hour these can be restarted. How can I do this?

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [October 6, 2025, 1:51pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/2 "2025-10-06T13:51:48Z")

</div>

Hi @Sundlof ,  
That is quite simple.  
Just create a yes/no variable for every device, if it should generally run.  
You just have then to maintain them properly.  
For example:  
_WHEN_

- ElectricConsumption \> **MaxConsumtion**  
_THEN_
- _Switch_ Heatpump **OFF**
- Set variable Heatpump\_in\_use to **yes**  
_WHEN_
- _Every **1** hour_  
_AND_
- Heatpump\_in\_use is **yes**  
_THEN_
- _Switch_ Heatpump **ON**
- Set variable Heatpump\_in\_use to **no**

With an advanced flow you can combine this for every device.  
If there are some devices you always want to switch on an off together, you can also use groups to spare space of flow.

---

<div class="post-metadata">

**Author:** ![Sundlof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sundlof/32/51033_2.png) [@Sundlof](https://community.homey.app/u/Sundlof)\
**Post date:** [October 6, 2025, 2:36pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/3 "2025-10-06T14:36:18Z")

</div>

Thanks DirkH,

This is a good idea, to check every hour if something is turned off that is supposed to be on. I will work with this, even if this creates a lot of variables.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [October 6, 2025, 3:51pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/4 "2025-10-06T15:51:21Z")

</div>

A lot ? I have a flow that uses 13 or 14 varaibles, just think well before naming them

I use a 2char-code for variables and flows to know what variables are used in which flows..

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [October 6, 2025, 4:10pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/5 "2025-10-06T16:10:12Z")

</div>

The absolute easiest would be to turn off, snd turn on with a delay of 60min at the same time. 😇

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [October 6, 2025, 5:00pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/6 "2025-10-06T17:00:11Z")

</div>

Interesting problem.

These top three hours: is that for example always 8-9, 9-10 or is 7:18-8:18 also possible?

I assume that the top three hours only occur when you start heating your house: all heaters will use maximum power for a longer period. After that they will turn on every x minutes for y minutes?

If it is indeed 8-9, start heating 7:30

---

<div class="post-metadata">

**Author:** ![Sundlof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sundlof/32/51033_2.png) [@Sundlof](https://community.homey.app/u/Sundlof)\
**Post date:** [October 6, 2025, 5:34pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/7 "2025-10-06T17:34:51Z")

</div>

> It is from 8-9, so yes it is good to have heaters run on two hours as they usually go for about 30-40 minutes.

---

<div class="post-metadata">

**Author:** ![Sundlof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sundlof/32/51033_2.png) [@Sundlof](https://community.homey.app/u/Sundlof)\
**Post date:** [October 6, 2025, 5:36pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/8 "2025-10-06T17:36:51Z")

</div>

That’s a good point, but when this flow kicks in, it is usually 30-40 min in the current hour, so next hour it might start in a bad time again.

---

<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:** [October 6, 2025, 11:08pm UTC](https://community.homey.app/t/wait-until-next-hour/143828/9 "2025-10-06T23:08:11Z")

</div>

You might want to check the [Piggy Bank app](https://community.homey.app/t/66677), designed with the Norwegian peak tariff system in mind, to automate turning devices off and on
