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

<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:** [November 7, 2022, 6:17pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/988 "2022-11-07T18:17:22Z")

</div>

> [@Martijn\_C](#):
>
> So these updates have nothing to do with the wattage number that updates every 2 minutes?

No. The 2 minutes update for watts is not related to how often the kWh is updated.  
And the kWh meter (difference) is what is used to calculate the totals per hour/day/month/year

---

<div class="post-metadata">

**Author:** ![JaccoStraaijer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jaccostraaijer/32/11777_2.png) [@JaccoStraaijer](https://community.homey.app/u/JaccoStraaijer)\
**Post date:** [November 7, 2022, 9:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/989 "2022-11-07T21:24:49Z")

</div>

> [@Gruijter](#):
>
> As alternative you could use leba for now. Prices are different but similar.

Will do. thanks for all the efforts!

---

<div class="post-metadata">

**Author:** ![Gab](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gab/32/57122_2.png) [@Gab](https://community.homey.app/u/Gab)\
**Post date:** [November 11, 2022, 11:58am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/990 "2022-11-11T11:58:32Z")

</div>

@Gruijter Thanks for the App and really loving it. But since the last update there seems to be an issue with power and gas summarizer. Both have a red corner stating Apparaat Onbeschikbaar, Source device Stroom is missing. Retry in 10 minutes.

So I restarted the PBTH app as well as HomeWizard no change. However both of the apps are giving me daily reports on how much gas and power was used.

So I removed the gas summarizer and reinstalled, good news no red triangle anymore, bad news all data is gone so need to built history from scratch and it looks like it will not gather any info anymore as there is not gas flow recorded last hour, but I definately used gas.

So I prefer not reinstalling power summarizer as all historic data will be lost.

Is there a possibility you can assist me solving this?  
Much appreciated.

P.s. P1 is functioning normal.

 ![Screenshot 2022-11-11 13.01.09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e1544d179122626a3a8e9a9657b49bcb71c4103f.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:** [November 11, 2022, 1:02pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/991 "2022-11-11T13:02:49Z")

</div>

I really dont know why the source device suddenly would show up as unavailable, unless something changed in the source device or source app. Did you maybe re-pair the P1 source device?

---

<div class="post-metadata">

**Author:** ![Gab](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gab/32/57122_2.png) [@Gab](https://community.homey.app/u/Gab)\
**Post date:** [November 11, 2022, 1:25pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/992 "2022-11-11T13:25:12Z")

</div>

Thank you so much for the reply. Nothing was changed om my end. Over night I got those red triangles. But strange thing is that the energy is still in the background receiving the info when I look into settings.

Do you have an option how I can save historical data when deleting the existing power and reinstall it?

As with gas all history is gone 😥.

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:** [November 11, 2022, 1:31pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/993 "2022-11-11T13:31:35Z")

</div>

It is not possible to ‘transfer’ historic data from a PBTH device to a new PBTH device.

Can you try rebooting Homey, wait 15-20 minutes, or longer untill you again get a red triangle again, and then send me a PBTH app diagnostics report?

---

<div class="post-metadata">

**Author:** ![Gab](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gab/32/57122_2.png) [@Gab](https://community.homey.app/u/Gab)\
**Post date:** [November 11, 2022, 1:59pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/994 "2022-11-11T13:59:37Z")

</div>

Rebooted my homey and unfortunately the red arrow still there.  
below the report

b575d85d-0dbc-46ba-a2e2-d27a782ff395

---

<div class="post-metadata">

**Author:** ![Gab](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gab/32/57122_2.png) [@Gab](https://community.homey.app/u/Gab)\
**Post date:** [November 11, 2022, 2:03pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/995 "2022-11-11T14:03:29Z")

</div>

In the meantime also the new instead gas is not working again.

0a5dbf52-2788-4ff7-b712-bff2db4756d7

---

<div class="post-metadata">

**Author:** ![JaccoStraaijer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jaccostraaijer/32/11777_2.png) [@JaccoStraaijer](https://community.homey.app/u/JaccoStraaijer)\
**Post date:** [November 11, 2022, 5:15pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/996 "2022-11-11T17:15:37Z")

</div>

Contribution in your PayPal account!

---

<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:** [November 11, 2022, 5:21pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/997 "2022-11-11T17:21:45Z")

</div>

🥳🤗 many thx @JaccoStraaijer ! Much appreciated ❤

---

<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:** [November 13, 2022, 12:00pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/998 "2022-11-13T12:00:16Z")

</div>

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

- Fixed TTF EOD Gas price fetching.
- Removed support for DAP Daylight Savings Time change.
- Update to homey-api@1.9.1.

@JaccoStraaijer @Michiel I found the issue with TTF EOD gas prices. FrankEnergy changed the API apparently. I have not found any documentation on that, but I was able to fix it anyhow 🥳

@Gab Not sure what causes the missing source device issue, where you had no issues before. But as a reach for solution I did update Homey-api to the latest version, and added additional waiting time during device setup.

---

<div class="post-metadata">

**Author:** ![Michiel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michiel/32/16416_2.png) [@Michiel](https://community.homey.app/u/Michiel)\
**Post date:** [November 13, 2022, 12:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/999 "2022-11-13T12:24:35Z")

</div>

Many thanks, it’s working again!

---

<div class="post-metadata">

**Author:** ![Gerard\_Krol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard_krol/32/57122_2.png) [@Gerard\_Krol](https://community.homey.app/u/Gerard_Krol)\
**Post date:** [November 13, 2022, 3:11pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1000 "2022-11-13T15:11:29Z")

</div>

Hoi meneer Gruijter, allereerst bedankt voor het maken van deze geweldige toevoeging aan Homey. Ik had zoals zo velen ook geconstateerd dat er wat mis was met de app, maar ik vertrouwde er op dat je dit wel zou oplossen. Gelukkig werkt de boel weer, maar ik vond nog 1 foutje. Bij de stroom app geef je nu ineens aan dat de laagste prijs voor stroom is om 24 uur. Dat geeft problemen in de flows die ik inmiddels gemaakt heb. In de echte wereld bestaat er geen uur 24. Als je een goede reden hebt om 00:00 uur nu aan te merken als 24 uur dan is dat natuurlijk uitstekend, als dat dan maar wel consequent doorgevoerd wordt. Fijne dag verder en ik hoop dat je nog lang doorgaat met het ontwikkelen van je uitstekende toepasbare programma’s.  
Groeten, Gerard Krol.

---

<div class="post-metadata">

**Author:** ![JaccoStraaijer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jaccostraaijer/32/11777_2.png) [@JaccoStraaijer](https://community.homey.app/u/JaccoStraaijer)\
**Post date:** [November 13, 2022, 4:26pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1001 "2022-11-13T16:26:17Z")

</div>

> [@Gruijter](#):
>
> @JaccoStraaijer @Michiel I found the issue with TTF EOD gas prices. FrankEnergy changed the API apparently. I have not found any documentation on that, but I was able to fix it anyhow 🥳

Fix confirmed. It is working again!

---

<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:** [November 13, 2022, 6:50pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1002 "2022-11-13T18:50:56Z")

</div>

> [@Gerard\_Krol](#):
>
> laagste prijs voor stroom is om 24 uur.

That is a DST code related bug I still need to fix. It only happens when the api delivers 25 hours of data for a day, and the 25th hour (which is actually hour 0 of the next day) happens to be the lowest of them all. So a pretty rare case, and it is the case today for the NL pricing.

---

<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:** [November 13, 2022, 6:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1003 "2022-11-13T18:53:15Z")

</div>

@Patric_Hedin many thx for your donation! 🍻🥰

---

<div class="post-metadata">

**Author:** ![Gerard\_Krol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gerard_krol/32/57122_2.png) [@Gerard\_Krol](https://community.homey.app/u/Gerard_Krol)\
**Post date:** [November 13, 2022, 7:33pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1004 "2022-11-13T19:33:33Z")

</div>

Hi Robbin, thank you for your quick response. Good luck creating a working solution.

---

<div class="post-metadata">

**Author:** ![Gab](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gab/32/57122_2.png) [@Gab](https://community.homey.app/u/Gab)\
**Post date:** [November 14, 2022, 9:38am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1005 "2022-11-14T09:38:52Z")

</div>

Thanks for all the help, I deleted the current Stroom, and created a new one so started ‘fresh’ again!

---

<div class="post-metadata">

**Author:** ![b1ue3AGLE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b1ue3agle/32/48498_2.png) [@b1ue3AGLE](https://community.homey.app/u/b1ue3AGLE)\
**Post date:** [November 14, 2022, 10:53am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1006 "2022-11-14T10:53:00Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39804810815a008e4aabc5e6d1c7fa274ebfe8b7.png)  
Hi Gruijter. I’ve uploaded an comperance between PoTH with Shelly device with daily reset active.  
It’s the yellow/orange cure, and compered it agains the formule I’ve found on other forums.

I don’t know what couses this, but when it goes belows the other value, it dobbles the sum for some reachen.

It’s not following the rules you set here:

- you use kWh as source (not watt as source!) _YES_
- the meter is normally only going up (never down), _Normaly yes, but…_
- the random reset is to 0 kWh (not a higher value), _It might be where the problem is._

I’ve added two flow that is tested and works with Shelly devices. Is it possible to add this to the app. in the future ?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/981c6382b83a54f500fcd726ef8915afd21ab6ab.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/150df805aac64b218c23f4e81c011c76f1933d36.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:** [November 14, 2022, 2:20pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1007 "2022-11-14T14:20:33Z")

</div>

> [@b1ue3AGLE](#):
>
> Is it possible to add this

No because I will not use PBTH to compensate for issues caused by other apps. If the root issue cannot be solved in Shelly, the next best for you would be to switch to using Watts as source.

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

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