# \[APP\]\[Pro\] Power by the Hour - your own Energy Management System on Homey: it measures, predicts, plans and controls

**URL:** <https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [November 10, 2019, 10:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535 "2019-11-10T22:06:03Z")\
**Posts on this page:** 20\
**Page:** 204

<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, 2026, 1:03pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4138 "2026-11-10T13:03:15Z")

</div>

New version 9.0.1 is ready as test:

> **[Power by the Hour | Homey](https://homey.app/en-us/app/com.gruijter.powerhour/test/)**
>
> Your own energy management system: smart home battery, EV charging and appliances on prices and solar.

- Smarter battery and EV planning
- Battery wear spread evenly
- Immediate replan on mode change
- Fix battery calibration
- Clear error when an EV goal cannot be reached
- Better EV override detection
- Improved price migration
- Settings shown read-only, easier setup and repair
- Fast-xml-parser @5.12.0

---

<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, 2026, 1:07pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4139 "2026-11-10T13:07:34Z")

</div>

Thanks, then it isn’t calibration. This is how v9 works: in a group it uses the battery that is cheapest per kWh cycled first (wear and losses), and of equally cheap ones the least used. With its 87 % round trip that is probably L4, so it discharges first and charges first. The other Sessys take over once it’s at its reserve. Force save up only charges from solar surplus, which is low now, so L4 stays at 10 %. As soon as Smart plans a charge, L4 is filled first again.

Report back when you see that after a week L4 is still never used. Post a app diagnostics report two minutes after doing an app restart.

---

<div class="post-metadata">

**Author:** ![Bjorn\_Schalks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjorn_schalks/32/62546_2.png) [@Bjorn\_Schalks](https://community.homey.app/u/Bjorn_Schalks)\
**Post date:** [November 10, 2026, 5:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4140 "2026-11-10T17:52:03Z")

</div>

It seems he is counting correctly now.  
Perhaps he needed a day for this.

---

<div class="post-metadata">

**Author:** ![Bjorn\_Schalks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjorn_schalks/32/62546_2.png) [@Bjorn\_Schalks](https://community.homey.app/u/Bjorn_Schalks)\
**Post date:** [November 10, 2026, 5:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4141 "2026-11-10T17:52:54Z")

</div>

Would be very nice to see some Widgets in the app.

😉

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [November 10, 2026, 5:58pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4142 "2026-11-10T17:58:12Z")

</div>

No, not yet, but I also didn’t really look into it. It wasn’t actually steering anything it was just for logging purposes.

(It was the card that checked if the hour was in the cheapest/most expensive in the next xH Hours, I had it writing to the timeline.)

---

<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, 2026, 6:10pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4143 "2026-11-10T18:10:29Z")

</div>

> [@Bjorn\_Schalks](#):
>
> Would be very nice to see some Widgets in the app.

I’m thinking about it. It is not a priority though. And secondly I think there are already some other apps doing energy dashboards. So I might not implement any, especially because the PbtH app is running into Homey resource limits already.

---

<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, 2026, 10:18am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4144 "2026-11-11T10:18:18Z")

</div>

v9.0.2 is ready for testing:

> **[Power by the Hour | Homey](https://homey.app/en-us/app/com.gruijter.powerhour/test/)**
>
> Your own energy management system: smart home battery, EV charging and appliances on prices and solar.

- Fix EV charger not getting grid power
- Fix Charge now without prices
- Shorter battery pairing
- EV charge modes merged to four
- Lighter energy polling
- Clearer texts

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 11, 2026, 11:15am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4145 "2026-11-11T11:15:02Z")

</div>

Energy price in v9.0.x device, there is no setting for a minimum spot price for import, only export.

In Finland import market price may be negative, but energy seller will not go below zero and will charge their margin and VAT on that margin.  
The minimum price for import would be useful. I currently have a exception flow doing that to override price when market price is below zero.

Update:

This covers the flooring of market price to zero also:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/2/c2819a3792a7721dd7b71896665fb0306c213ca6.png)

---

<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, 2026, 12:10pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4146 "2026-11-11T12:10:04Z")

