# Flow Timer -\> uitschakel sequentie bij piekverbruik

**URL:** <https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774>\
**Category:** Flows\
**Created:** [January 30, 2023, 8:36am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774 "2023-01-30T08:36:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [January 30, 2023, 8:36am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/1 "2023-01-30T08:36:17Z")

</div>

Hallo,

Omdat wij sinds kort meer moeten betalen bij piek verbruiken (Kwartier verbruik) heb ik een flow opgezet om dit toch grotendeels op te vangen. Op dit moment heb ik een beperkt aantal toestellen die uitschakelen. Toestellen die niet echt belemmerend zijn voor dagelijks huishoudelijke taken. Echter ondervind ik dat als wij smorgens de wasmachine aan zetten deze na enkele minuten toch uit geschakeld word. Volgens de geschiedenis zie ik dat dit gebeurd door deze flow, echter heb ik van de flow zelf geen meldingen gehad (zoals toch ingesteld) en blijven de andere toestellen wel aan staan ? iemand een idee of dit een Bug is of dat ik eventueel iets foutief heb ingesteld? (het gaat specifiek over de device: Wall plug versterker-Basement)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e856d986e51aed7942dc2b2c087ce4984685c6bc.png)

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [January 30, 2023, 8:38am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/2 "2023-01-30T08:38:33Z")

</div>

Flow geschiedenis; wall plug word uitgeschakeld en de “betta pomp” niet. Er was ook geen piek die lang genoeg duurde of zelf boven de 2500W was.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12f3051f1130c6b06fc375041118b292413cc076.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/546fa12e32800c19872ddee8c142f2ad10ce91c8.jpeg)

---

<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:** [January 30, 2023, 8:24pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/3 "2023-01-30T20:24:10Z")

</div>

