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

<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:** [September 25, 2024, 8:27am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2535 "2024-09-25T08:27:04Z")

</div>

@Rob_Vallen @Zdenik03 : I think there is a bug in the ENTSO-E handler. I need to dig deeper into this.

@Jari_Peuhkurinen and @Zdenik03 : many thanks for your kind donations. 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:** [September 25, 2024, 8:39am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2536 "2024-09-25T08:39:41Z")

</div>

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

- Fixed ENTSO-E handler.

@Rob_Vallen @Zdenik03 Can you please test and let me know?  
Thx!

---

<div class="post-metadata">

**Author:** ![Zdenik03](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zdenik03/32/50949_2.png) [@Zdenik03](https://community.homey.app/u/Zdenik03)\
**Post date:** [September 25, 2024, 9:27am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2537 "2024-09-25T09:27:11Z")

</div>

Thank you @Gruijter

I installed 6.6.1, but every change still timeout error. The values remain unchanged.

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/f/4f9df70d04f7683eda080b3acca8287745aad867.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:** [September 25, 2024, 9:36am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2538 "2024-09-25T09:36:14Z")

</div>

> [@Zdenik03](#):
>
> The values remain unchanged

Changing settings is a different issue probably. Will dig into that later.  
What got fixed is getting raw price data from Entso-e. Can you at least confirm that?

---

<div class="post-metadata">

**Author:** ![Zdenik03](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zdenik03/32/50949_2.png) [@Zdenik03](https://community.homey.app/u/Zdenik03)\
**Post date:** [September 25, 2024, 10:21am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2539 "2024-09-25T10:21:01Z")

</div>

Yes. It is OK. I’m getting the data.

---

<div class="post-metadata">

**Author:** ![Rob\_Vallen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_vallen/32/113089_2.png) [@Rob\_Vallen](https://community.homey.app/u/Rob_Vallen)\
**Post date:** [September 25, 2024, 1:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2540 "2024-09-25T13:14:33Z")

</div>

It’s working now. Also changing settings works. Occasionally I still get an error, but after a retry settings are accepted.

Thank you @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:** [September 25, 2024, 1:39pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2541 "2024-09-25T13:39:46Z")

</div>

I found a potential cause for timeout error when changing settings. Will work on a fix for that.

---

<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:** [September 26, 2024, 9:13am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2542 "2024-09-26T09:13:05Z")

</div>

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

- Capability flows compatibility \>=fw12.2.0.
- Fix settings timeout error.

This change will also prepare some otherwise breaking stuff with upcoming Homey fw 12.2.0

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 26, 2024, 12:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2543 "2024-09-26T12:34:27Z")

</div>

Works great again, thanks for this big effort!

---

<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:** [September 27, 2024, 5:36am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2544 "2024-09-27T05:36:20Z")

</div>

Great app!

Is something wrong with the currency unit?  
If I set it to NOK, I got DKK as my curency.  
I need NOK, and then I have to set it to DKK in order to do that.  
Is this a bug or is it only my setup?

---

<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:** [September 27, 2024, 7:58am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2545 "2024-09-27T07:58:35Z")

</div>

Can you show a screenshot where this is happening?

---

<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:** [September 27, 2024, 8:08am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2546 "2024-09-27T08:08:36Z")

</div>

![bilde](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/755aa7d7777c0d60c17a3dc453ad89a821551c95.png)

![bilde](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f27b3858b6f57cde2ea630857999f7cf806276ee.png)

Change to NOK in the settings and the currency is DKK…  
In a few hours, I will update to 12.0.2/restart the homey, will report after that.  
I guess this doesn’t matter practically.

---

<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:** [September 27, 2024, 11:39am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2547 "2024-09-27T11:39:12Z")

</div>

It works now.

My system was already upgraded to 12.0.2 by automatic update that I believed was off.

I also noticed that PBTH was also upgraded to 6.6.2 a few hours ago.  
I tried this several times yesterday and this morning as well with no luck.  
I can’t see anything related to my problem in the changelog, but it seems that the upgrade of the PBTH solved this problem for some reason.

Case closed,  
cheers!

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 27, 2024, 11:50am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2548 "2024-09-27T11:50:31Z")

</div>

@Gruijter

The variable markup seems to be used in rounding differently than indicated. It seems to be rounded down, not rounded.

The variable markup is 22% \* spot price 0.0063 = 0.0013860

- My calculation (rounded): 0.0063+0.0014+0.0366+0.0244 = 0.0687
- DAP calculation (rounded down): 0.0063+0.0013+0.0366+0.0244 = 0.0686

My calculation uses the method you suggested (rounded to 4 digits): round(0.0013860 \* 10000) / 10000 = 0.00140  
Please confirm what you are using so I can adjust my manual verification?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/b/7bc24f4b262486422735c2c1a8ded9f4f0c88e75.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:** [September 27, 2024, 12:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2549 "2024-09-27T12:14:43Z")

</div>

Internally no rounding is done. See code here: [com.gruijter.powerhour/drivers/generic\_dap\_device.js at master · gruijter/com.gruijter.powerhour · GitHub](https://github.com/gruijter/com.gruijter.powerhour/blob/master/drivers%2Fgeneric_dap_device.js#L314)

When it is output to JSON via the flow card, it is rounded to 4 digits. See here: [com.gruijter.powerhour/drivers/generic\_dap\_device.js at master · gruijter/com.gruijter.powerhour · GitHub](https://github.com/gruijter/com.gruijter.powerhour/blob/master/drivers%2Fgeneric_dap_device.js#L391)

When displayed in the web UI or mobile Ui, it is rounded to the set number of digits. This is done by Homey, not the app. I can only assume Homey rounds numbers and does not round down.

---

<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:** [September 27, 2024, 7:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2550 "2024-09-27T19:43:29Z")

</div>

@Petra_Feenstra many thx for your kind donation! 🥰

---

<div class="post-metadata">

**Author:** ![staeff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/staeff/32/79712_2.png) [@staeff](https://community.homey.app/u/staeff)\
**Post date:** [October 2, 2024, 11:14am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2551 "2024-10-02T11:14:28Z")

</div>

@Gruijter the PBTH graph already works with widgets as you can simply add it as a camera view, but I’m wondering if it might be possible to maybe add a dark mode to the graph? Of course a real widget is also appreciated since the camera view titles overlay quite a bit of the graph, but I understand if you don’t have the time for that.

---

<div class="post-metadata">

**Author:** ![kruza26](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kruza26/32/36806_2.png) [@kruza26](https://community.homey.app/u/kruza26)\
**Post date:** [October 4, 2024, 5:33pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2552 "2024-10-04T17:33:19Z")

</div>

The prices are not updating. I have last update 5 hours ago. And graf for tmrw is not showing anything.

---

<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:** [October 6, 2024, 7:22am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2553 "2024-10-06T07:22:27Z")

</div>

Hi @Gruijter, I noticed this morning that (after a restart of my Homey?) there where no graphs anymore in my PBTH devices based on Electricity (Day-Ahead E Prijzen). Day-Ahead Gas Prijzen is working fine though. More specific, the camera option on the bottom of the screen of an E-device is missing where the camera option on the bottom of a G-device is still there.

Second thing is that I’m wondering whether the E-prices are updated every hour. It doesn’t seem to be.

I’m using v6.6.2 of the APP on a Homey Pro 2019 with version 12.1.0

Do you have any clue?

Regards

---

<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:** [October 6, 2024, 8:56am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2554 "2024-10-06T08:56:40Z")

</div>

It’s solved. Don’t know how/when but the graphs are back again and so it the camera icon in the E-devices

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

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