# \[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year

**URL:** <https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [November 10, 2019, 10:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535 "2019-11-10T22:06:03Z")\
**Posts on this page:** 20\
**Page:** 54

<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:** [December 21, 2022, 9:13pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1089 "2022-12-21T21:13:40Z")

</div>

@Baboon many thx for your donation 🥳!

---

<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:** [December 22, 2022, 1:45pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1090 "2022-12-22T13:45:17Z")

</div>

v5.0.1 is ready for testing: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test)

- added support for Qubino 3-phase meter.
- round ‘price now’ tag to decimals settings. (thx for reporting @Daniel_S !)
- rewrite summarizer driver to support more devices/apps.
- make tariff group 1 default for new summarizer devices.
- fix summarizer bugs for some source devices/apps.
- fixed english title and-card. (thx for reporting @Daniel_S !)
- fixed detect new tariffs received @midnight.

This update is on top of the changes already made in the v5.0.0 test version. So this brings the list of most important changes in v5.x.x to the following:

New:

- added seperate DAP device for gas spot prices
- added all gas spot prices from [Spot market data | Powernext](https://www.powernext.com/spot-market-data)
- Added multiple selections during summarizer pair
- added support for Qubino 3-phase meter. (@Fredrik_Backman @DirkG !)

fixes:

- fix DAP 25 hour day ghostprices
- fix DAP Daylight Savings Time handling
- fix DAP new exchange rate not applied immediately
- fix DAP ‘price now’ flow tag decimals
- fix DAP English title and-card
- fix summarizer bugs for some source devices/apps
- fix app crash on setSettings

optimizations:

- rewrite UTC time handling of DAP pricing sources
- rewrite summarizer driver to support more devices/apps
- added DAP source pricing sanity check
- DAP code refactoring for easier software maintainance
- improved DAP price fetching retry and backup service handling
- make tariff group 1 default for new summarizer devices

deprecated:

- removed FrankEnergy as DAP datasource
- removed old gas DAP support _ **USER ACTION REQUIRED** _

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 22, 2022, 4:07pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1091 "2022-12-22T16:07:08Z")

</div>

Have installed the App and am running into an issue. The gas consumption is correctly shown in the PBTH device, but the ‘previous day’ has remained 0 for two days.

 ![Schermafbeelding 2022-12-22 om 17.04.55](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09d5ca96a4ec204f29afd754eb78771070bc0f86.png)

The PBTH Electricity device does work correctly. How can I get the statistics to work form gas too?

Thanks!

---

<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:** [December 22, 2022, 4:19pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1092 "2022-12-22T16:19:35Z")

</div>

Can you try the test version (5.0.1 at the moment?): [Power by the Hour App for Homey | Homey](https://homey.app/en-us/app/com.gruijter.powerhour/Power-by-the-Hour/test/)

I have introduced major changes to the code in v5, and if there is a bug in gas usage display I need to know if it is present in v5 as well.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 22, 2022, 4:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1093 "2022-12-22T16:24:20Z")

</div>

Installed the 5.0.1 via your link. Devices went offline and became online so I guess that worked. Unfortunately the ‘day before’ (and older) figures remain empty.

 ![Schermafbeelding 2022-12-22 om 17.23.44](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/5/95a198cf2f8cbefdf470947e535fbced3edf8dcf.png)

I’ll do a PTP to make sure!

---

<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:** [December 22, 2022, 4:28pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1094 "2022-12-22T16:28:22Z")

</div>

Day before will be filled at midnight. So we have to wait for tomorrow to know…

---

<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:** [December 22, 2022, 4:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1095 "2022-12-22T16:43:45Z")

</div>

And just checking: your gasmeter is not resetting to 0 m3 every night I assume?

Edit: Actually, judging from the negative usage for this month and this year it does look that you don’t have a ‘normal’ gas meter that provides the absolute m3 number over its lifespan. I do believe now that your meter itself is resetting its m3 value to 0. Can you confirm?

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 22, 2022, 5:39pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1096 "2022-12-22T17:39:53Z")

</div>

