# Help needed: Create a flow that will create a push notification when the energy price is lowest (dynamic contract)

**URL:** <https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231>\
**Category:** Questions & Help\
**Created:** [October 11, 2022, 7:39pm UTC](https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231 "2022-10-11T19:39:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Jiskoot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_jiskoot/32/11508_2.png) [@Mark\_Jiskoot](https://community.homey.app/u/Mark_Jiskoot)\
**Post date:** [October 11, 2022, 7:39pm UTC](https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231/1 "2022-10-11T19:39:02Z")

</div>

Hi ,

I would like to get some help. The idea is to make a flow where at midnight for the next day the time/moment is calculated with the lowest energy (electicity) price.  
I like to have a number from 0-23 stating the hour when the price is the lowest.  
This number then can be used ( as time) to send as a push notification to everyone in the household so they can start the washmachine, dishwasher and charges at the best price.

Eg if the number is 3 then the message is “” at 3 it is the best time to start charging"

More sophisticated would be to have at midnight calculated a small array stating the best 5 hours with the best pricing.  
going from cheapest to more expensive. This could look like a string 1,3,13,15,11,14.  
Message would then be something like " today the best moment to charge are 1,3,13,15,11,14."

Who has any idea to make this in a flow. I tried to create something making use of PBTH but without succes.

Br Mark

---

<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 11, 2022, 9:04pm UTC](https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231/2 "2022-10-11T21:04:20Z")

</div>

Here´s an importable template / example flow for this usecase:

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/81):
>
> Ask @ home users one by one to start the washing machine at cheap energy rates A washing/drying machine is something you can’t exactly automate, while the laundry has to be loaded or moved for instance. Also it’s energy-hungry machines, which should run preferably at low energy rates. This flow reacts to low energy prices; it sends a push confirmation to a user → and when there’s no response, or it was declined → send a push confirmation to the next user to start the washing machine →…

Flow impression:

 ![Screenshot 2023-09-21 at 17-18-30 1.HomeyPro Peter](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/ae393b49f1e469de9e5b4c8983297de54f60db34.png)

You can just install [https://homey.app/a/nl.qluster-it.DeviceCapabilities/](https://homey.app/a/nl.qluster-it.DeviceCapabilities/)

Go to app settings, ‘Templates’ and look for “_Ask @home users one by one to (confirm) to start the washing machine at cheap energy rates_”  
Select it and follow instructions:

 ![Screenshot from 2022-10-11 23-03-20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2a2491232cc9ffa2a9e00270bd77c66cd447d3ef.png)

---

<div class="post-metadata">

**Author:** ![Mark\_Jiskoot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_jiskoot/32/11508_2.png) [@Mark\_Jiskoot](https://community.homey.app/u/Mark_Jiskoot)\
**Post date:** [October 11, 2022, 9:56pm UTC](https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231/3 "2022-10-11T21:56:02Z")

</div>

Thanks for the flow. My challange is before this flow. I need to get a time when the lowest price is valid. Due to a dynamic contract this can be any time during the day. I do not want to trigger on a fixed price, only the lowest during teh day🙂

br Mark

---

<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 11, 2022, 11:25pm UTC](https://community.homey.app/t/help-needed-create-a-flow-that-will-create-a-push-notification-when-the-energy-price-is-lowest-dynamic-contract/70231/4 "2022-10-11T23:25:14Z")

</div>

Then you should take another look 🙃 . It’s based on “when the price is lower than xxx”. Besides, the flow trigger is just an idea/example.  
The power by the hour app is very neat imho. Here’s some flow triggercard choices.

> ![Screenshot from 2022-10-12 01-22-17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/a/5a9636b8edd02bc9a3891528a06377f0d80b3c90.png)

The developer Robin is very active and is busy with even more price driven functions. You can request your needs / ideas and, you’ll never know what happens, Mark.

> [@\[APP\]\[Pro\] Power by the Hour \[Feature Requests\]](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740):
>
> In this time of energy/price crisis, saving energy and money can be a big deal. This thread can be used to discuss new features for Power by the Hour. For non-feature request support, when you have problems with the app or need assistance on how to best use it, please use the support forum link: [[APP][Pro] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/20535) Features on the todo list so far: add fixed monthly costs: [[APP][Pro] Power by the Hour [Feature Requests] - #2 by Gruijter](https://community.homey.app/t/69740/2) Done…
