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

<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:** [April 11, 2020, 8:10am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/104 "2020-04-11T08:10:18Z")

</div>

> [@Wolly\_a](#):
>
> Your app probably expects an ascending value at the mete

Correct 🕶

---

<div class="post-metadata">

**Author:** ![Wolly\_a](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wolly_a/32/2521_2.png) [@Wolly\_a](https://community.homey.app/u/Wolly_a)\
**Post date:** [April 11, 2020, 9:03am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/105 "2020-04-11T09:03:24Z")

</div>

Is there something I can do to make this work? Using logic or something to create a ascending value?

---

<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:** [April 11, 2020, 9:45am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/106 "2020-04-11T09:45:19Z")

</div>

You could ask @Diederik to create an option in his app to make the meter\_power not reset every day.

---

<div class="post-metadata">

**Author:** ![Wolly\_a](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wolly_a/32/2521_2.png) [@Wolly\_a](https://community.homey.app/u/Wolly_a)\
**Post date:** [April 11, 2020, 10:05am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/107 "2020-04-11T10:05:37Z")

</div>

Thnx for the reply… I will do that. Maybe @Diederik can add an extra ascending value or an option for not resetting the value.

---

<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:** [April 11, 2020, 10:22am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/108 "2020-04-11T10:22:34Z")

</div>

> [@Wolly\_a](#):
>
> add an extra ascending value

That will not work with PowerByTheHour. It needs power\_meter as capability. So I think making the daily reset an option is the easiest solution.

---

<div class="post-metadata">

**Author:** ![Diederik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/diederik/32/8456_2.png) [@Diederik](https://community.homey.app/u/Diederik)\
**Post date:** [April 12, 2020, 9:25am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/109 "2020-04-12T09:25:55Z")

</div>

Would it be possible to use multiple `power_meter` capabilities? I believe the SDK supports using the same capability multiple times in the same driver by adding a modifier, like `power_meter.lifetime`.

The Solar Panels app currently just takes the daily power meter from the inverter manufacturer’s API, so it is not intentionally resetting the value every day. Some manufacturers might also support a lifetime energy value which could be implemented this way.

---

<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:** [April 12, 2020, 10:10am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/110 "2020-04-12T10:10:03Z")

</div>

Yes that is possible, but the standard for meter\_power is that that is the cumulative one.

If you would e.g. a add meter\_power.total you would be deviating from how meter\_power is normally used (not forbidden to do that off course, but I would have to adapt my PowerByTheHour app specially to handle your apps output.)

If you are saying that the behaviour of your meter\_power depends on the individual brand of inverter, then I would suggest you make it user selectable on the device level.

It would be very nice if both our apps work together well 🤗

---

<div class="post-metadata">

**Author:** ![Diederik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/diederik/32/8456_2.png) [@Diederik](https://community.homey.app/u/Diederik)\
**Post date:** [April 12, 2020, 10:27am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/111 "2020-04-12T10:27:26Z")

</div>

Is it? I would say the capability is only dictated to a specific type of measurement and unit.

My app uses `meter_power` in a consistent way, that is, the daily energy meter value.

I will look into adding multiple `meter_power` capabilities, showing both daily and total energy production. The daily energy production is important for many users because they set up notifications with that value every night.

---

<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:** [April 12, 2020, 10:44am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/112 "2020-04-12T10:44:25Z")

</div>

Sound good! We’ll find a way to make it work one way or another 🕶

---

<div class="post-metadata">

**Author:** ![Wolly\_a](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wolly_a/32/2521_2.png) [@Wolly\_a](https://community.homey.app/u/Wolly_a)\
**Post date:** [April 18, 2020, 3:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/113 "2020-04-18T15:16:26Z")

</div>

Nice to see the community work together. For now I use the value from the Solarpanels app for my daily output and bought a separate kWh meter with S0 output. An Arduino based microcontroller counts the pulses and sends the ascending kWh value to a virtual device on Homey. I use this devices for the Power by the Hour 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:** [April 18, 2020, 5:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/114 "2020-04-18T17:06:39Z")

</div>

Any ETA for this?

> [@Diederik](#):
>
> I will look into adding multiple `meter_power` capabilities

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [June 19, 2020, 4:11pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/115 "2020-06-19T16:11:57Z")

</div>

great app. But Bug in display of meter?  
No update on meter but in details the correct value (solar panels): 13,9 ( correct value) vs 3 (false value) kWh.

(After restart or crash it resets the day value?  
I restarted the app)

 ![Screenshot_20200619-180745_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f8dbea05e3f5a0de7cc767e7b8c6abf4d7823b6.jpeg)

 ![Screenshot_20200619-180801_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1aa3acabac4d7942f2db64dfa8638089342daace.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:** [June 20, 2020, 2:50am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/116 "2020-06-20T02:50:57Z")

</div>

The 3 kWh is what was produced today (or since device pair if you paired today). The 13.9 is the cumulative kWh. But judging by the low cumulative number I suspect you are using the solar panel app. If so, please read the entire thread on this subject.

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [June 20, 2020, 10:01pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/117 "2020-06-20T22:01:04Z")

</div>

Yes, you are correct about the solar panel app. Thanks for pointing out to previous messages. Hopefully the app can be updated to cumelate the values.

---

<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:** [June 21, 2020, 8:35am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/118 "2020-06-21T08:35:04Z")

</div>

I created a test version in which you can select if the source device resets its meter to 0 every day. The Power By The Hour app will then try to make a cumulative reading by itself. This should work for the Solar Panels app.

 ![Screenshot_20200621-103023_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/c/0cb22668c49a6d81b8f6b48a465a5aa96b0bdb2f.jpeg)

@Diederik @VanGilles @Wolly_a Can you please test if it works correctly. I cannot test it myself since I cannot use the Solar Panels app:

> **[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:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [June 21, 2020, 11:02am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/119 "2020-06-21T11:02:28Z")

</div>

Thanks for the update! 🙂 I’ll test it right now and will report you tomorrow

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [June 22, 2020, 5:57am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/120 "2020-06-22T05:57:28Z")

</div>

Hey Master! 😉 I think you fixed it!🙂 thanks.

**Yesterday late night sun down, inverter down:**

_Solar panel app:_

 ![Screenshot_20200621-233022_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/b/4beb72d935112462a739b60d56bc9e227cb80460.jpeg)

_Power by the hour app:_

 ![Screenshot_20200621-233033_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/089c9883c5b0d64d0dba079870149f87faf388ce.jpeg)

**Today new day and inverter up and running again:**

 ![Screenshot_20200622-075124_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/25040d63271c15ae6e9319f182e2eec035c09c0c.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:** [June 22, 2020, 7:05am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/121 "2020-06-22T07:05:00Z")

</div>

That is great to hear! But actually I’m surprised because it only works if the solar panel app resets to zero EXACTLY at midnight 🤣

Do the Insights look o.k. around midnight?

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [June 22, 2020, 7:20am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/122 "2020-06-22T07:20:36Z")

</div>

**Solar panel app insights:**

 ![Screenshot_20200622-091712_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f9aecdabc4055a878d27e304cf41cdeb2b7ff5a1.jpeg)

As you can see, when the sun is down you see a ‘flatliner’ around 21.30 till the sun comes up again. So I think the value remains ‘0.00’ @ 0.00h.

---

<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:** [June 22, 2020, 7:56am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/123 "2020-06-22T07:56:41Z")

</div>

and what about the Insights from Power by the Hour?

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

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