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

<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 7, 2024, 10:30am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2086 "2024-01-07T10:30:38Z")

</div>

@johan_W thanks for your support and donation! Cheers 🥰🍻

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 8, 2024, 8:34am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2087 "2024-01-08T08:34:17Z")

</div>

I have tested this card many times and I think there might be a bug with this card. It seems not not take price **before** the lowest price into calculation.

In example above, it would probably use 0,10 - 0,20 and 0,30.

If the pricing looks a bit different like this,

**1:00 0,20**  
**2:00 0,10**  
3:00 0,30  
4:00 0,40

it somehow use 0,10 - 0,30 and 0,40. I would expect it to use 0,20 -0,10 and 0,30 instead.

---

<div class="post-metadata">

**Author:** ![Olex](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olex/32/79016_2.png) [@Olex](https://community.homey.app/u/Olex)\
**Post date:** [January 8, 2024, 8:46am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2088 "2024-01-08T08:46:52Z")

</div>

I have a problem with the min/max values when using power summarizer.  
In my house, I have two smart meters with one Tibber pulse each.  
I have a setup with one summarizer for each Tibber pulse.  
In the corresponding summarizer, all readings are correct, except the min/max values.  
Tibber pulse #1 and corresponding PBTH power summarizer #1:  
According to Tibber pulse,the min/max has been 176W and 7837W respectively since midnight.  
PBTH summarizer #1 reads 1647 and 10440W.

Tibber pulse #2 and corresponding PBTH power summarizer #2:  
According to Tibber pulse,the min/max has been 764W and 7478W respectively since midnight.  
PBTH summarizer #2 reads 1556 and 13198W.

The Tibber pulse is updated with interval 30 seconds.  
I guess this is due to the fact that PBTH works with KWh as the source?

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 8, 2024, 10:38am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2089 "2024-01-08T10:38:14Z")

</div>

> [@Olex](#):
>
> PBTH works with KWh as the source

Yes, and the min/max is calculated over a 2 minute average. So short peaks would not be found by PBTH. I would rely on the Tibber min/max. The PBTH min/max is less accurate.

---

<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 8, 2024, 10:40am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2090 "2024-01-08T10:40:52Z")

</div>

> [@Hans-Christian](#):
>
> this card

Can you show a screenshot of the exact card and the setting you use?

Most people forget that time is a flowing thing… so the lowest 4 hours for the next 8 hours at 13 o’clock will not be the same 4 hours and not the same 8 hours at 14 o’clock.

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 8, 2024, 11:17am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2091 "2024-01-08T11:17:44Z")

</div>

Thanks for looking into this Gruijter.  
Below you find some screenshots from the flow and also the price scheme for today. If this works as I understand, average lowest 4 hours, last 10 hours before 7 in the morning should in this case be from 2am. However the flow started at 3am.  
Not sure why this is happening, but I have tried to use different flowstarters without success, including just using the equal “when” card.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e01b2e08ee5b2286bbad352bff547a85bd132fe6.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/849aa378bb9e55c981b0c68ee2a48fea69207882.jpeg)

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 9, 2024, 7:27am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2092 "2024-01-09T07:27:20Z")

</div>

Made a new test during the night with the “when” card as shown below. This When card trigered the test message at **2 am** and once again at **3 am**. Looking at the prices, it seems like the flow should have been triggered at 1 am.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/7/673960a0605d430662368680200af3d99ba9a5ee.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75f50be62f25674b9c1f72322ea0826f631cbe3b.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:** [January 9, 2024, 7:56am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2093 "2024-01-09T07:56:28Z")

</div>

Agree. Will dive into it hopefully next weekend.

---

<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 9, 2024, 3:32pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2094 "2024-01-09T15:32:04Z")

</div>

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

- DAP: fixed flow cards for highest/lowest Before and highest/lowest Average.
- SUM: stability improvements.
- BAT: smart ROI tweaked for discharge value representing AC side.
- BAT: Max discharge default changed to 1700.

This should fix the DAP flow card bug that @Hans-Christian found. I was able to find this very complex bug with the info he provided. The bug also impacted a number of other flow cards. Thx Hans!

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 9, 2024, 8:04pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2095 "2024-01-09T20:04:04Z")

</div>

Thanks for quick response @Gruijter . App is updated and ready for action tonight 😀.

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 10, 2024, 7:12am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2096 "2024-01-10T07:12:46Z")

</div>

