# \[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:** 67

<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:** [January 30, 2023, 12:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1351 "2023-01-30T12:24:35Z")

</div>

> [@Heula](#):
>
> When removing the device and adding it again it’s migrating but nothing happens or willl be filled in.

I just tried to do this myself. And I cannot reproduce what you describe. All is working as it should. Also your app diagnostics report shows no errors.

When you add a new virtual device you need to wait a minute or two until the device finished migrating. After that you need to setup a flow to fill the kWh value every so often. You will only see anything happening when the kWh is changing off course. I used my main P1 meter as source for the flow. That updates often, and I could see the PBTH virtual device updating immediately.

Are you sure you have setup your flow correctly? And are you sure the source kWh is changing often?

> [@Heula](#):
>
> When I want to change settings (Euro sign or actief tarief) in my virtual PBTH device(s) I get an error that the device is not ready

This I also tried to replicate, and also there all works as it should. When you change the currency sign or decimals in settings, the PBTH device needs to migrate. That is why it shows it is unavailable due to migration, and asks you to wait 😉. So if you just wait 1 or 2 minutes, the PBTH device will be ready and will use the new currency sign and/or decimals.

Are you sure you are patient enough after changing currency?

---

<div class="post-metadata">

**Author:** ![mroek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mroek/32/38044_2.png) [@mroek](https://community.homey.app/u/mroek)\
**Post date:** [January 30, 2023, 1:59pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1352 "2023-01-30T13:59:17Z")

</div>

In my case, the issue seems to have resolved itself during the day. My stats for today is still somewhat messed up, since PBTH have missed many readings, but by correcting the meter for the “start of this day”, at least it now shows the correct consumption for today.

---

<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:** [January 30, 2023, 3:49pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1353 "2023-01-30T15:49:15Z")

</div>

v5.3.4 was just released as stable:

- Summarizer: Fixed unit migration for Gas.
- update homey-api@1.10.12.

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 30, 2023, 5:11pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1354 "2023-01-30T17:11:12Z")

</div>

I have several PBTH virtual devices and the ones added longer than let’s say two weeks are working fine.  
No flows really fill them with info except for the current rate when that changes. (Day, night and plafondprijs). For that I have a flow running and is working fine with the existing and new added devices. So if that is working with a flow why not manually added changes?

I added a few days ago a new PBTH virtual device for gas and I only use that to show me the current rate.  
Not sure what changed but for me the new added device give errors when changing things manually and the existing ones do not have issues.

Example existing virtual device:

![Capture_932](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b83d3741cce4d4cff62d5a8f45d7d34bfb92aaff.jpeg)

 ![Capture_931](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/667879c48085d8a35a8fec29f2c9d1a159d9360a.jpeg)

Example new added virtual device several days ago:

![Capture_933](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0503236804bcb899e25ca02f6674d9d1cc918cc.jpeg)

 ![Capture_934](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e2d04684861b91ab171b4e17ff79c247289547ce.jpeg)  
 ![Capture_935](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/78a9f005b9ee5e0418d431ecd2d7716b56464c0f.jpeg)

I have waited days but the device keeps saying it is not ready. Not after adding it and finish migrating and not after restarting the app or even Homey.

---

<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:** [January 30, 2023, 6:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1355 "2023-01-30T18:53:48Z")

</div>

> [@Heula](#):
>
> Example new added virtual device several days ago:

I tried adding a new virtual device today. And as already stated all works fine on my Homey. So I cannot replicate your issue and have no clue how to help you unfortunately.

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 31, 2023, 6:08am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1356 "2023-01-31T06:08:32Z")

</div>

Unfortunately, it’s a pity.

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:** [January 31, 2023, 9:19am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1357 "2023-01-31T09:19:34Z")

</div>

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

- DAP: Add multiple markups on a configurable Time Of Day.

This adds the possibility to enter multiple fixed price markups to your Day Ahead Pricing device (DAP) based on Time of Day and on weekends.  
Fill in `hour1:markup1;hour2;markup2 etc.` E.g. if starting at 6am the markup is 0.3, and starting at 10pm the markup is 0.1 fill in the following: `6:0.3;22:0.1`

@spndk: please test the new feature I added for you and your fellow Danish users!  
@Kai_Engvik : this also fixes the issue you reported with nighttime markup

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 31, 2023, 11:07am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1358 "2023-01-31T11:07:27Z")

</div>

Perhaps you can help me figure out why the value(s) of my Homewizard Energy Socket are wrong after a PBTH update and or restart of the app.

At midnight the settings are set to 0 for “KWH Deze dag” and as long as the app is not restarted or updated the values are correct. But when the app is updated or restarted the “KWH Deze dag” values are completely wrong and always set to 33… KWH Deze dag and that is the same value as the Energy Socket T1 value.

 ![2023-01-31 12_02_16-Homey Pro van Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/c/ec46c9286e95c793b4dd9e003101054db93c78ee.png) ![2023-01-31 12_02_30-Homey Pro van Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c184f1c7fe88449a27a8ff4fede797200af2180.png)

Why could this be happening every time?

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:** [January 31, 2023, 12:37pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1359 "2023-01-31T12:37:45Z")

</div>

Can you post a sceenshot of the PBTH settings of that device?

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 31, 2023, 12:47pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1360 "2023-01-31T12:47:22Z")

