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

<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 9, 2022, 11:57am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/830 "2022-09-09T11:57:07Z")

</div>

I found the source code.

> <https://github.com/ricott/homey-com.victronenergy/blob/58cb1c4bf866bc73eb30710c01d767c9837ca3e3/drivers/gx/driver.compose.json#L32>

That means that without creating a virtual device PBTH will track consumption.

Use this app to create a virtual device for grid power: [\< groep \> App voor Homey | Homey](https://homey.app/nl-nl/app/com.swttt.devicegroups/&lt;-group-&gt;/)

---

<div class="post-metadata">

**Author:** ![Hovhag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hovhag/32/34155_2.png) [@Hovhag](https://community.homey.app/u/Hovhag)\
**Post date:** [September 10, 2022, 4:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/831 "2022-09-10T16:34:34Z")

</div>

Hello and thanks for a great app.

I have tried to search for my question but in over 800 posts i gave upp, so I am sorry if this question has been up.

I use this app to track electricity used by my EV via my wallbox. Most EV users I believe connect their EV when they come home from work sometime between 16:00 and 18:00. Those with spot price often use some form of smart scheduling so that the car is charged when the electricity is at it’s lowest price. Many times it starts at 21:00 to 00:00 and stops 05:00-07:00.

I can see cost for “today” and “yesterday” but that doesn’t correspond with normal charging sessions. Many time my car is charged between 23:00 to 00:00 and 01:00 to 02:00 and 04:00 to 06:00. This results in the charge session is spread over two different days and the cost is reset 00:00 and I cant see cost for latest charge session. See attached photo.

I would like to add a function in the wish list.

Please let me have the possibility to set time when the counter resets every day. Either by set a custom time or have a setting to choose between 00:00 and 12:00.

And again, thanks for a great app.

 ![IMG_20220910_180810](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f7ecec71e876d6b869b70afb72fda7705ce7bee7.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:** [September 10, 2022, 5:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/832 "2022-09-10T17:16:14Z")

</div>

Hi @Hovhag , and many thanks for your kind donation! Really appreciated 🍻

Handling time in PBTH (or any Homey app that needs time for that matter) is a nightmare. So I will not fiddle around with custom timing for ‘days’.

It would be pretty simple though to make a flow that calculates every noon for instance. Just store the kWh and Money values at 12am. By substracting the values from the previous day you have the charge session you are looking for.

---

<div class="post-metadata">

**Author:** ![Hovhag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hovhag/32/34155_2.png) [@Hovhag](https://community.homey.app/u/Hovhag)\
**Post date:** [September 10, 2022, 5:21pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/833 "2022-09-10T17:21:24Z")

</div>

Hi, thanks for your reply.

Okej, I will have a try and make a flow.

---

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

</div>

v4.5.6 is ready and released as stable.

- DAP prices persistence on app restart.
- Fixed bug in Money prev. hour/day.

Yesterday I did not get any electricity pricing from ENTSO-E (for NL). So I’m now working on the ability to use nordpool as backup source for day ahead pricing. It is a major effort to make it work for all time zones and bidding area’s. So be patient if you also would like to have that 😘

---

<div class="post-metadata">

**Author:** ![Nitramevo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nitramevo/32/17475_2.png) [@Nitramevo](https://community.homey.app/u/Nitramevo)\
**Post date:** [September 11, 2022, 4:17pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/835 "2022-09-11T16:17:19Z")

</div>

I just started using PBTH and have a similar problem with negative KWh. How did you fix this? I am using Frient plugs to measure power.

---

<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 12, 2022, 3:02pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/836 "2022-09-12T15:02:26Z")

</div>

> [@Nitramevo](#):
>
> problem with negative KWh

If your plug is not delivering back to the grid, then a negative kWh in PBTH suggests your plug is (randomly?) resetting its kWh to 0. Try setting this option in PBTH advanced settings.

---

<div class="post-metadata">

**Author:** ![Nitramevo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nitramevo/32/17475_2.png) [@Nitramevo](https://community.homey.app/u/Nitramevo)\
**Post date:** [September 12, 2022, 3:26pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/837 "2022-09-12T15:26:42Z")

</div>

Which option in the PBTH advanced settings is it?  
‘has daily reset’ = yes (now it is ‘no’)

---

<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 13, 2022, 10:28am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/838 "2022-09-13T10:28:54Z")

</div>

New version 4.6.0 is ready for testing.

- Added Nordpool as backup source for DAP.
- Fixed bug in ENTSOE DAP Germany/Luxembourg.
- Fixed bug in DAP GB.
- Removed non-working DAP SE\_Sweden\_SvK

This version has a major upgrade under the hood 😓. I now also check Nordpool for price data in case ENTSO-E has less or no data available. See this map for area’s that Nordpool supports: [Day-ahead overview | Nord Pool](https://www.nordpoolgroup.com/en/maps/#/nordic)

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 3:44pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/839 "2022-09-13T15:44:49Z")

</div>

I’m using PBTH already for some time and I’m a big fan but recently my 1 phase power meter got swapped for a 3 phase one and I’m getting weird readings. My Youless is running the latest sw and the readings per phase are fine, also energy readings look fine. However my PBTH app shows negative numbers when the should be positive and positive when my solar panels are providing energy. I’ve tried a reinstall, setting the nummers correct but the readings are incorrect. Also the preset reading is not correct. Any idea what is going wrong?

---

<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 13, 2022, 3:49pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/840 "2022-09-13T15:49:53Z")

</div>

Can you share screenshots of Insights graph of a day that is working incorrectly? Show the youless watts and total kWh, and the corresponding PBTH kWh of this\_hour.

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 3:55pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/841 "2022-09-13T15:55:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99cb7d91de7e09e691d0eff276328f8cc0c8b032.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/4109e28ae381886324a6a4f523d1c8ee9b9eccff.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:** [September 13, 2022, 4:27pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/842 "2022-09-13T16:27:16Z")

</div>

Thx. But actuallly I meant the Insights graphs 😜

From above snapshots I cannot see much wrong by the way, other then that it is a brandnew meter and the ‘this year/month start’ seems to be set to to around -30kWh ( a negative number) in PBTH. Can you check what the advanced settings are in PBTH? Did you indeed set a negative number there?

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 4:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/843 "2022-09-13T16:34:44Z")

</div>

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

This one?

---

<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 13, 2022, 4:35pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/844 "2022-09-13T16:35:56Z")

</div>

> [@Gruijter](#):
>
> Show the youless watts and total kWh, and the corresponding PBTH kWh of this\_hour.

^

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 4:36pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/845 "2022-09-13T16:36:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/9253c0c55eb050db0d6ad3a08724f0e41fea280d.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:** [September 13, 2022, 4:38pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/846 "2022-09-13T16:38:10Z")

</div>

Ah I see your problem in the settings. Why did you switch on ‘has daily reset’ ?

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 4:39pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/847 "2022-09-13T16:39:56Z")

</div>

Ehhh no idea… I want to see my usage per day…

---

<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 13, 2022, 4:44pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/848 "2022-09-13T16:44:40Z")

</div>

Usage per hour/day/month/year is what PBTH delivers per default. The advanced setting for ‘source device had daily reset’ is meant for kWh meters that do not deliver a cumulative value. E.g. some solar panel meters reset to 0 every day.  
But for your main smart meter you should not use that. It messes up the values as you have now experienced 😘

---

<div class="post-metadata">

**Author:** ![Jo\_B](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_b/32/9084_2.png) [@Jo\_B](https://community.homey.app/u/Jo_B)\
**Post date:** [September 13, 2022, 4:46pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/849 "2022-09-13T16:46:56Z")

</div>

Thanks for the support… I hope it resolves my issue. I think I must have set it wrong when I reinstalled the app. 🙃

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

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