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

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [July 6, 2023, 2:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1616 "2023-07-06T14:34:13Z")

</div>

Yeah, some issues, but noting that can not be resolved with some more advanced flow solutions. For example, the trigger is triggering a Switchbot that turns on the dishwasher. But after 7 minutes it triggers again and by doing so it turns off the dishwasher. I’ve implemented some extra logic to resolve these issues but it is a bit of a bodge. You would expect the trigger only to triggers once at the beginning of the hour.

Anyway thanks for your really useful app. Just bought you a couple of beers with the money I saved with your app 😆

---

<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:** [July 6, 2023, 2:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1617 "2023-07-06T14:40:32Z")

</div>

> [@Satoer](#):
>
> Just bought you a couple of beers with the money I saved with your app 😆

Donation received. Much appreciated! ❤🍻

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 7, 2023, 10:08am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1618 "2023-07-07T10:08:37Z")

</div>

Hi Robin, yesterday I messed up a PBTH device (power summarizer). The only thing I did was to unplug the Smart Plug (Shelly Plus Plug S) when a load was on and plug it back after about 1/2 hour.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fd1927bc7e7b3d9e99048e09cefbdf5920e82596.png)

This has led to the fact that the energy values (kWh) and the costs now show completely wrong values for yesterday, this month and this year:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d39d6cfafac9e2c6131a497547a4cc3c13eaf467.jpeg)

So I corrected the values “Start of month” and “Start of year” in the settings, but the values for yesterday, this month and this year are still wrong, because of the wrong value **-283.33 kWh** from yesterday:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/e/4e9e272d87eb1da2ad5f811c3df016e77786399b.jpeg)

Is there any way to correct this (the value from yesterday)?

---

<div class="post-metadata">

