# \[APP\]\[Pro\] Power by the Hour \[Feature Requests\]

**URL:** <https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740>\
**Category:** Ideas & Suggestions\
**Tags:** app, homey-pro\
**Created:** [October 2, 2022, 9:14am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740 "2022-10-02T09:14:03Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [December 10, 2023, 10:35am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/150 "2023-12-10T10:35:21Z")

</div>

@Gruijter when you have time and taking care of the PBTH app somewhere in the feature, can you look into this feature request regarding the battery device?

Add two parameters and tags to the “best price for (dis-)/charge” flow card.  
Power (Watt) and Lengt of time (hours).

At this moment, the calculation only triggers when time is best to (dis-)charge at maximum power, but as you know efficiency is better at lower powers. At lower power it takes more time to (dis-)charge and often (dis-)charging has to start some hours earlier.

So if parameter power is filled, determine length of time and trigger on right moment for that length of time. Return tag length of time.  
If parameter length of time is filled, determine required power and trigger on right moment for that length of time. Return tag power.

If I had to choose for MVP i would like to have parameter “length of time” and no output tag. This is because I can determine/calculate the required power myself.

---

<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 10, 2023, 10:49am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/151 "2023-12-10T10:49:25Z")

</div>

Yeah, @ErikT already posted a similar feature request. Biggest problem I face is that to support optimal power and/or length, I need to go to a completely different algorithm based on a linear solver. But after spending a lot of time looking for an well maintained NPM module that can handle linear solver problems with binary switches, I have not found one… For python there is a very good one. But Homey doesn’t do python (and neither do I).  
For NodeJS there are some poorly documented half working ones out there, so I’m still looking if I can get one to do what I want.  
Because of the absence of a good and well documented NodeJS module, switching algorithm is a major undertaking. So don’t expect anything soon.

---

<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 10, 2023, 11:07am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/152 "2023-12-10T11:07:51Z")

</div>

Make source capability selectable as requested by @Sharkys :

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1794):
>
> Hi @Gruijter , I wonder if it’s possible to track energy I’m getting from grid and sending to grid. For this case, it’s inverted device, which has following capabilities : capabilities":[“measure\_solar\_power”,“measure\_load”,“measure\_feed\_in”,“measure\_battery\_power”,“measure\_battery\_soc”,“measure\_solar\_dc\_1”,“measure\_solar\_dc\_2”,“status\_inverter\_use\_mode”,“status\_inverter\_run\_mode”,“measure\_export\_limit”,“measure\_generation\_today”,“measure\_temperature\_battery”,“measure\_temperature\_inverter”,“meas…

To be honest I don’t see this happening because it requires significant work and adds complexity to the code. Solution for now is that you create your own virtual device using the GROUPS app or the Advanced Capabilities app, and then use that device in PBTH.

---

<div class="post-metadata">

**Author:** ![ErikT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erikt/32/48046_2.png) [@ErikT](https://community.homey.app/u/ErikT)\
**Post date:** [December 18, 2023, 11:45am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/153 "2023-12-18T11:45:55Z")

</div>

Request, could we incorporate a ‘AND’ to the flow, giving me the option to choose that the 'rate between the lowest and highest has a difference of … ’  
‘De prijs tussen het hoogste en laagste tarief is minimaal … EUR’

---

<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 18, 2023, 11:50am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/154 "2023-12-18T11:50:26Z")

</div>

> [@ErikT](#):
>
> rate between the lowest and highest has a difference of …

You can already do this now using logic cards.

---

<div class="post-metadata">

**Author:** ![ErikT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erikt/32/48046_2.png) [@ErikT](https://community.homey.app/u/ErikT)\
**Post date:** [December 18, 2023, 1:17pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/155 "2023-12-18T13:17:28Z")

</div>

Am I completely overlooking it? Which logic card is it then?

---

<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 18, 2023, 1:38pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/156 "2023-12-18T13:38:35Z")

</div>

![Screenshot_20231218_143747_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa35efbd94a9f1ba69ab198d0e0b202f216c12c6.jpeg)

This one @ErikT

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [December 23, 2023, 8:58am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/157 "2023-12-23T08:58:06Z")

</div>

Hi @Gruijter i have two feature requests:

1. DAP device: add price position of today for current hour as new capability. 1 for lowest price, 24 for highest price. With this you will be able to create logic based on this position, for instance more or less charge/discharge power for battery. I know there is a logic card for “one of the x highest/lowest prices of today”, but then I miss the position.

2. Battery summariser: add the possibility to reset the total charge/discharge energy fields (action card ?). With this I can start from blank when I want to monitor the efficiency of a different charging strategy without having to delete & recreate a battery summariser device (and adding to dashboards etc.). (For the total amount from beginning I have a second battery summariser device).

I would like to hear what you think of these suggestions.

But of course also Happy holidays 🎄 🍾 🎁

---

<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 23, 2023, 6:49pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/158 "2023-12-23T18:49:35Z")

</div>