</div>

great solution! In next version there will be a tick-box so you can remove the formula

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 11, 2026, 12:27pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4147 "2026-11-11T12:27:05Z")

</div>

![Screenshot 2026-11-11 at 14.32.52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/9/b90c6fadb12d55fc03d6604c4c3e94035cf43636.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f65725a6dd3ea6abdb0e5439e906df5f641764d4.png)

Would it be possible to add Highest Price and Lowest Price in addition to the Average Price tokens for tha block?

I’m actually looking for any slots that will give me the optimal charging price from “now or start time” until 06:00 where I know that a total of 6 hours is need to charge and it doesn’t need to be a continuous 6 hour window, it may spread a long a longer period of time.

---

<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, 2026, 8:38pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4148 "2026-11-11T20:38:36Z")

</div>

Use the “cheapest” (or highest) card instead of the “block” card:

**WHEN** _A new price period started_  
**AND** _The price is one of the cheapest 6 hours between 18:00 and 06:00_  
**THEN** charge on  
**ELSE** charge off

The 6 hours don’t have to be consecutive. It also works across midnight.

Set the first time to when the car is normally plugged in. The card always ranks the whole window, so hours that have already passed still count.

Will this not work for you?

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [November 12, 2026, 8:07am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4149 "2026-11-12T08:07:19Z")

</div>

How would this example work when you have the Energy Price Device setup for 15 minutes? Would it evaluate the next 4 quarters at the start of the new price period, or would it calculate withing the current running hour?

Or should we always match the Energy Price Device period (length) with the period (length) we want to evaluate against? (I really don’t want to stop and start my charger at a quarter interval)

---

<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 12, 2026, 9:31am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4150 "2026-11-12T09:31:34Z")

</div>

> [@DaneedeKruyff](#):
>
> should we always match the Energy Price Device period (length) with the period (length) we want to evaluate against?

Yes that.

But when you have a 15 minute contract, you can still add a second price device with 1hr prices. The 1hr prices always average the 15m prices.

Or use the block cards, that do averaging for you.

So multiple ways of averaging prices.

Oh, and by the way: the new EV charger driver can do smart planning based on your driving profile. Today might be cheap (weekends mostly), so I want to charge extra. Or today might be expensive, so I dont want to charge more than the absolute minimum I need for my next trip. I use the EV driver myself 😉

But is your question because in v8 you could do something you cannot do in v9 anymore?

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 12, 2026, 10:34am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4151 "2026-11-12T10:34:35Z")

</div>

Not quite, I’m seeking to find the the maximum prices that is need to get a total of X time of charging. This price limit is sent to the EV charger as a setting and the charger takes care of the rest. This keeps the charger independent of Homey and will still allow flexibility.

I’m now evaluating this with a HomeyScript.

---

<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 12, 2026, 11:02am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4152 "2026-11-12T11:02:20Z")

</div>

Ah ok. This might be an edge case for PbtH. One of the goals of v9 is to make it more accessible for ‘ordinary’ homey users. Adding your edge case would complicate things, which I do not want.

I will have another look at it though, and see if I can add it somehow (maybe in the ev driver?)

What brand EV charger do you have, and what app do you use for that?

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [November 12, 2026, 11:18am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4153 "2026-11-12T11:18:52Z")

</div>