</div>

![2023-01-31 13_45_45-Homey Pro van Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c1a7cc372fe8a09fab14c8ca9cdb24800801e807.png)

 ![2023-01-31 13_45_59-Homey Pro van Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7efe979c5f52409e644d3c54ebe04e938e70f194.png)

 ![2023-01-31 13_46_14-Homey Pro van Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/894becbdcb771811ed01aaaf9a3426612824f61a.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:** [January 31, 2023, 12:51pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1361 "2023-01-31T12:51:39Z")

</div>

Why did you enable ‘has daily reset’? Or do you really use 635kWh in a single day?

Ah no, wait: your source device is at 34kWh today. So it does indeed reset to 0 every night?  
Do you indeed use around 34kWh on a day every day?

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 31, 2023, 2:54pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1362 "2023-01-31T14:54:43Z")

</div>

It does reset to 0 every night because I have set that option to yes.  
My usage is on workdays around 16 kwh and on weekends around 20 kwh.

---

<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:** [January 31, 2023, 2:55pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1363 "2023-01-31T14:55:53Z")

</div>

> [@Heula](#):
>
> I have set that option to yes.

Is that an option in the Homewizard app? If so disable that (and also in the PBTH app) and your issues are gone.

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [January 31, 2023, 3:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1365 "2023-01-31T15:16:21Z")

</div>

No, not an option in Homewizard. Only in PBTH.  
It only goes wrong after a restart of the PBTH or update.

---

<div class="post-metadata">

**Author:** ![JeeS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jees/32/1015_2.png) [@JeeS](https://community.homey.app/u/JeeS)\
**Post date:** [January 31, 2023, 8:54pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1366 "2023-01-31T20:54:40Z")

</div>

Hello all,

I have the P1 meter from HomeWizard and PBHT.  
Yesterday I created a Sum-Gas device in Homey. The strange thing is that today I already have 1.39 m3. used up gas. If I extrapolate this to 1 day, it comes to approx. 2 m3 of gas per day, even though my boiler is off and I have no further gas consumption (I’m on vacation right now). HomeWizard also indicates a gas consumption of 0 m3 and Home assistant also indicates 0 m3. This information all comes from the same P1 meter. The meter reading of the gas meter is also the same all day long. See also attached screenshot.

Where is this going wrong or should I interpret this differently?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/efb8d858dccc20fc47fd2608298acd070373aaf7.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa7fd77f2b6b54175483a055376833293646e85d.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/7/27b3f2134dc8c4edac20e2fc2a2196d2d94f90f6.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/fecb47c2ec1d21aab5c1b0f5c4882852e38cfb32.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/e/6e9af8c2cdfc942dc4c374b5142c149c03614b95.jpeg)

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [January 31, 2023, 9:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1367 "2023-01-31T21:52:37Z")

</div>

I noticed some strange behavior. PBTH reported values on yesterday that were not matching my P1. I noticed because my car started using power at 23:00h. PBTH reported 10kWh less than actual yesterday, which is exactly the amount I used between 23h and 0.00h. Could there be some timezone difference kicking in somewhere?  
Edit: for today it seems fine, so no clue.

---

<div class="post-metadata">

**Author:** ![Leendert\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leendert_p/32/20043_2.png) [@Leendert\_P](https://community.homey.app/u/Leendert_P)\
**Post date:** [February 1, 2023, 7:22pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1368 "2023-02-01T19:22:24Z")

</div>

From about yesterday I receive an error in the ‘power by the hour’ device ‘virtual\_meter\_gas’  
It says: ‘distribution has invalid length’  
I think this issue started with the update to ver 5.3.4  
I have no idea where to start debugging this error.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [February 1, 2023, 7:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1369 "2023-02-01T19:40:23Z")

</div>

> [@Leendert\_P](#):
>
> It says: ‘distribution has invalid length’

Check in advanced settings if “distribution schema” (verdeling schema) isn’t “manual budget” (handmatig budget), or supply the manual budget in year target budget.

---

<div class="post-metadata">

**Author:** ![Leendert\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leendert_p/32/20043_2.png) [@Leendert\_P](https://community.homey.app/u/Leendert_P)\
**Post date:** [February 1, 2023, 8:19pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1370 "2023-02-01T20:19:10Z")

</div>

Thanks for the great hit! Solved.

---

<div class="post-metadata">

**Author:** ![kristioi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kristioi/32/64022_2.png) [@kristioi](https://community.homey.app/u/kristioi)\
**Post date:** [February 2, 2023, 8:51am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1371 "2023-02-02T08:51:42Z")

</div>

I’m having an issue with the “Extra Time Of Day markup”. I try with:  
6:0.12;22:0  
but keep getting the error “Cannot read properties of undefined (reading ‘replace’)”. Fixed and variable markup work just fine.

Am I using this wrong?

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

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