See here: [[APP][Pro] Power by the Hour: Insights per hour, day, month and year - #1988 by Gruijter](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1988)

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [December 23, 2023, 7:00pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/159 "2023-12-23T19:00:30Z")

</div>

Thx, Christmas is early 🎅

---

<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:** [December 24, 2023, 6:23am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/160 "2023-12-24T06:23:57Z")

</div>

Finnish energy companies have started selling on “Hybrid plans” as fixed price c/kWh plus consumption based flexible part c/kWh.

Monthly flex add-on price is calculated as:

> (A-B) / E = c/kWh
> 
> A = hourly energy consumption (kWh) x hourly market price (c/kWh)  
> B = monthly energy consumption (kWh) x monthly average market price (c/kWh)  
> E = monthly energy consumption (kWh)

The flex part is only calculated at the end of month that will be put on the invoice as a separate line. So there will be one line for each:

- Fixed price consumption
- Flex price consumption
- Energy tax
- VAT
- Monthly service fee

Should be noted the for the current active month the values are always estimates, as the flex price for the invoice is only known at the end of month. Meaning that the actual price for monthly energy can only be accurate for the past month. However having the estimates available helps improve the steering of consumption towards cheeper hours.

**I would like to have for**

Energy DAP device:

- Value for the current rolling (num days of month) average price `Avg. price this month`.
  - This is only a estimate during the month and only valid at the

- Value for the monthly average price of the prev month `Avg. price prev. month`.

Energy summariser

- Energy summariser option to use hybrid plan with flex-addon.
  - `Money this hour/day/month` = (`kWh period` x `fixed c/kWh`) + (`kWh period` x `Avg. price this month`)
  - `Money prev. hour/day` = (`kWh period` x `fixed c/kWh`) + (`kWh period` x `Avg. price this month`)
  - `Money prev. month` = (`kWh period` x `fixed c/kWh`) + (`kWh period` x `Avg. price prev. month`)
  - `Money this year` and `Money prev. year` most likely the way they are now calcutated.

Some details about this also available at [Helen Smart Electricity | Helen](https://www.helen.fi/en/electricity/electricity-products-and-prices/helen-smart-electricity).

---

<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 24, 2023, 10:37am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/161 "2023-12-24T10:37:07Z")

</div>

> [@OH2TH](#):
>
> average price

I looked into adding that before. Not as easy as you would think. DAP currently does not have concepts for ‘new day’ or ‘new month’. It only knows today and tomorrow. So adding this feature requires a major rewrite. But I will put it on the list.

> [@OH2TH](#):
>
> use hybrid plan

This is way too complex to add atm, since the flex tariff is only known in hindsight. Any real-time estimation will not represent the real cost (since that is only known after a month). So for now I will not add this to the list.

---

<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 26, 2023, 11:15pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/162 "2023-12-26T23:15:37Z")

</div>

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1995):
>
> A major new version 6.0.0 has been released as test: [Power by the Hour | Homey](https://homey.app/a/com.gruijter.powerhour/test/) BAT: Completely new ROI strategy flow. BAT: Deprecated old ROI flow card. SUM: Fix paring new devices. I have been working on and off on this version for a few months now. It introduces a completely new way to calculate the best Battery ROI strategy. I had to learn how to model a Linear Programming Solver, and find a solver that I can use with Homey. And I’m really happy I was able to create something that (as far …

Advanced Battery ROI strategy is here to test! ( @ErikT )

---

<div class="post-metadata">

**Author:** ![ErikT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erikt/32/48046_2.png) [@ErikT](https://community.homey.app/u/ErikT)\
**Post date:** [December 27, 2023, 5:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/163 "2023-12-27T17:40:57Z")

</div>

Hi Robin,

Thanks.  
I’m going to test it and give you feedback

---

<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 27, 2023, 5:51pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/164 "2023-12-27T17:51:43Z")

</div>

You can use the new trigger card I created today: [[APP][Pro] Power by the Hour: Insights per hour, day, month and year - #2001 by Gruijter](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2001)

---

<div class="post-metadata">

**Author:** ![CaptainVoni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/captainvoni/32/3549_2.png) [@CaptainVoni](https://community.homey.app/u/CaptainVoni)\
**Post date:** [February 13, 2024, 2:35pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/165 "2024-02-13T14:35:03Z")

</div>

In the settings I can currently specify a fixed and a variable markup. My electricity tariff (aWattar Hourly) includes another component: a variable markup based on the absolute value of the price, i.e. negative prices will be treated as positive for this markup.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d829d5a7e5e23788a0828500ecb240f2f3b01eae.png)

Would it be possible to include such markup in the settings?

---

<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:** [February 24, 2024, 7:27pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/166 "2024-02-24T19:27:57Z")

</div>

> [@OH2TH](#):
>
> Energy DAP device:
> 
> - Value for the current rolling (num days of month) average price `Avg. price this month`.
> - This is only a estimate during the month and only valid at the
> 
> - Value for the monthly average price of the prev month `Avg. price prev. month`.

Added to new version 6.3.0. Please test and let me know 🙂

---

<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:** [February 24, 2024, 7:28pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/167 "2024-02-24T19:28:38Z")

</div>

> [@CaptainVoni](#):
>
> variable markup based on the absolute value of the price

Added to new version 6.3.0. Please test and let me know 🙂

---

<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:** [May 2, 2024, 2:30pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/168 "2024-05-02T14:30:47Z")

</div>

Energy DAP device:

- A setting for the minimum price charged by the energy company regardless the market price.

So that Actual Tariff pushed to the update group will use the floor value plus any markups defined.  
Our energy company will always a minimum + margin when the price too low for them.

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [June 8, 2024, 11:27am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/169 "2024-06-08T11:27:55Z")

</div>

**Feature request**

Current situation and usecase:  
I want to charge my car at the cheapest hours, within the hours until the car is needed.  
But if the tariff differs only €0,01 per kWh, I rather have the car fully charged earlier. At the moment this is not possible, because the “Lowest price today/next 8h”-tag is not accurate enough to be included in logic-cards.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/398f02227a13f01d98d3490ae4a1e372e9da4e69.png)

Wish:  
It would be very nice to have a separate tag, in which I can set the period by a flow card.  
For example:  
Then-card: set period → 13 hours  
A tag “Lowest price for next 13 hours” will be available. (or named “custom period”, or whatever works).

[Previous page](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740.md?page=7)

[Next page](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740.md?page=9)
