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

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [June 30, 2023, 11:36am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/130 "2023-06-30T11:36:10Z")

</div>

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

measure\_power.battery is power (+) chargin (-)discharging  
battery\_capacity is state of charge

---

<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:** [June 30, 2023, 11:48am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/131 "2023-06-30T11:48:07Z")

</div>

> [@Daniel\_S](#):
>
> measure\_power.battery is power (+) chargin (-)discharging  
> battery\_capacity is state of charge

Good, but I already implemented that in v5.6.5:  
// Victron  
soc: ‘battery\_capacity’  
usagePower: ‘measure\_power.battery’

So why doesn’t it work for you? When adding a PBTH battery device it should find your Victron, unless you already added it in PBTH.

Edit: never mind. I found it 😖 I need to add ‘measure\_power.battery’ somewhere else in the code too…  
Fixed in v5.6.6 (already live in the app store)

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [June 30, 2023, 1:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/132 "2023-06-30T13:14:08Z")

</div>

Tested now on 5.6.6 and battery via Victron Cerbo is working. Thanks a lot. I just have negative number for charging the battery. Which is positive in Cerbo when charging the battery

---

<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:** [July 5, 2023, 3:18pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/133 "2023-07-05T15:18:07Z")

</div>

Conclusion after testing over two weeks: it works! Thanks!

---

<div class="post-metadata">

**Author:** ![Patric\_Hedin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_hedin/32/56421_2.png) [@Patric\_Hedin](https://community.homey.app/u/Patric_Hedin)\
**Post date:** [July 12, 2023, 1:56pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/134 "2023-07-12T13:56:03Z")

</div>

Would like to request the possibility to retrieve todays/tomorrows prices as JSON (same as what the WHEN-cards return).  
Thanks for a great app 🙂

---

<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 4, 2023, 2:10pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/135 "2023-08-04T14:10:04Z")

</div>

> [@Patric\_Hedin](#):
>
> Would like to request the possibility to retrieve todays/tomorrows prices as JSON (same as what the WHEN-cards return).

This is added in app version 5.6.9. It is a THEN card that provides the Tag. This is only available in advanced flows, not in simple flows.

Please test and let me know: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

---

<div class="post-metadata">

**Author:** ![Riks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/riks/32/18115_2.png) [@Riks](https://community.homey.app/u/Riks)\
**Post date:** [August 21, 2023, 9:50am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/136 "2023-08-21T09:50:09Z")

</div>

New IF-Card proposal…

What I miss is an IF-Card ( or AND-Card ) with “De prijs is een van de … laagste in de komende bekende uren **voor … uur** ” !

This would make it possible to load the battery of my car starting somewhere in the afternoon (\>13:00) and have it at 100% de next morning let say at 08:00… The available cards have a scope of TODAY ( ignoring possible low hours between midnight and 08:00 ) or MAX-12 HOURS BEFORE 08:00 ( ignoring low hours between 13:00 and 20:00 ) or ALL KNOWN HOURS ( focus on low-prices of tomorrow afternoon, leaving my battery half filled at 08:00 )…

With this new card it would be possible to have a “all known hours” scope but before a set time ( in my case 08:00 )

> <https://github.com/gruijter/com.gruijter.powerhour/issues/137>
>
> What I miss is an IF-Card ( or AND-Card ) with "De prijs is een van de ... laags…te in de komende bekende uren \*\*voor ... uur\*\*" !
> 
> This would make it possible to load the battery of my car starting somewhere in the afternoon (\>13:00) and have it at 100% de next morning let say at 08:00... The available cards have a scope of TODAY ( ignoring possible low hours between midnight and 08:00 ) or MAX-12 HOURS BEFORE 08:00 ( ignoring low hours between 13:00 and 20:00 ) or ALL KNOWN HOURS ( focus on low-prices of tomorrow afternoon, leaving my battery half filled at 08:00 )...   
> 
> With this new card it would be possible to have a "all known hours" scope but before a set time ( in my case 08:00 )

---

<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:** [August 21, 2023, 12:49pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/137 "2023-08-21T12:49:51Z")

</div>

You can also use the “the price is one of the lowest in the next x hours” with a variable calculating how many hours until 8 o’clock.

I use two variables:

Hours till needed (Homey checks iCal and subtracts travel time)  
Remaining charging time (percentage of the car’s battery divided by charging speed)

So to charge at the cheapest hours Homey checks for “one of the (remaining charging time) lowest hours in the next (hours till needed) hours.

 ![IMG_2398](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/efc341d52afa07056be6f9dedbea6daa153ec86e.jpeg)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 21, 2023, 1:07pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/138 "2023-08-21T13:07:56Z")

</div>

No offence, but I think this is a bit too heavy for many app users ?

---

<div class="post-metadata">

**Author:** ![Riks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/riks/32/18115_2.png) [@Riks](https://community.homey.app/u/Riks)\
**Post date:** [August 22, 2023, 6:28pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/139 "2023-08-22T18:28:30Z")

</div>

@TKroon, I already did something like this, and you are right, it’s far better than a just a single IF… but you are still missing out on the cheap hour in the early morning because it’s out of scope in the first hours of the afternoon… So this might load the battery in time, but not in the cheapest way…

To clarify, I calculate the number of ours I need in “laad.uren.fast” and “laad.uren.eco” and the field “auto.vol.uur” moves from 1 to 6 during the afternoon… But this flow has a blindspot from 13:00 until 18:00 for the possible cheap hours in the early morning (will happen in wintertime again 🙂

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/7335838bce34f1b4e9239dad0c3e92a972badcd5.png)

---

<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:** [August 22, 2023, 7:03pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/140 "2023-08-22T19:03:12Z")

</div>

You just can’t know if the price is lower the next morning compared to the afternoon. That’s just a wild guess. You can create your own logic crosschecking weekends and high wind speeds 😉

---

<div class="post-metadata">

**Author:** ![Daniel\_Lofgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_lofgren/32/1075_2.png) [@Daniel\_Lofgren](https://community.homey.app/u/Daniel_Lofgren)\
**Post date:** [September 25, 2023, 5:28pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/141 "2023-09-25T17:28:16Z")

</div>

Wishlist 😉

To add an average price month, probably based on average price each day and then updated once every day.  
Now there is average price day and next day. I would base my tariff on that monthly value.

If anyone else would like to have this then please support this request.

Thanks for a great app.

---

<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 18, 2023, 8:43pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/142 "2023-11-18T20:43:31Z")

</div>

@erlend_oyen : Your request is implemented in new version 5.9.0. can you please test? [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

- Added repairing to a new source device.
- homey-api@3.1.0

You can now repair a summarizer to a new source device, e.g. because you deleted the source device in Homey. Repairing will keep all the Insights and Flows. But if you repair to a physically different source device the kWh meter will most likely jump. In that case you need to manually adjust the meter and money values in the advanced settings.

---

<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:** [November 28, 2023, 8:00am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/143 "2023-11-28T08:00:02Z")

</div>

If I look in the Sessy portal, I see that different powers are applied for both charging and receiving in the Return on Investment.  
See the image.

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

Is it possible this into the flow cards as well?

Another future improvement would be to display in a flow card when the Sessy is charging with what power and discharging with what power.  
Is this achievable?

---

<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 28, 2023, 9:24am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/144 "2023-11-28T09:24:08Z")

</div>

> [@ErikT](#):
>
> to display in a flow card when the Sessy is charging with what power and discharging with what power.

Can you elaborate what you mean by this?

---

<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:** [November 28, 2023, 9:46am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/145 "2023-11-28T09:46:56Z")

</div>

Yes, it is possible to a view in an card for the charging and discharging moments in “power by the hour.”

---

<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 28, 2023, 10:01am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/146 "2023-11-28T10:01:34Z")

</div>

> [@ErikT](#):
>
> to a view in an card

What do you mean exactly? Can you give an example how the flowcard would provide this view?

---

<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:** [November 28, 2023, 11:06am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/147 "2023-11-28T11:06:44Z")

</div>

Combination of this two cards.

Left: the price per hour, represented in bars per hour. Right: loading or unloading speed, represented in a line across different hours.

 ![IMG_6487](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c713d9b95c2efad0c66266e1ae3f660015d23ed1.png)  
 ![IMG_6485](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1aa4628da0a2c61c22e1dacc4c82ec6cabc3bf05.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:** [November 28, 2023, 11:11am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/148 "2023-11-28T11:11:14Z")

</div>

And you would like this image as a tag in a flow card? What you show is not a flow card, but a device tile.

---

<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:** [November 28, 2023, 1:26pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-feature-requests/69740/149 "2023-11-28T13:26:33Z")

</div>

I’m not entirely sure, but I think the flowchart represents the charging and discharging strategy per hour. So, it indicates at which hour to charge/discharge and with how many watts.  
And that, results in a device title.

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

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