# \[APP\]\[Pro\] Power Price

**URL:** <https://community.homey.app/t/app-pro-power-price/121589>\
**Category:** Apps\
**Tags:** app, tools, energy, homey-pro, advancedflow\
**Created:** [November 25, 2024, 10:24am UTC](https://community.homey.app/t/app-pro-power-price/121589 "2024-11-25T10:24:32Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [January 22, 2025, 10:18am UTC](https://community.homey.app/t/app-pro-power-price/121589/61 "2025-01-22T10:18:39Z")

</div>

## New app update (🟩 LIVE: [2.1.1](https://homey.app/a/com.device-usage-calculator/)):

> NEW: Dashboard device widget  
> OPT: Enable usage & costs decimals in device settings.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [January 22, 2025, 10:27am UTC](https://community.homey.app/t/app-pro-power-price/121589/62 "2025-01-22T10:27:22Z")

</div>

The short answer is that measuring this type is not suitable with kWh meters. This can be done with Watt power consumption of the socket better.

What happens is:  
Session is done Power Price sets value to f.e. 1kWh  
Until new session is starting the graph will draw a straight line, because the meter is not set to 0 but is frozen until next session start.  
Because the insight graphs are set to 7 days the update interval you see in this view is per hour. So it will not show the short period when a session was set to 0 when new session start (if you enabled this option) and when the first update was set.

So it’s quite some 🪄 and 🧮 to have a good view.

---

<div class="post-metadata">

**Author:** ![Ronwell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronwell/32/46980_2.png) [@Ronwell](https://community.homey.app/u/Ronwell)\
**Post date:** [January 26, 2025, 2:59am UTC](https://community.homey.app/t/app-pro-power-price/121589/63 "2025-01-26T02:59:29Z")

</div>

it would be good if you can label sessions so that you can run multiple sessions at the same time

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [January 26, 2025, 7:44am UTC](https://community.homey.app/t/app-pro-power-price/121589/64 "2025-01-26T07:44:49Z")

</div>

Can you elaborate a bit more?

Note that it is already possible run run a session for different devices simultaneously. Also you can change the name of the session device (label name displayed in the widget).

Perhaps you are referring to something different.

---

<div class="post-metadata">

**Author:** ![Ronwell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronwell/32/46980_2.png) [@Ronwell](https://community.homey.app/u/Ronwell)\
**Post date:** [January 27, 2025, 3:25am UTC](https://community.homey.app/t/app-pro-power-price/121589/65 "2025-01-27T03:25:19Z")

</div>

there doesn’t seam to be an option to set a name in the start session cards. or in the end cards or update cards

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [January 27, 2025, 12:04pm UTC](https://community.homey.app/t/app-pro-power-price/121589/66 "2025-01-27T12:04:20Z")

</div>

The session name/label is the session device’s name. You can change the device’s name in the web interface by right clicking the device tile and selecting Rename, or via the mobile app in the device’s settings:

 ![Rename Device Tile Web](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/3171331248a05ea42fd91647b06f3ac3a4b5576c.png)

 ![Rename Device Tile Mobile](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/22dbbc4f9bc963e26cc0396eb4ac03dffe2ee44e.jpeg)

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [January 27, 2025, 6:30pm UTC](https://community.homey.app/t/app-pro-power-price/121589/67 "2025-01-27T18:30:10Z")

</div>

That is correct, a session is coupled to the device. It’s not possible to have multiple sessions for the same device at the same time.

You can solve this by adding another Power Price device for the other session, like @SunBeech showed above.

---

<div class="post-metadata">

**Author:** ![Ronwell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronwell/32/46980_2.png) [@Ronwell](https://community.homey.app/u/Ronwell)\
**Post date:** [January 28, 2025, 3:43am UTC](https://community.homey.app/t/app-pro-power-price/121589/68 "2025-01-28T03:43:25Z")

</div>

thanks i hoping to have just one device for this.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [March 24, 2025, 9:11am UTC](https://community.homey.app/t/app-pro-power-price/121589/69 "2025-03-24T09:11:55Z")

</div>

> [@RobbertV](#):
>
> The duration in seconds is nice to add indeed, I will add it to our to-do list.

Hi @RobbertV, not sure whether you have plans to add the above on the short term. I want to fully transition from Flow Utilities to Power Price, as I find the latter more convenient to use. The one thing I am missing is the duration in seconds tag. Not sure whether you have some kind of planning in mind 😊 ?

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [March 24, 2025, 2:31pm UTC](https://community.homey.app/t/app-pro-power-price/121589/70 "2025-03-24T14:31:39Z")

</div>

Hi @SunBeech,

Thanks for reminding me. Due to other stuff I have forgotten this, Sorry about that.

I did had something already lined-up but not published. I quickly had a look and created a test version with an extra device capability that can be used in your flows.

 ![Scherm­afbeelding 2025-03-24 om 15.22.16](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39f9c960739c33a36259896b385c833f2499883e.png)

## New app update (🟧 TEST: [2.1.3](https://homey.app/a/com.device-usage-calculator/test/)):

> **[Power Price | Homey](https://homey.app/en-us/app/com.device-usage-calculator/Power-Price/)**
>
> Your companion for calculating usage and costs

Please let me know, how this woks for you.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [March 24, 2025, 6:15pm UTC](https://community.homey.app/t/app-pro-power-price/121589/71 "2025-03-24T18:15:35Z")

</div>

Hi @RobbertV, thanks for adding this tag! It works great 😀.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [March 25, 2025, 10:36am UTC](https://community.homey.app/t/app-pro-power-price/121589/72 "2025-03-25T10:36:42Z")

</div>

## New app update (🟩 LIVE: [2.1.3](https://homey.app/a/com.device-usage-calculator/)):

> NEW: Add duration in seconds capability for flows

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [March 27, 2025, 6:19pm UTC](https://community.homey.app/t/app-pro-power-price/121589/73 "2025-03-27T18:19:51Z")

</div>

@RobbertV: Is it somehow possible to retrieve the timestamp of when a session ends in a tag or flowcard? I am currently using the ‘When the session alarm deactivates’ card as trigger to save the current date/time in a temporary tag. However that tag/datapoint is lost after the flow completes, as it is not stored anywhere. I would expect that the completion timestamp is stored in the Power Price device, as you also use it in the widget, but it is not clear to me how to access it.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [March 27, 2025, 9:53pm UTC](https://community.homey.app/t/app-pro-power-price/121589/74 "2025-03-27T21:53:58Z")

</div>

Hi @SunBeech,

We have the date object stored, but that is for session update/end currently this is stored locally for the widget only.

I could expose it the same way as for the duration is seconds, what kind oof output would you expect? literal timestamp or the date object (could be tricky as this is converted to string type).  
but I can’t promise when 😅 since I have some busy time ahead.

On the other hand, why are you using the trigger from the device state to store date/time? and not use it on the same trigger that will also trigger the end action card?

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [March 28, 2025, 6:00pm UTC](https://community.homey.app/t/app-pro-power-price/121589/75 "2025-03-28T18:00:52Z")

</div>

Hi @RobbertV,

Per session device I have a set of flows that control the start / end / tariff updates of a session. For ending the session I use the respective end session (THEN) card:

 ![PP End Session](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/7704861ab8aa1c5868e90f714d0d0d0697fa55c4.png)

In addition I have a separate flow that controls the session information shown on my dashboard. For that purpose I use the status widget of the Enhanced Device Widget app that I customized via HTML (so not the Power Price widget):

 ![IMG_1735.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/4/34bb25eb49d1b6278ada40dcc3340b2b3fe6cb5d.jpeg)

This flow is triggered when the session ends. As far as I understand the WHEN card that indicates the end of a session is the following, which I use:

 ![PP Update Status Widget](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/7651a4909d0a7ec4b886fdc19262548b3d5ab4ba.png)

Since I also want to show the timestamp of when the session ended, I use the Date.now() method to get the current timestap, when the flow is triggered, and format it in a specific format via one of the Better Logic Library cards. The downside of this method is that the original timestamp is not saved, so if I would re-run this flow (e.g. for testing) then the timestamp is replaced by a new one.

If I am correct the Date.now() method returns the Epoch value of the current (local) date/time. Since date/time formatting is a personal preference, if your app could make available that same value, it could be used for further processing by the end user. Though I also understand that a pre-formatted string/text based time stamp (like the one I am using) is more user friendly.

An other option for me is to store the timestamp/Date.now() value in a variable directly after the end session (THEN) card. Then I can use that variable as input for the flow that controls the dashboard. That would mean that I have to create a dedicated variable for all session devices. That is of course not a problem. Though it would be neater if the session device itself would expose the timestamp in a tag.

Please note that I do not want to rush you whatsoever or expect that you implement my requests/questions 😊. I am just trying to figure out my options for retrieving the timestamp.

---

<div class="post-metadata">

**Author:** ![Olivier67](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olivier67/32/118108_2.png) [@Olivier67](https://community.homey.app/u/Olivier67)\
**Post date:** [March 30, 2025, 3:09pm UTC](https://community.homey.app/t/app-pro-power-price/121589/76 "2025-03-30T15:09:51Z")

</div>

Hello,

My energy car isn’t updating continuously; it only updates when I stop. The dashboard widget doesn’t display anything; it spins around and around, but nothing.  
Has anyone else had this kind of problem?

 ![Image 30-03-2025 à 17.07](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/228918bc22f460ed392dc5bbc1766fff6d8a5a66.jpeg)

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [March 30, 2025, 5:31pm UTC](https://community.homey.app/t/app-pro-power-price/121589/77 "2025-03-30T17:31:12Z")

</div>

As far as I know, the values in the Power Price device are only updated when the session completes.

However, Power Price provides a THEN flow card that lets you update a running session:

 ![IMG_1764](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/3/c3e323ae580afd9f72e9497a4bb92a447762400e.jpeg)

The screenshot is in Dutch, but translates to ‘Update active session with [price] tariff and [meter reading] meter reading’.

I assume the values in the Power Price device will show the most recent ones after the update.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [May 20, 2025, 10:46am UTC](https://community.homey.app/t/app-pro-power-price/121589/78 "2025-05-20T10:46:07Z")

</div>

Hi, like @SunBeech mentions above is correct.

The widget will only update on the update or end action card.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [May 20, 2025, 10:56am UTC](https://community.homey.app/t/app-pro-power-price/121589/79 "2025-05-20T10:56:43Z")

</div>

Hi, I just had another think on your request regarding the timestamp tag.

When placing this in the end card as tag this wil always be the timestamp when running that card. So it would have the same effect as you have now in your flow.

So if you are testing and want to keep the original value. Best solution is like you mention in option 2, to store in a variable I think.

Optional, you could start the flow with a parameter “isTest” = true.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/593e474862966c782b4df55392a07c8666fdca84.png)  
Then you can skip the variable storage during testing.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [May 20, 2025, 5:58pm UTC](https://community.homey.app/t/app-pro-power-price/121589/80 "2025-05-20T17:58:29Z")

</div>

Indeed, the variable option seems to be the best.

That’s what I have settled for and have been using now for some time. I created a BLL variable for each session device to record the date/time stamp.

Thanks for thinking along!

[Previous page](https://community.homey.app/t/app-pro-power-price/121589.md?page=3)

[Next page](https://community.homey.app/t/app-pro-power-price/121589.md?page=5)