Check ook de[Piggy Bank app](https://homey.app/en-gb/app/no.sparegris/Piggy-Bank/) eens

> [@\[APP\]\[Pro\] Piggy Bank](https://community.homey.app/t/app-pro-piggy-bank/66677):
>
> This topic is about the Piggy Bank app. The main purpose of this app is to make sure the power usage for every hour is within the targeted power tariff in Norway (now also Belgium - if someone can confirm I did it right). New features are being added continuously. It is being developed at [GitHub - frodeheg/no.sparegris: Saves money by adjusting when to use electricity](https://github.com/frodeheg/no.sparegris)Common questions 1. When will my device be supported If your device is not supported, Please send me a device report and I w…

Verder vind ik de Push notifications niet 100% betrouwbaar, ik gebruik voor alle flows [Papertrails](https://homey.app/en-gb/app/nu.dijker.papertrails/PaperTrails-Log/) logkaartjes. [SimpleLog](https://homey.app/en-gb/app/nl.nielsdeklerk.log/Simple-LOG/) kan ook. Ik zet daarin de flownaam en het flow gedeelte van een advanced flow.  
Bij iedere actie, ook timer start acties, zou ik logkaartjes toevoegen, zo kun je eenvoudiger terugvinden wat een flow nu wel of niet gedaan zou moeten hebben.

_“Vroegâh” kon je in 1x een Papertrails logkaartje aan alle flows hangen, maar dat werkt al een poos niet meer. De app wordt wel ‘aangepakt’ voorzover mij bekend, en ik hoop dat die handige functie weer terugkomt._

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 30, 2023, 9:41pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/4 "2023-01-30T21:41:54Z")

</div>

> [@Peter\_Kawa](#):
>
> Check ook de[Piggy Bank app](https://homey.app/en-gb/app/no.sparegris/Piggy-Bank/) eens

Sorry about the English answer in this Dutch channel, but I was a bit surprised to see my app linked to from here and learn that you had to pay for peak power in the Nederlands too.

If there is anything that I can do to make the app more suitable for your country then please let me know. I haven’t really started targeting the app outside Norway yet but if it’s useful for your country I will do my best to adapt. Just let me know and I’ll see what I can do. New features are being added continuously…

---

<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:** [January 30, 2023, 9:46pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/5 "2023-01-30T21:46:07Z")

</div>

Hej Frode,  
Thanks for thinking along.  
It’s not applicable in the Netherlands, but **it is** in Belgium.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 30, 2023, 9:50pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/6 "2023-01-30T21:50:34Z")

</div>

Ah, ok, thanks. If you have a link to somewhere that explains how the pricing system is put together then I can probably add direct support for it and resolve any limitations my app probably currently have.

---

<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:** [January 30, 2023, 9:59pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/7 "2023-01-30T21:59:27Z")

</div>

I think @Yov has that information for you.

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [January 31, 2023, 6:16am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/8 "2023-01-31T06:16:45Z")

</div>

Hello @frodeheg thank you for your reply and help! 🙂  
I wil search for more information about the peak power pricing but it is very new (as of 01/01/2023) and they are very vague with information, i know that everybody without digital energy monitor pays the min amount/monthly (2500kw peak) For people like me that hace digital energy monitors They measure the peak over 15min/average. (So that’s why I currently work with the count down Timers) it increments ea 500 or 1000kw.

---

<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:** [January 31, 2023, 7:17pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/9 "2023-01-31T19:17:01Z")

</div>

Found a link here

> **[Capaciteitstarief voor elektriciteit in Vlaanderen vanaf 2023](https://www.engie.be/nl/blog/allerlei/capaciteitstarief-Vlaanderen/)**
>
> Hoe zal het capaciteitstarief in Vlaanderen de kosten die je betaalt voor het gebruik van het elektriciteitsnet beïnvloeden?

I can’t get my head around it. 🥴

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [January 31, 2023, 7:19pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/10 "2023-01-31T19:19:50Z")

</div>

Yes, lots of explanation, but pricing? nowhere to be found 😅

---

<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:** [January 31, 2023, 7:30pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/11 "2023-01-31T19:30:36Z")

</div>

About the peak use, I’m not sure what they mean.  
You get extra charged when you use over 2500 Watts during 15 minutes (which is 625Wh)?  
or  
You get extra charged for the moments when you use over 2500 Watts, but not for more than 4 per hour?

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [January 31, 2023, 8:58pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/12 "2023-01-31T20:58:07Z")

</div>

I wil copy paste (google) translated information from this site ([engie](https://www.engie.be/nl/capaciteitstarief#hoe-worden-de-netwerkkosten-voor-een-digitale-meter-in-2023-berekend)) here;

> Your digital meter registers your consumption in kWh every 15 minutes. That’s 96 registrations in a 24-hour day. You don’t always load the net as hard during that quarter of an hour. Sometimes you tax it more, sometimes less. Lower peaks smooth out higher peaks. The average per quarter counts. That is the quarter-hour power expressed in kW (= your average quarter-hour registration in kWh multiplied by 4). This is your monthly peak for that month.
> 
> Good to know: A quarter-hour registration starts and ends at the same time as a real quarter hour in an hour.
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9d3d543ba262418b38c958dc65f8395f664e7ec2.png)  
> From all quarter-hour registrations in a month, your digital meter automatically selects the quarter in which your consumption (in kWh) and therefore also your power (in kW) was highest. This is your monthly peak for that month. Suppose your average consumption, measured between 2:45 PM and 3 PM, was the highest in a month, then this is your monthly peak for that month. This example concerns a monthly peak of 6.105 kW. Do you have a digital meter and do you want to know how high your monthly peaks are, download the Smart app. Available from mid December.
> 
> Your monthly peak will differ from month to month. If your monthly peak in a certain month is lower than 2.5 kW (as in the example below in the month of May), it will be increased to the statutory minimum monthly peak of 2.5 kW. VREG thus ensures that all customers contribute equally.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [February 1, 2023, 1:55am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/13 "2023-02-01T01:55:05Z")

</div>

Thank you. I found the pricing on that page too. I created a ticket for this here:

> <https://github.com/frodeheg/no.sparegris/issues/181>
>
> Origin of the request: https://community.homey.app/t/flow-timer-uitschakel-seque…ntie-bij-piekverbruik/75774/12?u=frodeheg
> 
> Seems like the following support needs to be added:
> \* A limiter to prevent you from going above a limit every 15 minutes.
> \* The SINGLE quarter in a month with the highest power will decide the monthly peak.
> \* The power tariff is calculated based on the average of the monthly peaks for the previous 12 months, multiplied with 4, starting from January 2023.
> \* The power tariff never goes below 2.5kW
> \* The cost per kW is the same for every extra kW
> \* Pricing can be found here: https://www.vreg.be/sites/default/files/Distributienettarieven\_2023/elek\_res\_vanaf\_01.01.2023.pdf
> \* That is~ about 37 EUR/kW/year for each kW in the power tariff

I will try to add something during the weekend. Adding the peak power limitation shouldn’t be too much of a problem and the calculation seemed to be pretty straight forward so I’ll see what I can do. 🙂

The only thing that is a little bit worrying is that since it’s per quarter and not per hour it’s more susceptible to loss of data from the meter reader, which seems to be the case now and then at least from my experience. All the meter readers for Norway only give the W and not the kWh used since last hour. If you have access to the kWh used since last hour directly from the meter reader that will undoubtedly increase the accuracy of the controlling logic, so I hope you have access to that from your meter reader, do you?

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [February 1, 2023, 6:15am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/14 "2023-02-01T06:15:18Z")

</div>

I have a homewizard p1 connected, and also huawei solar invertor (both have homey apps) so i think i have this information

---

<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:** [February 1, 2023, 5:09pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/15 "2023-02-01T17:09:51Z")

</div>

The Homewizard updates every second (for Dutch meters): the actual power usage in W, and the totals meters in kWh, and the actual Amps.

 ![Screenshot_20230201-180600_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40112b2aab8c0200eb7e1d0574c1a9bd3a54871b.jpeg)

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [February 1, 2023, 5:35pm UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/16 "2023-02-01T17:35:12Z")

</div>

What is the update rate for the total usage kWh?

Usually, the W is updated every 10 seconds, but I have yet to see a meter reader that updates the total usage more often than once every hour.

Anyways, the W is already supported, so the thinking was more an idea to improve the accuracy in a future version.

The scary thing about the 15 minute tariff is that if you update the homey firmware then you will quickly get a full quarter without any control logic. I suppose the safest I can do is to just power off all devices whenever the app shuts down unexpectedly…

---

<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:** [February 2, 2023, 1:41am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/17 "2023-02-02T01:41:03Z")

</div>

> [@frodeheg](#):
>
> What is the update rate for the total usage kWh?  
> Usually, the W is updated every 10 seconds, but I have yet to see a meter reader that updates the total usage more often than once every hour.

I did a little test, the total usage updates at least every 10s / every 10Wh  
 ![Screenshot from 2023-02-02 02-23-03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/641b4c1059b529f31d239b1b1863beca480ca364.png)

> [@frodeheg](#):
>
> Usually, the W is updated every 10 seconds,

Yes, I checked and can confirm that. Homewizard P1 dongle receives that value every second, but Homey (=Homewizard app) updates every 10 seconds.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [February 2, 2023, 1:52am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/18 "2023-02-02T01:52:06Z")

</div>

Thanks for the testing.  
Not the best accuracy, but at least it gives room for improving the reliability 🙂

---

<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:** [February 2, 2023, 2:02am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/19 "2023-02-02T02:02:08Z")

</div>

YW!

> [@frodeheg](#):
>
> The scary thing about the 15 minute tariff is that if you update the homey firmware then you will quickly get a full quarter without any control logic. I suppose the safest I can do is to just power off all devices whenever the app shuts down unexpectedly…

Well, that’s the tricky part indeed.  
Maybe, when users select Belgium as ‘tariff system’, you can show a warning of some kind, to disable auto updates for Homey firmware.  
Power off devices without the user agreeing with it is a bit tricky. Maybe the user can select which devices should never be powered off in case of a crash.

Does the app receive any notification when Homey is about to start a firmware update?  
Is there such a trigger available? So you can take some needed actions ?

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [February 2, 2023, 3:09am UTC](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774/20 "2023-02-02T03:09:30Z")

</div>

> [@Peter\_Kawa](#):
>
> Maybe, when users select Belgium as ‘tariff system’, you can show a warning of some kind, to disable auto updates for Homey firmware.

Good idea. It’s probably a good idea to disable auto updates of the app itself too so updates can be done under controlled circumstances, although that probably takes less than a minute normally.

> [@Peter\_Kawa](#):
>
> Maybe the user can select which devices should never be powered off in case of a crash.

The app already lets you select which devices should be controlled, so I think this is already covered.

> [@Peter\_Kawa](#):
>
> Does the app receive any notification when Homey is about to start a firmware update?  
> Is there such a trigger available? So you can take some needed actions ?

I use this event: `this.homey.on('unload', () => doAppShutdownStuff() );`  
Unfortunately the app only get 1 second to finish before it’s hard killed, so it may not be able to send any power off signals at all and especially not if the other apps controlling the devices was shutdown first…

[Next page](https://community.homey.app/t/flow-timer-uitschakel-sequentie-bij-piekverbruik/75774.md?page=2)
