# Flow that in a specific period, just for 1 hour switch on, while price of energy is lowest

**URL:** <https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [October 7, 2024, 8:45pm UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604 "2024-10-07T20:45:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 7, 2024, 8:45pm UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/1 "2024-10-07T20:45:40Z")

</div>

Hi all,

I have something in my mind, but I can not figure out properly yet in a flow.  
I do have a fish tank.  
During night time, I run a skimmer for a period of 1 hour  
Till now this was always a fixed start and end point

Due to the fact I do have now a dynamic energy contract, I do like to turn the skimmer on for 1 hour, between 01:00 en 07:00, while the energy price is the lowest in this period.

So starting or 1 o clock till 6 o clock, for just 1 hour while the price is lowest in between this hours.

Is this possible? Because I do have the idea with my personal idea, each hour there is a check for the next 5 hours, but not for the hours between 1 and 7.

 ![Schermafbeelding 2024-10-07 224504](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/f/ffd68bed415e38877871d56ac3d7a3e5413b152c.png)

Is someone able to help me a step forward?

Thanks in advance!

Steven

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [October 7, 2024, 8:59pm UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/2 "2024-10-07T20:59:22Z")

</div>

Try this (but I think you want to have it before 7 and not 6 now that I re-read your post)

 ![1000003332](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/953b9cc44018025db1f1b049972b19f4195d132b.jpeg)

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 7, 2024, 9:12pm UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/3 "2024-10-07T21:12:33Z")

</div>

![Schermafbeelding 2024-10-07 231215](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c1273a92d4754c7a41e67e24b637b83f160b46b.png)

Thanks for this cards! Does new price hour starts mean the situation at 00:00? Or do I understand this not correct?

EDIT and if that is correct, I do not need the cards the time is after… That is clear to me.

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 7, 2024, 10:13pm UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/4 "2024-10-07T22:13:46Z")

</div>

![Afbeelding van WhatsApp op 2024-10-08 om 00.10.54_a5814779](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/202d6ba29fb8ea6349f82f6118b935acab687222.jpeg)

Ga het hier eens mee proberen

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [October 8, 2024, 6:43am UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/5 "2024-10-08T06:43:07Z")

</div>

Did it work last night?

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 8, 2024, 8:52am UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/6 "2024-10-08T08:52:42Z")

</div>

![2024-10-08_10h50_47](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14b839a00d83c33b2c84d7a8fc3dde7b13d63bb1.jpeg)

Yes it did. I do wonder why outside the time schedule there is still a action to set the unit off.

Perhaps I am going to set a time schedule before the off action, so this will be only between 1 and 7 and not all day. This will reduce the number of ZigBee output signals.

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 8, 2024, 9:09am UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/7 "2024-10-08T09:09:24Z")

</div>

![2024-10-08_11h08_42](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4dce39336b9698d2dbcf77214c5e415eb52b0ca6.jpeg)

Small update to prevent some action from 7:00 to 1:00

Happy and satiffied!

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [October 8, 2024, 9:30am UTC](https://community.homey.app/t/flow-that-in-a-specific-period-just-for-1-hour-switch-on-while-price-of-energy-is-lowest/117604/8 "2024-10-08T09:30:38Z")

</div>

Now working on a flow that shut off the heating of the fishtank during the 5 highest hours, that is already working, with in addition that when there is enough power available from the sun, it will be turned on instead of off.

This to prevent highest rate and to prevent delevering back to the supplier