**Author:** ![Steino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steino/32/78995_2.png) [@Steino](https://community.homey.app/u/Steino)\
**Post date:** [July 7, 2023, 5:35pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1619 "2023-07-07T17:35:44Z")

</div>

I have something similar, with the same behaviour.

What logic did you build in?

---

<div class="post-metadata">

**Author:** ![Steino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steino/32/78995_2.png) [@Steino](https://community.homey.app/u/Steino)\
**Post date:** [July 7, 2023, 5:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1620 "2023-07-07T17:40:03Z")

</div>

Today it did not update again for a couple of hours. Then it worked again after restarting the PBTH app. Any chance you can check the diagnostics report?

313afe47-5e69-4d25-a612-90dd6f83bd5c

I ran this after restarting the app, not sure if this then has the error information in it you need.

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [July 7, 2023, 6:37pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1621 "2023-07-07T18:37:50Z")

</div>

Hello,

Can you implement the possibility to change PBTH source, for a Energy-summarizer? It would be nice to keep the data and change the source, not be needing to punch in the data manually. If this is not the right place for a feature request, where do i post it? It was not stated in the first or second post, in this topic.

Regards  
Marius

---

<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:** [July 7, 2023, 8:32pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1622 "2023-07-07T20:32:57Z")

</div>

There is a seperate topic for feature requests. Your request is already posted there: [[APP][Pro] Power by the Hour [Feature Requests] - #116 by erlend\_oyen](https://community.homey.app/t/69740/116)

---

<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:** [July 8, 2023, 12:32pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1623 "2023-07-08T12:32:55Z")

</div>

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

- DAP: Fixed price fetching error handling.

This should fix prices not updating on occasional price source issues.

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [July 11, 2023, 12:48pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1624 "2023-07-11T12:48:17Z")

</div>

You could do this bodge to overcome the flow starting again after 7-8 minutes when the “The price is the lowest for the coming 8hr” gets triggered.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6fa7b293331ae8ebcdd106de8b67eb1b49cd48bc.png)  
If the trigger activates, the flow waits 30 seconds (in case there are more things that need to be handled inside the same flow), and after that it deactivates the flow. Waits 10 minutes, and reactivates the flow.

Another issue I had, that the trigger “The price is the lowest for the coming 8hr” gets triggered again and again every hour after that if the next hour is a slightly higher price than previous hour. Of course this is understandable and correct behaviour. But in my case it pressed the dishwasher button again and disabled it. I have solve this to check if the current price is cheaper than the previous price:

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

You could also set and reset a true/false variable to check if something is already activated once.

---

<div class="post-metadata">

**Author:** ![Patric\_Hedin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_hedin/32/56421_2.png) [@Patric\_Hedin](https://community.homey.app/u/Patric_Hedin)\
**Post date:** [July 11, 2023, 4:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1625 "2023-07-11T16:43:18Z")

</div>

Since the last update (v.5.6.7 that was installed today on my HP2019) tomorrows prices are not fetched although the prices are available at [Ensoe](https://transparency.entsoe.eu/transmission-domain/r2/dayAheadPrices/show?name=&defaultValue=false&viewType=TABLE&areaType=BZN&atch=false&dateTime.dateTime=12.07.2023+00:00%7CCET%7CDAY&biddingZone.values=CTY%7C10YSE-1--------K!BZN%7C10Y1001A1001A46L&resolution.values=PT60M&dateTime.timezone=CET_CEST&dateTime.timezone_input=CET+(UTC+1)+/+CEST+(UTC+2)). Restarting the app does not solve the issue. Any ideas @Gruijter?

---

<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:** [July 11, 2023, 4:56pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1626 "2023-07-11T16:56:19Z")

</div>

Send me an app diagnostics report. For me pricefetching works.

---

<div class="post-metadata">

**Author:** ![Patric\_Hedin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_hedin/32/56421_2.png) [@Patric\_Hedin](https://community.homey.app/u/Patric_Hedin)\
**Post date:** [July 11, 2023, 5:19pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1627 "2023-07-11T17:19:05Z")

</div>

Here’s the report: c748be9e-0256-4d87-95a7-e5f0195a4241

---

<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:** [July 11, 2023, 5:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1628 "2023-07-11T17:52:36Z")

</div>

I dont see anything wrong. I see logs that prices are correctly fetched every hour, and sent to the summarizer. So what exactly isnt updated? Edit: but im on my phone right now. Hard to read the logs. Will dig deeper once I get to a laptop;)

---

<div class="post-metadata">

**Author:** ![Patric\_Hedin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_hedin/32/56421_2.png) [@Patric\_Hedin](https://community.homey.app/u/Patric_Hedin)\
**Post date:** [July 11, 2023, 6:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1629 "2023-07-11T18:24:50Z")

</div>

Sorry for taking up your time with this… Your app has received the prices for tomorrow… Background: I have a flow that’s triggered by “New prices arrived for tomorrow” and then stores tomorrows prices in a text variable (for further use) and if that flow has’nt been run/triggered before 13:58 (local time, Sweden) it restarts your app once every hour (this usually gets the prices for tomorrow on the first restart). If the trigger has’nt been activated within a couple of hours it notifies me and then I get worried…  
Seems that my Homey did’nt record the event (and stored the new prices in my local variable) and a restart of PBTH does’nt change that trigger soo… Sorry again, have just ordered a HP2023 as I think my old HP2019 has too much to keep track of… Sorry 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:** [July 11, 2023, 6:30pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1630 "2023-07-11T18:30:42Z")

</div>

No worries 😘

Many thanks for your kind donation. Much appreciated! ❤ 🍻

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [July 11, 2023, 6:44pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1631 "2023-07-11T18:44:47Z")

</div>

Hello,

I am using the “The price becomes on of” card , why does it trigger exactly at the whole hour, and then again 9 minutes later? I have tested it a bit, and it does that every time. I am trying to use this card to set a variable to set another action, but my variable is set twice, and that is a issue.

Kind Regards  
Marius

---

<div class="post-metadata">

**Author:** ![Patric\_Hedin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_hedin/32/56421_2.png) [@Patric\_Hedin](https://community.homey.app/u/Patric_Hedin)\
**Post date:** [July 11, 2023, 6:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1632 "2023-07-11T18:53:37Z")

</div>

You’re soo worth it 🙂 A question though…Would it be possible to add an AND-event for “Tomorrows prices has been fetched”?.. Just an idea…

---

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

</div>

> [@Marius\_Stensrod](#):
>
> The price becomes on of

The double trigger is caused by internal price fetching. I can look at preventing the double trigger in a next release.

But you can already create a different flow that starts e.g. 1 minute after each hour, and then use the ‘AND’ card. That way it is always only triggered once.

---

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

</div>

> [@Patric\_Hedin](#):
>
> AND-event for “Tomorrows prices has been fetched”?

Can you add it as feature request? [[APP][Pro] Power by the Hour [Feature Requests]](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740)

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [July 11, 2023, 7:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1635 "2023-07-11T19:14:52Z")

</div>

Yeah, that works. But it is not nescessary to trigger the card twice, because the price does change only one time in a hour. It would be great if you could prevent it.

Thank you wery much for your reply.

Kind Regards  
Marius

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

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