[Go-e | Homey](https://homey.app/a/com.go-e/)

And I’m the developer for that. It’s flexible price mode expects a price limit.

Something like the block card does now, but instead of consecutive allow breaks.

---

<div class="post-metadata">

**Author:** ![Marcel\_R](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_r/32/47933_2.png) [@Marcel\_R](https://community.homey.app/u/Marcel_R)\
**Post date:** [November 12, 2026, 8:15pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4154 "2026-11-12T20:15:59Z")

</div>

I’m a little confused and just noticed there is a major update V9 active + installed. I don’t check this forum daily, so I wasn’t aware until I wanted to create a new flow and couldn’t find triggers I used before (e.g. ‘When new prices arrived’ was gone).  
I now understand that I have to replace all the devices by V9 devices. Correct?  
As I have a lot of flows using the PbtH cards, it takes a lot of time. Which I don’t have right now. So , I installed the production version again (replacing the test version). But now, I get several warnings, like:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1b446299c7b9ed06da1960d4f8cc510edecc13d1.png)  
To test, I had ‘updated’ (replaced) the 1 hour power tariffs device and then realised the amount of work to change all the flows. After installing the production version again, the new V9 1 hour power device was unavailable (I understand), so I removed. But the old one tells me it’s replaced by a device that no longer exists. So, I worry…

- Are the stable version devices and flow cards still working (despite the error messages I get)?
- For the future: once the V9 version is stable (and will replace the actual stable version), will it be necessary to replace all devices and rebuild all the flows using it?
- I hope there will be a better, more active, way (facilitated by Athom) to inform about impactful changes besides visiting the forum frequently.

---

<div class="post-metadata">

**Author:** ![Marcel\_R](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_r/32/47933_2.png) [@Marcel\_R](https://community.homey.app/u/Marcel_R)\
**Post date:** [November 12, 2026, 8:36pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4155 "2026-11-12T20:36:12Z")

</div>

Another issue in the stable(!) version:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48b8a8cf5ec24c5b7852980b40d8658cc4eaeefe.png)  
The tariffs shown in the newly(!) created gas device, are the tariffs of electricity?!  
(I noticed this in the existing device already, so I created a new one, but result is same).

---

<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 12, 2026, 8:36pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4156 "2026-11-12T20:36:13Z")

</div>

The v9 test upgrade would not immediately break existing devices or flows. It just warns you actively to migrate your devices and flows.

See this post: [[APP][Pro] Power by the Hour - your own Energy Management System on Homey: it measures, predicts, plans and controls - #4108 by Gruijter](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4108)

But since you reinstalled the older version again and made changes to devices, I’m not sure what state your installation is in right now. If it works it works…

---

<div class="post-metadata">

**Author:** ![Marcel\_R](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_r/32/47933_2.png) [@Marcel\_R](https://community.homey.app/u/Marcel_R)\
**Post date:** [November 13, 2026, 10:03am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535/4157 "2026-11-13T10:03:55Z")

</div>

> [@Gruijter](#):
>
> But since you reinstalled the older version again and made changes to devices, I’m not sure what state your installation is in right now. If it works it works…

What do you advise: update to 9.x again, create new devices and update all flows? As in 8.x (see my previous post about gas-prices) I see several strange behaviours now. What’s the best approach (steps) to get PbtH ‘stable’ again?

Improvement(?):  
I’ve not checked in V9 (maybe it’s already there), but it could be useful for charging cars to have a flow card that selects the cheapest blocks (of quarters/hours) to charge, not starting at clock hours (10, 11, 12, etc.). For the car switching charging on and off every 15 minutes by selecting the cheapest quarters purely is not recommended. So, I use ‘every hour’. Disadvantage is that only clock hours are considered (so, for example, the car starts charging at 13 hrs and stops at 14 hrs). While the cheapest hour (lowest average of 4 quarters) can be from 13.30 hrs to 14.30 hrs. So, the optimum in this ‘1 hour charging example’ is reached when the car starts at 13.30 hours for 1 hour charge period instead of 13.00 hrs. The card:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6feaca0fc3fda3fe42bacfaa6612e10fa6ecf824.png)  
… could be extended/changed to something like ‘The price is one of [number] blocks of lowest [x quarters] until [time]’. For example, when settings are ‘The price is one of 3 blocks of lowest 4 quarters until 16.15’, this means that all possible blocks of 4 quarters (= 1 hr) until 16.15 hr are ranked and the 3 lowest (not overlapping) ranks (total of 3 x 4 quarters = 3 hours) until 16.15 hr the condition card output will be positive.  
Is this possible/feasible (and clear what I mean?) or already implemented in V9?

[Previous page](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535.md?page=203)

[Next page](https://community.homey.app/t/app-pro-power-by-the-hour-your-own-energy-management-system-on-homey-it-measures-predicts-plans-and-controls/20535.md?page=205)