@Gruijter , Tonight both the live and the test flows started at the correct time. This night it should start at 3 am according to the price / time schedule. Not sure if this is intentionally, but the “When” card used in test flow, triggered first time at 3 am(as it should), then at 4, 5 and 6am. The “And” card that I use in my Live flow triggered also at 3 am, but seems like it did not trigger any further hours, which is good. The Live flow do not have the same logging turned on so I cannot tell 100% that it had a other behavior. Will do another test with this flow tonight with different logging.

 ![IMG_2498](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/ba0f9f6a1fd075b595d25c324186b46e8134ec26.png)  
 ![IMG_2499](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ce7cea6ecda5794f1119c368b136a36e03ae8106.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:** [January 10, 2024, 7:48am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2097 "2024-01-10T07:48:41Z")

</div>

> [@Hans-Christian](#):
>
> 3 am(as it should), then at 4, 5 and 6am

This is how I designed it (assuming you entered 4 hours as period). Looking at the flow card description I can understand that behaviour is not described well.

> [@Hans-Christian](#):
>
> And” card that I use in my Live flow triggered also at 3 am, but seems like it did not trigger any further hours,

That is weird. Should behave the same since it used the exact same underlying code.

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 10, 2024, 8:05am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2098 "2024-01-10T08:05:54Z")

</div>

Thanks for clarify @Gruijter . I will do a new test with the “and” card tonight with more logging. Last night it only logged when the water heater was turned on, not when the flowcard triggered.

Thanks again for sorting this out!

---

<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 10, 2024, 10:19am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2099 "2024-01-10T10:19:57Z")

</div>

@Olex many thx for your kind donation. Much appreciated! ❤

---

<div class="post-metadata">

**Author:** ![Hans-Christian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans-christian/32/68056_2.png) [@Hans-Christian](https://community.homey.app/u/Hans-Christian)\
**Post date:** [January 11, 2024, 7:35am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2100 "2024-01-11T07:35:40Z")

</div>

> [@Gruijter](#):
>
> That is weird. Should behave the same since it used the exact same underlying code.

It was same behavior. All works fine now!

---

<div class="post-metadata">

**Author:** ![ODE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ode/32/34895_2.png) [@ODE](https://community.homey.app/u/ODE)\
**Post date:** [January 11, 2024, 8:48am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2101 "2024-01-11T08:48:30Z")

</div>

Hello

Something eludes me. I’m in France and the update module shows me a price of

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

Whereas the price in France is based on the TRV, which is currently 0.2276€/Kwh? bearing in mind that the TRV generally only changes twice a year.

Is there anything I’ve done wrong?

---

<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 11, 2024, 9:08am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2102 "2024-01-11T09:08:51Z")

</div>

> [@ODE](#):
>
> TRV, which is currently 0.2276€/Kwh

Did you add this in the PBTH settings?

---

<div class="post-metadata">

**Author:** ![ODE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ode/32/34895_2.png) [@ODE](https://community.homey.app/u/ODE)\
**Post date:** [January 11, 2024, 9:17am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2103 "2024-01-11T09:17:22Z")

</div>

I’m afraid I don’t understand?

TRV is the regulatory tariff in France per kwh. it is revised about 2 times a year by France.

so i don’t understand why the value of the price recovered (in PBTH)for france is around 0.1137?

then if there’s a place where i can put this manual rate, why not, but i admit i’d rather not have to think about that 😉

here are my parameters

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/976bea26b11560cc3b13575d52db18307cbdf547.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 11, 2024, 12:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2104 "2024-01-11T12:16:38Z")

</div>

> [@ODE](#):
>
> don’t understand why the value of the price recovered (in PBTH)for france is around 0.1137?

PBTH is a generic tool that can fetch the bare day ahead market prices for many EU regions from ENTSO-E. These market prices do not include taxes or the markups from your energy provider.

> [@ODE](#):
>
> if there’s a place where i can put this manual rate, why not,

The screenshot you posted is the place to add taxes and fixed markups.

> [@ODE](#):
>
> i admit i’d rather not have to think about that

If you want to use this app, you need to put in a tiny bit of work. Please be aware of the vast amount of effort I had to put in to make it this easy for you! 😘

---

<div class="post-metadata">

**Author:** ![ODE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ode/32/34895_2.png) [@ODE](https://community.homey.app/u/ODE)\
**Post date:** [January 11, 2024, 12:57pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2105 "2024-01-11T12:57:42Z")

</div>

Thank you and far be it from me to condemn you.  
and thank you for your feedback.

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

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