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

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [August 30, 2022, 6:17am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/810 "2022-08-30T06:17:02Z")

</div>

Thank you 😀, also maybe some of those “prev” are not so useful, eg. prev day, prev hour - not sure I would ever use them (as insight - but who knows). Just FYI - I was just trying to take a look on this year kWh consumption and calculate/estimate this year full consumption taking “winter” month consumption into account (I have only Feb for Jan as prev) and I found out I can’t actually.

Btw, maybe the full year estimate based on average consumption from seasons, might be something some people would be looking for, including estimated bill… I’m not sure if that wasn’t idea some time ago. Just thinking out loud …

---

<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:** [August 30, 2022, 12:48pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/811 "2022-08-30T12:48:17Z")

</div>

@TR1000: Many Thanks for your kind donation! much appreciated 🍻  
Your feature request will be added to the next release 😉

---

<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:** [August 30, 2022, 1:16pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/812 "2022-08-30T13:16:50Z")

</div>

> [@mortyDK](#):
>
> so i need to send myself a push notification, with the cheapest hour between this evening and the following night.

See this link. You can send yourself all prices of today or tomorrow as soon as they are reveived by Homey

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/20535/746):
>
> New version 4.5.1 is ready for testing [Power by the Hour | Homey](https://homey.app/a/com.gruijter.powerhour/test/) Fixed currency setting for active tariff. Added AND flow cards. Added WHEN flow card for New Prices received.@Ton_van_Rijnsoever @Mike1233 Can you check the currency symbol for Active Tariff? It should automatically migrate. @MatsHansen: Can you test the new AND cards X% cheaper/expensive than average ? @ralfvd @Thomas_Olsen I created a new WHEN card that might be helpful for you. It gives you a token card when new prices are…

---

<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:** [August 31, 2022, 9:26am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/813 "2022-08-31T09:26:45Z")

</div>

@Peter_Johnsson Many Thx for your kind donation! 🍻

---

<div class="post-metadata">

**Author:** ![Peter\_Johnsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_johnsson/32/563_2.png) [@Peter\_Johnsson](https://community.homey.app/u/Peter_Johnsson)\
**Post date:** [August 31, 2022, 10:49am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/814 "2022-08-31T10:49:09Z")

</div>

You deserve it!

//Peter

---

<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:** [August 31, 2022, 12:34pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/815 "2022-08-31T12:34:20Z")

</div>

v4.5.3 is available for testing:

- Added Insights for multiple capabilities.
- Added option to set kWh/m3 decimals.
- Improved new prices detection and debug logging.
- homey-api@1.7.4

---

<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 1, 2022, 9:49am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/816 "2022-09-01T09:49:47Z")

</div>

@OysteinEn Could you install test version 4.5.3 and create another app diagnostics reports when you notice a price deviation again? I added additional logging to figure out what is going on there.

---

<div class="post-metadata">

**Author:** ![OysteinEn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oysteinen/32/48814_2.png) [@OysteinEn](https://community.homey.app/u/OysteinEn)\
**Post date:** [September 1, 2022, 10:30am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/817 "2022-09-01T10:30:29Z")

</div>

@Gruijter Thanks, I have just installed and will let you know when/if a new significant deviation occurs

---

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

</div>

v4.5.4 was just released as test version.

- Improved fetching new prices and detection after day change.

---

<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 3, 2022, 8:02am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/819 "2022-09-03T08:02:51Z")

</div>

v4.5.5 is ready for testing

- Improved fetching new prices and detection after day change.
- Improved DAP fetch randomization.
- Removed invalid DAP bidding areas.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [September 4, 2022, 1:31pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/820 "2022-09-04T13:31:29Z")

</div>

Hi Robin, the energy prices during the day’n’night now makes it very challenging to work out flows to concider all scenarioes. in my case, I have great flows to heat water at night, but right now the prices at night are insane, and I do not have flowcards to pick this up. So, what can we work out? Obviousely we need to be able to have variables for all hours between 1300 to 1300 following day, and then a card to pick the x lowest hours the next 24 hrs. What do you think?

---

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

</div>

Hi Kai, see my previous respond to the same topic: [[APP][Pro] Power by the Hour: Insights per hour, day, month and year - #726 by Gruijter](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/726)

---

<div class="post-metadata">

**Author:** ![Snood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/snood/32/12502_2.png) [@Snood](https://community.homey.app/u/Snood)\
**Post date:** [September 6, 2022, 6:46pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/822 "2022-09-06T18:46:35Z")

</div>

I have been testing this for a few weeks now and it’s working great. Thanks!!

One thing that I would like to be able to do with it, is to identify when the cheapest consecutive x hours are. “The price becomes lowest x hours in the period hours before time”… This would allow me to schedule something like the dishwasher at the true cheapest part of the night. If i was to use the cheapest single hour as a trigger, but it runs for two hours, then I would not necesserily get the best price. likewise, if I use “The price becomes one of number lowest in the period hours before time” then this does not guarantee that the two cheapest hours are next to eachother.

example:

23:00-00:00 - €2  
00:00-01:00 - €5  
01:00-02:00 - €3  
02:00-03-00 - €1  
03:00-04:00 - €6

Here, as far as I can work out, withthe triggers available and a 2 hour load at 1kw contant, the price paid would be €7. because the cheapest hour trigger would cause consumption also in the most expensive hour of the example. Likewise, if i was to trigger on the cheapest two hours… well, that’s not how dishwashers work, you can’t just pause like that, but it would presumable trigger on the €2 price, also resulting in a €7 cost.  
The actual cheapest consecutive 2 hours would cost €4 starting at 01:00

I hope i expressed my wish clearly. I also understand that perhaps I missed something and there is already a way to achieve this.

---

<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 6, 2022, 7:13pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/823 "2022-09-06T19:13:24Z")

</div>

Your use case is what I use myself and have already implemented. The trigger card is called ‘avg price next hours becomes lowest’. It calculates the best consecutive hours. You can choose the best hours for today or for the next 8 hours.

 ![Screenshot_20220906-210707_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/7352494f55757ff1ff4a6f8d12ff014884515412.jpeg)

When selecting the next 8 hours it will be a rolling condition. This means that when prices keep going down it will never be triggered. So I might also implement the same function but with a finite end time.

---

<div class="post-metadata">

**Author:** ![Snood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/snood/32/12502_2.png) [@Snood](https://community.homey.app/u/Snood)\
**Post date:** [September 7, 2022, 6:29am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/824 "2022-09-07T06:29:24Z")

</div>

> [@Gruijter](#):
>
> When selecting the next 8 hours it will be a rolling condition. This means that when prices keep going down it will never be triggered. So I might also implement the same function but with a finite end time.

Ahh perfect! Yes this is exactly what i’m asking for! I think for most situations it will work out well enough as implemented. But yes, I see that a finite time could be useful for when something must be done by a certain time at the latest.

---

<div class="post-metadata">

**Author:** ![Peter\_Ta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_ta/32/59108_2.png) [@Peter\_Ta](https://community.homey.app/u/Peter_Ta)\
**Post date:** [September 7, 2022, 8:41pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/825 "2022-09-07T20:41:44Z")

</div>

Hi, very nice app.  
But a question. There is trigger cards for lowest prices for to day and lowest prices before a time. I’m missing same function for the highest prices. I would like to make a flow that change the start temperature for my warm water heater to 30 degrees C for de 16 most expensive hours.  
I have worked it around with the trigger, changed price and used the and funktion for the most expensive hours. But then the flow will send a command every our to my heater and I wish it didn’t.  
//Peter

---

<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, 2022, 8:56pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/826 "2022-09-07T20:56:19Z")

</div>

Hi @Peter_Ta  
Thx for the feedback. There is a trigger card for price x% higher than average. You could use that.

But I agree that flow cards for high prices are not represented enough. I will add it to a next release (when I dont forget 😵)

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [September 9, 2022, 7:46am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/827 "2022-09-09T07:46:46Z")

</div>

Trying to keep a track of energy consumption and grid energy.

I have created a PBTH device from the Battery Management System.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6db57c686b60aa5cbeab7914798afe40ac87f96b.jpeg)

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

But I cannot work out how to get PBTH to use Grid or Consumption, I can’t tell what it is using right now.

Given these reading are from an inline meter before the main consumer unit, but after smart meter, they are authorative readings.

I would like to get a summary of daily Consumption and daily Grid so I can track usage and costs.

Any pointers would be appreciated

---

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

</div>

What app are you using for the BMS? It has multiple Watt meters. PBTH will use the meter that is called `measure_power` in the source code. So maybe the 0.0287 already corresponds to either consumption or grid.

In any case, if you want to track multiple Watt meters from the same BMS device, you need to make a virtual devices from each of the single values you want to track. You can probably use the GROUP app for that. You then start summarizing that virtual device with PBTH.

---

<div class="post-metadata">

**Author:** ![Busta999](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/busta999/32/10053_2.png) [@Busta999](https://community.homey.app/u/Busta999)\
**Post date:** [September 9, 2022, 10:43am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/829 "2022-09-09T10:43:41Z")

</div>

Thanks

Victron Multiplus/Cerbo GX BMS

I’ll search forum for creation of virtual devices.

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

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