I have a gateway from smart gateways.nl and that comes with a Homey App. This registers both gas and electricity in 1 P1 device.

 ![Screenshot_2022-12-22-18-37-55-605_com.android.chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5cd6e9e7d0fe50d59274d436f56d74befa41ac3a.jpeg)  
 ![Screenshot_2022-12-22-18-37-40-196_com.android.chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2aafeb39b7bf01abee35ecb169b426c180e58fa0.jpeg)

That electricity does show older data and gas not, is odd…

PS  
And, today I also added the water gateway to PBTH. I will check tomorrow if it shows older stats! I’ll let you know tomorrow

---

<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:** [December 22, 2022, 5:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1097 "2022-12-22T17:43:44Z")

</div>

Ok, but I have created a setting for meters that reset every night to 0. Go to the PBTH gas device settings and switch on ‘has daily reset’. That will create a virtual cumulative meter in PBTH itself.

And that it works out of the box for electricity is because PBTH automatically detects that your source device provides only Watt, and no kWh.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 22, 2022, 6:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1098 "2022-12-22T18:14:45Z")

</div>

Adjusted the setting by flipping the slider. Fingers crossed it will show data tomorrow.

Thanks!

Update: WORKS NOW!

---

<div class="post-metadata">

**Author:** ![Fredrik\_Backman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_backman/32/48921_2.png) [@Fredrik\_Backman](https://community.homey.app/u/Fredrik_Backman)\
**Post date:** [December 23, 2022, 4:59pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1099 "2022-12-23T16:59:55Z")

</div>

Thx for the heads-up. I have it working as a virtual device but native support is always better, thanks! Happy holidays! 🥳

---

<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:** [December 23, 2022, 6:31pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1100 "2022-12-23T18:31:43Z")

</div>

Many thx for your donation @Paul_Grevink ! 🥰🍺

---

<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:** [December 24, 2022, 9:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1101 "2022-12-24T21:06:36Z")

</div>

v5.0.2 is ready for testing: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test)

- Added settable yearly budget for Gas, Electricity and Water.
- Added linear usage distribution over the year.
- Added NL\_2023 usage distribution (prijsplafond) for Gas and Electricity.
- Added % on/above/under the budget for Month-to-date and Year-to-date.
- Update to homey-api@1.10.5.

This version again brings a significant new feature: Real-time comparison with a yearly reference gas/electricity/water usage, based on a settable budget. Since in winter you usually use more then in summer, a distribution is applied. Next to a linear (flat) distribution, I implemented the distribution that is used by the Netherlands Government for the 2023 price ceiling (‘prijsplafond’).

**This means that all people in the Netherlands can now automatically guard if they stay within the PRIJSPLAFOND limits set for 2023**

 ![Screenshot_20221224_215958_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/485768be580be7bc0c2204f0e61fe6e8fcb342f8.jpeg)

I will definitely use it myself to automatically disable my car charging if I don’t have any headroom left, and resume charging when I should again gain some headroom.

