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

<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 7, 2021, 12:08pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/327 "2021-09-07T12:08:54Z")

</div>

What should happen if your contract starts in the middle of May? E.g. 15 May. What should ‘this month’ total do? Should every month reset to 0 on the 15th? Or on the first of each month?

---

<div class="post-metadata">

**Author:** ![XeNoN62](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xenon62/32/88365_2.png) [@XeNoN62](https://community.homey.app/u/XeNoN62)\
**Post date:** [September 7, 2021, 12:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/328 "2021-09-07T12:53:03Z")

</div>

Difficult, is it possible to leave this free so that a user can fill it in themselves? It is a fact that it has to be reset every month. But on what day?? For me this is around the 20th that data is read.

---

<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 7, 2021, 1:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/329 "2021-09-07T13:14:27Z")

</div>

Ok, I created a test version for you. If after the next month starts it all turns out fine I will release it as stable:

v2.6.0

- Added support to set start date of year.

> **[Power by the Hour](https://homey.app/en-us/app/com.gruijter.powerhour/Power-by-the-Hour/)**
>
> Summarize the energy/water usage or (solar) production per hour, day, month and year. Use dynamic tariffs.

---

<div class="post-metadata">

**Author:** ![XeNoN62](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xenon62/32/88365_2.png) [@XeNoN62](https://community.homey.app/u/XeNoN62)\
**Post date:** [September 7, 2021, 2:47pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/330 "2021-09-07T14:47:08Z")

</div>

Thank you, I’m going to test right away but indeed, have to be patient for a month 😉

---

<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 7, 2021, 3:00pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/331 "2021-09-07T15:00:28Z")

</div>

Many thx for your kind donation @XeNoN62 🤗

---

<div class="post-metadata">

**Author:** ![Ralf\_Groot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf_groot/32/16474_2.png) [@Ralf\_Groot](https://community.homey.app/u/Ralf_Groot)\
**Post date:** [September 11, 2021, 9:30am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/332 "2021-09-11T09:30:11Z")

</div>

Hi Robin @Gruijter ,

Is it possible to add a ‘Status Indicator’ to the app? This could make it possible to see the summerized data for a certain periode right from the tile.

I know you have a version of the app in beta but hope you can add this to it.

---

<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 11, 2021, 10:00am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/333 "2021-09-11T10:00:27Z")

</div>

Hi Ralf,

Probably not. The status indicator only works for Homey standard capabilities like power. But for the totals I created a custom capability because otherwise they would show in Homey energy (and you don’t want that for the pbth totals).

Maybe I can find a trick how to do it, but don’t get your hopes up on this…

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [September 11, 2021, 12:04pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/334 "2021-09-11T12:04:05Z")

</div>

If it is today the 11 you and your month is starting on the 12 then tonight it will reset the counter. For testing you have not to wait a full month. You can fill in 12 as starting date.

---

<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 11, 2021, 2:28pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/335 "2021-09-11T14:28:33Z")

</div>

Exactly! I already tested this a few day ago and it works for both the monthly reset and the yearly reset. So I will release it as stable.

---

<div class="post-metadata">

**Author:** ![KvM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kvm/32/6707_2.png) [@KvM](https://community.homey.app/u/KvM)\
**Post date:** [September 14, 2021, 8:12am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/336 "2021-09-14T08:12:39Z")

</div>

I was also thinking if you couldn’t use a “dummy” meter capability, jus for the sake of showing on the tiles. But if this messes with homey energy it might not be the best idea indeed. Too bad 🙂

---

<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:** [October 1, 2021, 1:41pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/337 "2021-10-01T13:41:18Z")

</div>

Hi Ralf and others,

I found out it is possible to create custom capabilities that can be displayed on the device tile. I could add that to the app. Problem is that it would only work for new PBTH devices. So existing devices (that probably already have a lot of insights history that you do not want to delete) will not be able to benefit from this.

What do you think. Shall I change the PBTH device capabilities in the next release, and keep the existing capabilities as legacy for PBTH devices that you don’t want to delete?

---

<div class="post-metadata">

**Author:** ![Ralf\_Groot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf_groot/32/16474_2.png) [@Ralf\_Groot](https://community.homey.app/u/Ralf_Groot)\
**Post date:** [October 1, 2021, 3:23pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/338 "2021-10-01T15:23:04Z")

</div>

Hi,  
Sounds as a good idea to me. Good work 🙂  
I’m not using the insights history for these devices yet. Only changing the meter values isn’t an issue.

When you’re looking for a beta tester…

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 2, 2021, 9:50am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/339 "2021-10-02T09:50:20Z")

</div>

Are there other users of PBTH were the counters of the month did not reset to 0 at the first of the month? .  
My fridge has now used in 2 day 32 kW. 😀  
Soware 2.6.0  
Homey fw 7.1.4

---

<div class="post-metadata">

**Author:** ![XeNoN62](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xenon62/32/88365_2.png) [@XeNoN62](https://community.homey.app/u/XeNoN62)\
**Post date:** [October 2, 2021, 10:22am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/340 "2021-10-02T10:22:26Z")

</div>

since I’m on homey firmware V7.1.4, after a reboot I always have that my Plugwise Smile V3 gets lost in the Power by the hour app. But my Smile is present in Homey?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/3/b37861d5e2cf4f91fe9db48acdecd5a8170372f2.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:** [October 2, 2021, 11:21am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/341 "2021-10-02T11:21:49Z")

</div>

> [@XeNoN62](#):
>
> after a reboot

PBTH should be able to recover from a reboot within an hour. If after an hour you still do not have the device available you can restart the PBTH app. But this should not happen…

---

<div class="post-metadata">

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

</div>

I have already found that out and helped myself very simply:  
If: Homey was restarted  
Then: PBTH restart after 10 minutes

---

<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:** [October 2, 2021, 11:42am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/343 "2021-10-02T11:42:04Z")

</div>

> [@Mike1233](#):
>
> the counters of the month did not reset to 0 at the first of the month?

I think this is a bug 🙁

Will have to investigate 😖

---

<div class="post-metadata">

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

</div>

@Gruijter

Thank you.

---

<div class="post-metadata">

**Author:** ![XeNoN62](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xenon62/32/88365_2.png) [@XeNoN62](https://community.homey.app/u/XeNoN62)\
**Post date:** [October 2, 2021, 1:13pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/345 "2021-10-02T13:13:46Z")

</div>

sorry, indeed after 20 min. everything works again. . . .

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [October 3, 2021, 7:22am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/346 "2021-10-03T07:22:16Z")

</div>

Same here.

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

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