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

<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:** [May 12, 2021, 1:21pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/247 "2021-05-12T13:21:59Z")

</div>

And version 2.4.1 is already on its way [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

- Fix hourly device restart
- Improved watchdog

I made this version because by trial and error I found out that a Homey source device can have different states. This is important for PBTH to handle errors and to (re)start polling or listening to source device updates.

It is mostly undocumented in the Athom docs, so I had to go through different scenario’s to find out.

I hope I have been able to tackle all scenario’s now:

1. The source device was once paired, but is deleted
2. The source device was paired, but the source app is not running
3. The source device is running, but is in a ‘unavailable’ state
4. The source device is running and available, but for some reason PBTH is not polling or listening to the source device
5. The source device is running and available, and PBTH is polling or listening to the source device

---

<div class="post-metadata">

**Author:** ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)\
**Post date:** [May 12, 2021, 9:24pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/248 "2021-05-12T21:24:36Z")

</div>

Sorry, just saw your reply, appreciate your support! It is set as 0, no repair in the source devices

---

<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:** [May 12, 2021, 9:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/249 "2021-05-12T21:34:58Z")

</div>

Should be fixed in version 2.4.0 / 2.4.1. Can you check and let me know?

---

<div class="post-metadata">

**Author:** ![Tobias\_Antonsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias_antonsson/32/31018_2.png) [@Tobias\_Antonsson](https://community.homey.app/u/Tobias_Antonsson)\
**Post date:** [May 14, 2021, 9:17pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/250 "2021-05-14T21:17:39Z")

</div>

I have a solaredge modbus meter, and solar panels. Is it possible to also se the consumption “by the hour”? Now I only se my solar production. The device I added is connected to the solarEdge app  
Thanks for a good 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:** [May 15, 2021, 4:55am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/251 "2021-05-15T04:55:15Z")

</div>

I’m not familiar with solar edge. But after some googling I see it is a 3 phase meter. If it can measure both production and consumption I assume the meter in the solar edge app will count up and down respectively. PBTH will simply show the net result per hour. This is both for production and consumption. But if the meter has a daily reset to 0 PBTH can only show a positive net result.

So I don’t know what your device reports, and I don’t know how the Homey solar edge app reports that data. PBTH simply uses the reported data and shows the net result every hour.

Can you share a screenshot of how the app is reporting production and consumption?

---

<div class="post-metadata">

**Author:** ![Tobias\_Antonsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias_antonsson/32/31018_2.png) [@Tobias\_Antonsson](https://community.homey.app/u/Tobias_Antonsson)\
**Post date:** [May 15, 2021, 8:42am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/252 "2021-05-15T08:42:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tobias\_Antonsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias_antonsson/32/31018_2.png) [@Tobias\_Antonsson](https://community.homey.app/u/Tobias_Antonsson)\
**Post date:** [May 15, 2021, 8:44am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/253 "2021-05-15T08:44:57Z")

</div>

I see ONLY the production, not any consumption at all, or any total calculated value with consumption.

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [May 15, 2021, 8:46am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/254 "2021-05-15T08:46:19Z")

</div>

You forgot one:  
state 6: The state a community developer is in whilst having to reverse engineer undocumented features that users are counting on 😱

---

<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:** [May 15, 2021, 8:54am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/255 "2021-05-15T08:54:07Z")

</div>

😂 Yes, this is quite a puzzle for me…

@Tobias_Antonsson

- I guess PBTH is using the number displayed at Total Yield (check in PBTH advanced device settings). Can you confirm this?

- I see you have Solar Power in watts. I assume this is reported by your solar edge inverter. Can you confirm?

- I see you also have a Power import and export. I assume this is coming from your main meter. But where is solaredge getting this from?

- How is the total yield calculated? Is that from the Solar power, or is that from the Power export - Power import?

---

<div class="post-metadata">

**Author:** ![Tobias\_Antonsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias_antonsson/32/31018_2.png) [@Tobias\_Antonsson](https://community.homey.app/u/Tobias_Antonsson)\
**Post date:** [May 15, 2021, 4:00pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/256 "2021-05-15T16:00:49Z")

</div>

I receive this answer from the developer of solaredge app.

Total yield, import and export are received from the inverter, so not calculated.  
These values are ‘meters’ so PBTH could see them if it supports ‘sub’meters. Total yield is the main meter.

Consumption is a ‘measure\_power’, this cannot be used in PBTH as it is a value at time measured.

Don’t put more effort to this, not that important…

---

<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:** [May 15, 2021, 4:04pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/257 "2021-05-15T16:04:23Z")

</div>

> [@Tobias\_Antonsson](#):
>
> Total yield is the main meter.

If total yield is the main meter, then PBTH takes consumption into account as well. It just seems you never consume more then you produce.

---

<div class="post-metadata">

**Author:** ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)\
**Post date:** [May 19, 2021, 6:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/258 "2021-05-19T18:34:16Z")

</div>

Upon till now it is running without hick-ups any more!

---

<div class="post-metadata">

**Author:** ![Ria\_Banis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ria_banis/32/7966_2.png) [@Ria\_Banis](https://community.homey.app/u/Ria_Banis)\
**Post date:** [May 22, 2021, 10:28am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/259 "2021-05-22T10:28:51Z")

</div>

Installed this app today. It looks great but what am I doing wrong?  
I get negative values, I read this thread completely, but can’t find the solution.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4a6d4c9877b6bf247d5b2bed430f405d3003acf2.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ce84755fd07bd0f5ad7d0035b4f847298f8263cc.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:** [May 22, 2021, 12:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/260 "2021-05-22T12:06:30Z")

</div>

Your meter is resetting to 0 every midnight. So you need to figure out a virtual month start and year start that results in the correct values for you. I guess you need to set a negative value in the device settings for that.

---

<div class="post-metadata">

**Author:** ![Ria\_Banis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ria_banis/32/7966_2.png) [@Ria\_Banis](https://community.homey.app/u/Ria_Banis)\
**Post date:** [May 23, 2021, 6:48am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/261 "2021-05-23T06:48:28Z")

</div>

Thank you very much. I managed to calculate this. Now it looks fine.

---

<div class="post-metadata">

**Author:** ![Niels\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niels_de_jong/32/131167_2.png) [@Niels\_de\_Jong](https://community.homey.app/u/Niels_de_Jong)\
**Post date:** [May 23, 2021, 11:37am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/262 "2021-05-23T11:37:12Z")

</div>

First of all, thanks very much for all your effort and this nice app!

I know you’ve said before that you are not planning to make it calculate to euro’s in real time.  
I know there is software like enelogic that does this already, but it would be so nice to add it to my homeydash as a device to watch it whenever I want on the dashboard (I’ve got the dashboard wall mounted running all day long)

If there is already another way to make a (virtual) device to create a tile that shows euro instead of kWh I would be very interested to learn how to do that.

And also, is there a way to make the tile update in real time? or per minute or so? instead of having to refresh the whole dashboard every time?

Thanks in advance!

---

<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:** [May 23, 2021, 2:37pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/263 "2021-05-23T14:37:25Z")

</div>

very nice dashboard! I can understand why you would want a device displaying Euro’s.

Maybe the developer of better logic (@SailingDuck ?) is willing to add a ‘device’ that can display a variable, where the variable is in your case kWh \* price.

> [@\[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/5568):
>
> Now in Test/Review: Rebranding BL to: [Better Logic Library 2.0](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/test/). The Better Logic App has been rebranded to Better Logic Library. Check out the new App Settings for the new features, like BLL coding in [supported apps](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/4)! Submitted for review by Athom now! See [[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)[[APP][Pro] Better Logic Library - For developers - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761) BLL has been updated to sdk3 to get everything up and running ag…

---

<div class="post-metadata">

**Author:** ![Ria\_Banis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ria_banis/32/7966_2.png) [@Ria\_Banis](https://community.homey.app/u/Ria_Banis)\
**Post date:** [May 24, 2021, 9:12am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/264 "2021-05-24T09:12:02Z")

</div>

Unfortunately not the correct readings today. It seems it didn’t reset last night.  
Uploading: 393D560B-85A3-4D01-9980-C8FACDEB03E2.png…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/ea8fef9544e7a3edd6e4e9cbfb00a736ebda104d.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5e0a0d1c70fdeda9bccd6f8c9be93a0e90164be6.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:** [May 24, 2021, 10:13am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/265 "2021-05-24T10:13:12Z")

</div>

From the last screenshot what is not correct? The numbers seem very possible to me.

Or is it that the today 18.82 kWh should be 2.13 kWh?

Yeah, I think that is what you mean. Darn those daily resetting counters cause major headaches 😫

Can you send an app diagnostics report @Ria_Banis ?

---

<div class="post-metadata">

**Author:** ![Ria\_Banis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ria_banis/32/7966_2.png) [@Ria\_Banis](https://community.homey.app/u/Ria_Banis)\
**Post date:** [May 24, 2021, 1:35pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/266 "2021-05-24T13:35:09Z")

</div>

590392e3-b500-44f9-a7c4-00376407f994

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

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