[https://homey.app/en-us/flow/WwLO5l/](https://homey.app/en-us/flow/WwLO5l/)

But usage is certainly not restricted to Dutch residents. You can set the budget yourself to any value you want. To enable the function for the summarizer of your main meter, go to advanced settings and select a distribution scheme (linear or NL\_2023).

This update is on top of the changes already made in the v5.0.x test versions. So this brings the list of most important changes in v5.x.x to the following:

New:

- added seperate DAP device for gas spot prices
- added all gas spot prices from [Spot market data | Powernext](https://www.powernext.com/spot-market-data)
- Added settable yearly summarizer budget for Gas, Electricity and Water
- Added linear usage distribution over the year
- Added NL\_2023 usage distribution (prijsplafond) for Gas and Electricity: [https://docs.google.com/spreadsheets/d/1qWoj7yVLmOYezLQ20D-SSIgjmvNpR5ClduQE\_T3\_XU8/edit#gid=0](https://docs.google.com/spreadsheets/d/1qWoj7yVLmOYezLQ20D-SSIgjmvNpR5ClduQE_T3_XU8/edit#gid=0)
- Added % on/above/under the budget for Month-to-date and Year-to-date.
- Added multiple selections during summarizer pair
- added support for Qubino 3-phase meter.

fixes:

- fix DAP 25 hour day ghostprices
- fix DAP Daylight Savings Time handling
- fix DAP new exchange rate not applied immediately
- fix DAP ‘price now’ flow tag decimals
- fix DAP English title and-card
- fix summarizer bugs for some source devices/apps
- fix app crash on setSettings

optimizations:

- rewrite UTC time handling of DAP pricing sources
- rewrite summarizer driver to support more devices/apps
- added DAP source pricing sanity check
- DAP code refactoring for easier software maintainance
- improved DAP price fetching retry and backup service handling
- make tariff group 1 default for new summarizer devices
- update to homey-api@1.10.5.

deprecated:

- removed FrankEnergy as DAP datasource
- removed old gas DAP support _ **USER ACTION REQUIRED** _

---

<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:** [December 25, 2022, 2:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1102 "2022-12-25T14:43:38Z")

</div>

Hi Robin, thanks voor the hard work and great app.  
Can this be a bug (v4.9.1)?  
The month and year money values are equal, for both energy and gas?  
The kWh and m³ values are correct.

 ![Screenshot_20221225-153946_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5dae666cb33ead361d91814b77d96bf11c89fd20.jpeg)

---

<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:** [December 25, 2022, 2:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1103 "2022-12-25T14:53:36Z")

</div>

The this\_year value will be equal to the this\_month value when there has not been any information collected prior to this\_month. That is for instance the case right after adding the PBTH device. You need to wait for the next month to see a difference. Or alternatively you can go to advanced device settings and manually fill the this\_year value.

It could also have be caused by a migration bug that was introduced in 4.9.0. Was fixed after that so should not appear anymore.

---

<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:** [December 25, 2022, 9:05pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1104 "2022-12-25T21:05:41Z")

</div>

Thx for quick reply, Robin. I started last september.  
Looking at the reset day, it looks like it’s due to the bug. Case closed!

 ![Screenshot_20221225-213458_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/b/ebba09c1362c227096cb97a1e4d2ed4bfd82beac.jpeg)

---

<div class="post-metadata">

**Author:** ![Remy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remy/32/2357_2.png) [@Remy](https://community.homey.app/u/Remy)\
**Post date:** [December 25, 2022, 11:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1105 "2022-12-25T23:43:28Z")

</div>

@Gruijter i’m new with your app… is it possible that you share your dishwasher flow/screenshot? 🙂

---

<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:** [December 26, 2022, 2:12pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1106 "2022-12-26T14:12:01Z")

</div>

Here is the screenshot. Its a pretty big one, so hope it is readable enough for you…

 ![Afbeelding1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/97cb1e610ce532bf67c14ee3b63ed963cfbcc038.png)

---

<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:** [December 26, 2022, 2:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1107 "2022-12-26T14:16:15Z")

</div>

New version 5.0.3 is ready for testing: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

DAP and summarizer:

- set device unavailable during capability migration
- disable new device settings during migration

Summarizer:

- rearranged device order during pair
- removed Homey itself from pairing list
- disabled multiple selections during pair
- apply budget distribution setting for main meter devices during summarizer pair
- fixed hourly polling for Qubino 3-phase meter
- added hourly poll delay
- use previous tariff on first sample in a new hour

With this update version 5 is getting ready to be published as stable. When I don’t receive any feedback on serious issues, it will be published as stable before 31 December.

@Torch1969 : The hourly poll delay can be used to get rid of the 5 minute dip every hour for slow updating meters like gas. Be aware though that if you have an old gas meter that only updates once an hour you will see all usage reported as ‘last\_hour’ and none in this\_hour!

@DirkG hourly polling should be fixed now for Qubino

---

<div class="post-metadata">

**Author:** ![Walter\_vande\_kerkhof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/walter_vande_kerkhof/32/28963_2.png) [@Walter\_vande\_kerkhof](https://community.homey.app/u/Walter_vande_kerkhof)\
**Post date:** [December 26, 2022, 2:50pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1108 "2022-12-26T14:50:58Z")

</div>

Hello @Gruijter what is the meaning of 97,5% on month budget? My month usage is 166,9 and I can’t figure out what the percentage means.

Same question for water usage. I have linear selected and year budget 155.  
On month budget is 1% and on year budget is 0.7%. Actual month usage is 11,5. Actual year usage is 109,  
Regards

[Previous page](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535.md?page=53)

[Next page](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535.md?page=55)
