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

<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:** [November 10, 2021, 3:18am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/387 "2021-11-10T03:18:39Z")

</div>

Since firmware 5 Athom thought it wise to change the time that apps see to UTC. So that is probably why.

---

<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:** [November 10, 2021, 6:44am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/388 "2021-11-10T06:44:23Z")

</div>

Mmh yes… I will check it out. Again a problem that is making the app logic complicated.

Thx for staying up this late and reporting 🥱

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [November 10, 2021, 12:29pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/389 "2021-11-10T12:29:17Z")

</div>

Thank you.  
Just discovered another thing. Could be relevant. I have set up loging from your app, using the Simple Log app. And funny thing. When I export the log, the time-stamps seem to adjust an hour back.  
So I tried to log kwh prev. day at 00:00. And when i export the log the timestamp changes to 23:00.

---

<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:** [November 11, 2021, 5:31pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/390 "2021-11-11T17:31:12Z")

</div>

I just uploaded a new version 3.1.0 of the app.

- Fixed time zone offset.
- Updated driver/device/capability icons.

---

<div class="post-metadata">

**Author:** ![mroek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mroek/32/38044_2.png) [@mroek](https://community.homey.app/u/mroek)\
**Post date:** [November 25, 2021, 12:28am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/391 "2021-11-25T00:28:38Z")

</div>

I know that this app does not support devices without a meter\_power capability, and unfortunately quite a few devices can measure power, but lacks the accumulation feature.

Are there any apps that can create a virtual device that can take power measurements from such a device and accumulate to a meter\_power property which can be used by PBTH?

It would not be as good as a device which logs and stores this internally, but it might still be good enough for some purposes. It would basically have to trigger at every received power measurement, and create a timestamp. When the next measurement is received, it could calculate and aggregate the energy by looking at the time difference between the measurements and the value. I know something like this is available for Home Assistant:

> **[Utility Meter](https://www.home-assistant.io/integrations/utility_meter/)**
>
> Instructions on how to integrate the Utility Meter into Home Assistant.

This uses the Riemann sum, which gives a better approximation than the simplest approach outlined above.

@Gruijter I understand that you are not interested in adding such functionality into PBTH natively, right?

---

<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:** [November 25, 2021, 12:30pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/392 "2021-11-25T12:30:15Z")

</div>

> [@mroek](#):
>
> I understand that you are not interested in adding such functionality into PBTH natively, right?

Adding a virtual device that uses measure\_power (watts, not kWh) would theoretically be possible. But it would always be ‘handicapped’ since the kWh would be estimated from the actual power usage. Over time this will always lead to a significant offset of the kWh meter.

It definitely does not have any priority with me because it would extend the scope of my app. Maybe next year if I have spare time left. But in the mean time anyone is welcome to add a driver via a Github pull request.

---

<div class="post-metadata">

**Author:** ![mroek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mroek/32/38044_2.png) [@mroek](https://community.homey.app/u/mroek)\
**Post date:** [November 25, 2021, 1:35pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/393 "2021-11-25T13:35:54Z")

</div>

I agree it would be less accurate, but it would still be useful, I think.

I have just started with Homey, and I don’t really know Javascript or Node.js, but I do work with programming, so if I am able to do this myself, I might try. I wonder if something like this could be achieved with homeyscript, at least as an experiment. Having a proper driver would of course be much better.

---

<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:** [December 4, 2021, 12:32pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/394 "2021-12-04T12:32:43Z")

</div>

Unfortunately this week some errors, send a report:

b614d916-0cfe-4db5-a51e-b39859c125a7

---

<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:** [December 4, 2021, 7:32pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/395 "2021-12-04T19:32:16Z")

</div>

the log states the origin device is missing. So try resetting that device. And did you already try rebooting Homey?

---

<div class="post-metadata">

**Author:** ![norenz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/norenz/32/16887_2.png) [@norenz](https://community.homey.app/u/norenz)\
**Post date:** [December 5, 2021, 8:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/396 "2021-12-05T20:14:20Z")

</div>

How does this app integrate with Tibber? Can’t see any options regarding Tibber.

---

<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:** [December 5, 2021, 8:18pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/397 "2021-12-05T20:18:41Z")

</div>

Looking at the app code on github it should work with pulse.

---

<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:** [December 9, 2021, 2:57pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/398 "2021-12-09T14:57:29Z")

</div>

Hi Robin,

I checked that, I almost every day have to restart the app, the source app is yours also 🙂

And this situation occured since the major update of the source app.

Warm regards Wout

---

<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:** [December 9, 2021, 4:55pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/399 "2021-12-09T16:55:27Z")

</div>

I use the same configuration myself but cannot replicate the issue. Do you have bad network connection with the LS120 or with Homey maybe?

---

<div class="post-metadata">

**Author:** ![Petter\_G](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/petter_g/32/16714_2.png) [@Petter\_G](https://community.homey.app/u/Petter_G)\
**Post date:** [December 15, 2021, 12:53pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/400 "2021-12-15T12:53:52Z")

</div>

works with Tibber

---

<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:** [December 16, 2021, 4:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/401 "2021-12-16T16:40:35Z")

</div>

Just released as stable version 3.2.0:

- Fixed missing source watchdog.
- Faster recovery after source device available again.
- athom-api@3.7.1.

This should fix the unavailable devices after a Homey boot (But please do have patience, it can take up to an hour after Homey reboots)

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [December 20, 2021, 3:51pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/402 "2021-12-20T15:51:58Z")

</div>

First q; Is there a way to see when I have created the PBTH device?

Second; And the PBTH device bases it values on the device mirrored. I’m using ‘shelly’ devices for both my dryer as for my washing machine.

Apparently, and I 've never noticed this before, it resets it’s value.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/1414929ee1539ad18ad8cec62267cf4f98b3beac.png)

I honestly wouldn’t know based on what it resets. Maybe FW update. Is there a way to tackle this? I wanted to check how much my dryer costs per year, but the year value was nearly the same as the month so I noticed 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:** [December 20, 2021, 6:33pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/403 "2021-12-20T18:33:20Z")

</div>

> [@Martijn\_Hoogenbosch](#):
>
> see when I have created the PBTH device

Look at when the insights start

> [@Martijn\_Hoogenbosch](#):
>
> Is there a way to tackle this?

If the Shelly device resets its meter\_power, the dev of the Shelly app may have a solution for you. For now you could manually trace back from Insights how much the dishwasher used last year.

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [December 21, 2021, 6:18am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/404 "2021-12-21T06:18:31Z")

</div>

I have had the PBTH app from the start and noticed that the measurements halted somewhere around august-september, but haven’t noticed it before.

I added the PBTH devices again.

I also removed the app and installed it again.

I have made a PBTH device from my household electric inlet measurement. The PBTH device shows the readings correctly when I set the Update inverval into 0, but it loads the system quite heavily, because the shelly 3EM meter is eager to report it’s energy measurement quite often. When I change the Update interval into something else the PBTH device doesn’'t update anymore. (Tried 1min and 5min)

Does anyone have the same problem? Is the update interval working correctly or what could be the problem.

Homey Pro 7.2.1  
PBTH 3.2.0

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [December 22, 2021, 7:01pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/405 "2021-12-22T19:01:41Z")

</div>

Insights does indeed give a date. Don’t know if it is representable though. for the device itself is, but for the PBTH device it isn’t. That gives a value if it starts consuming. Reason I’m asking is because it seems to reset it self when the Shelly device meter\_power resets. I’ll post in the Shelly thread, thanks.

* * *

Indeed get’s reset as you suspected: [Keep power meter values as they reset when power is lost to the shelly device · Issue #102 · jghaanstra/cloud.shelly · GitHub](https://github.com/jghaanstra/cloud.shelly/issues/102)

---

<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:** [January 18, 2022, 4:29pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/406 "2022-01-18T16:29:03Z")

</div>

New test version 3.3.0 is available

- Skip checking source device ready on restart.
- Replace athom-api with homey-api@1.5.0

Replacing the recently deprecated athom-api with the new homey-api is a risky step. I hope Athom has ironed out all bugs. But then again, it might be a stability improvement for those users that had problems with PBTH devices not starting properly after a Homey boot.

When testing, please let us know how 3.3.0 is holding up for you: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

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

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