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

<div class="post-metadata">

**Author:** ![EdNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ednl/32/90603_2.png) [@EdNL](https://community.homey.app/u/EdNL)\
**Post date:** [January 6, 2025, 10:18am UTC](https://community.homey.app/t/app-pro-power-price/121589/41 "2025-01-06T10:18:50Z")

</div>

I’m really a bit stupid and don’t understand what he’s doing. Personally, I find it so annoying to say that I don’t understand. I’ve done everything you tell me and it still doesn’t work.

I now have -849 kWh for the Quooker and I would have spent -1160.24 euros. You understand, something is wrong, although I now have prices, I didn’t have that at all before. Now I don’t know if I should wait a bit until the Quooker has been on again, so that this information will adjust itself?

I also wonder if I’m using the correct #Tariefactief, #Energie, #Power?! I assume so, but I’m not sure because you have so much choice.

 ![Scherm­afbeelding 2025-01-06 om 11.13.59](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1c09995edbb27b6b393049a8215f83caacb370f.jpeg)  
 ![Scherm­afbeelding 2025-01-06 om 11.14.07](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/828f5957586ba13913b31caeab2d04c1b9c52774.png)

---

<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 6, 2025, 12:05pm UTC](https://community.homey.app/t/app-pro-power-price/121589/42 "2025-01-06T12:05:43Z")

</div>

To make a proper comparison you need to provide a tariff price (f.e. 0.32) and a kWh meter count (f.e. Energie variable)

Make sure you have selected the correct socket variable (#energie), I had similar issues but that was due to comparing 2 different devices 😅.

---

<div class="post-metadata">

**Author:** ![EdNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ednl/32/90603_2.png) [@EdNL](https://community.homey.app/u/EdNL)\
**Post date:** [January 7, 2025, 3:07pm UTC](https://community.homey.app/t/app-pro-power-price/121589/43 "2025-01-07T15:07:37Z")

</div>

I think I’m doing something wrong. I can’t get it at a normal price. I don’t know what’s wrong, everything is, I think, good. I will send some examples, maybe someone sees what my problem is?!

 ![Scherm­afbeelding 2025-01-07 om 16.02.21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/3/93ac3b75a4dc9aa43d571a86ad7eed46a1c6e45f.png)  
 ![Scherm­afbeelding 2025-01-07 om 16.01.09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f0df426ef185e6d5a2608b7b90ce86057ad0a673.png)

 ![Scherm­afbeelding 2025-01-07 om 16.06.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/47aa70282afc4d01bdb1cdbba317ac84d028247e.jpeg)  
 ![Scherm­afbeelding 2025-01-07 om 16.06.51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/0813cd4608e1f692daae031df13cd637125faf3a.png)  
 ![Scherm­afbeelding 2025-01-07 om 16.05.14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a26d648b5a9003bab74664214ea7bbfdec4a0021.png)  
 ![Scherm­afbeelding 2025-01-07 om 16.04.56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/3/33b205e6774ad83dbb7631d8bd8ecde5a4c72b37.png)

 ![Scherm­afbeelding 2025-01-07 om 16.09.21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/974e96d22026c43dc91bc65a1c8b46d2f3cdb23a.png)

---

<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 7, 2025, 4:39pm UTC](https://community.homey.app/t/app-pro-power-price/121589/44 "2025-01-07T16:39:33Z")

</div>

I’m sorry I can’t help you. There are a lot of variables in these setup, this is only know or visible for yourself.

Seeing the first 2 screenshots are confusing to me as well, I don’t know what kind they are.  
Seeing that Power Price device is reporting in MWh I came only suggest to check the data you provide this device. I think there is some configuration wrong in the given data.  
Again this is something I can’t see from screenshots only in person for flow config you can check this. Hovering on the variable shows it’s source. (Via web app)

---

<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 8, 2025, 8:49pm UTC](https://community.homey.app/t/app-pro-power-price/121589/45 "2025-01-08T20:49:31Z")

</div>

What does this setting do? I have read the description, but don’t understand it 😊.

 ![IMG_1647](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f649479fb70a744bda13ffa7a0365ce2644bf89b.jpeg)

Which values are updated? Does it retrospectively recalculate the monetary value/session costs on a price change? Or in other words, apply the new price tariff from the start of the session instead of as of the moment the price change occurred?

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [January 8, 2025, 8:50pm UTC](https://community.homey.app/t/app-pro-power-price/121589/46 "2025-01-08T20:50:59Z")

</div>

@SunBeech if you run the update card it will automatically update the sensor values of the device

Normally that only happens when you end the session.

---

<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 9, 2025, 12:07pm UTC](https://community.homey.app/t/app-pro-power-price/121589/47 "2025-01-09T12:07:06Z")

</div>

I am comparing the Flow Utilities app (which I currently use for session summaries) with the Power Price app.

I like the simpler flow cards/easier usage, and the fact that you can apply tariff changes to an already running session.

The Power Price app also has this convenient card that formats the kWh cost in the local format. In my case a comma as decimal separator:

 ![IMG_1648](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0850f23e4f683b21cf0ed849234727190f1adda.jpeg)

If I am correct, there is no such card to format the session usage (kWh) in the local format: it is displayed in the default formatting using a period as decimal separator. Are you considering to also add a similar card for the session usage?

The Flow Utilities app has an additional numeric tag that includes the number of seconds the session lasted. This tag makes it easy to apply own/custom formatting, that deviates from the standard formatted duration. Are you considering to also add a similar numeric tag?

---

<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 10, 2025, 5:59pm UTC](https://community.homey.app/t/app-pro-power-price/121589/48 "2025-01-10T17:59:47Z")

</div>

Thanks for your feedback and suggestions.

I didn’t realize until now that (at least in NL) the formatting for kWh is different than we now show. We now show an international standard for number values where “.” Is the decimal separator. But in NL we use “,” as decimal separator.  
Since there is no kWh formatting function in JavaScript like we have for currency available. I need to lookup how tos solve this without a lot of code writing with custom values.

The duration in seconds is nice to add indeed, I will add it to our to-do list.

---

<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 12, 2025, 12:40pm UTC](https://community.homey.app/t/app-pro-power-price/121589/49 "2025-01-12T12:40:06Z")

</div>

Question regarding the numeric tags available in Power Price. It seems that the **# Sessie verbruik** and **# Sessie kosten** tags are rounded. If I format them with additional decimals, they show up as 0 instead of the actual values.

For example I have a session that summarizes kWh. The session result is 0.01 kWh ( **# Sessie verbruik** tag). The energy tariff during the session is 0.22391. Multiplying both yields an expected session cost of: 0.0022391. Power Price indicates in its **# Sessie kosten** tag a cost of 0. If I format the tag to display e.g. four decimals, the results is 0.0000, while I would expect 0.0022.

Are those tags indeed rounded? And if so, would it be an idea to include an option in the settings to configure the number of decimals stored in the tag? Or perhaps do not round the tag itself, but only use rounding when retrieving the session costs via the dedicated flow 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:** [January 14, 2025, 7:18pm UTC](https://community.homey.app/t/app-pro-power-price/121589/50 "2025-01-14T19:18:59Z")

</div>

I did some investigation and found out that this is default Homey behaviour. See screenshot below on a log from our stored data where we do calculations with:

 ![Scherm­afbeelding 2025-01-14 om 19.47.14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d135990ae1e40e6b7595ed80db7c2f5077d2c015.png)

It’s in the Homey UI where the rounding takes place. So this will show in the device capabilities and the variables.  
Homey does supply a capability decimal setting for number type values, however I didn’t get this to work in the UI ☹  
Also this is a fixed setting and can’t be configured via device settings.

So unfortunately currently this is not possible.

---

<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 14, 2025, 9:10pm UTC](https://community.homey.app/t/app-pro-power-price/121589/51 "2025-01-14T21:10:39Z")

</div>

Thanks for investigating this matter!

After posting my question I noted that the numbers from Flow Utilities are rounded similarly. Which makes sense following your explanation.

---

<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 16, 2025, 7:34am UTC](https://community.homey.app/t/app-pro-power-price/121589/52 "2025-01-16T07:34:21Z")

</div>

I had some afterthought and I think I know how to resolve/bypass the decimals matter.

Keep you updated.

---

<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 18, 2025, 8:52pm UTC](https://community.homey.app/t/app-pro-power-price/121589/53 "2025-01-18T20:52:17Z")

</div>

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

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

New homey dashboard widget options:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/f/3f7b40fc947069de90b5f7b94c224538f804eaaf.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/3538a1aca8931f5ad680201208645ea1de91cb4f.png)

New advanced device settings:

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

FYI: @SunBeech

---

<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 18, 2025, 9:18pm UTC](https://community.homey.app/t/app-pro-power-price/121589/54 "2025-01-18T21:18:05Z")

</div>

Nice features! 😀

Some minor observations:

- The screenshot shows a running/active session on Jan 18th. The data included is of the last completed session (on Jan 14th), while the timestamp is of the last update of the active session (Jan 18th). This might be confusing. Would it not make more sense to display the timestamp of the last completed session? So all data elements relate to each other.
- The duration field is capped when the icon is displayed.

 ![IMG_1655](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/92e3b7fc4734f84d644bb72f5525006cde0a0c21.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 19, 2025, 12:18pm UTC](https://community.homey.app/t/app-pro-power-price/121589/55 "2025-01-19T12:18:00Z")

</div>

Thanks for the quick feedback.

The timestamp is representing the last update of the widget, since this is live updating when this device setting is set and device is running. When this is not set by the user it makes sense to reflect the last end of a session.

Will have a look at both things.

---

<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 19, 2025, 4:27pm UTC](https://community.homey.app/t/app-pro-power-price/121589/56 "2025-01-19T16:27:41Z")

</div>

Are you referring to this setting in the session device? It’s turned off in my case.

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

If I would enable it, will the session values/capabilities be updated continuously while a session is running? Or only after a tariff/price change, as the setting’s description indicates?

---

<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 19, 2025, 4:30pm UTC](https://community.homey.app/t/app-pro-power-price/121589/57 "2025-01-19T16:30:48Z")

</div>

Only when the update action card is triggered. As example when there a price change.

---

<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 19, 2025, 6:18pm UTC](https://community.homey.app/t/app-pro-power-price/121589/58 "2025-01-19T18:18:58Z")

</div>

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

> FIX: Widget timestamp to reflect latest session end/update  
> FIX: Widget timezone  
> OPT: Adjust widget styling & add loader styling

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/be54fab2a648aeaf9c9c264e841c9eae22af89e5.png)

### Note

> Devices that not have triggered the update/end session cards yet show still the current date from updating the widget. Since this data will be stored from version \> `2.1.1`.  
> Also when a new device is added without having a updated or completed session this will be the default behaviour.

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [January 20, 2025, 9:49am UTC](https://community.homey.app/t/app-pro-power-price/121589/59 "2025-01-20T09:49:14Z")

</div>

Really nice update @RobbertV

I use the widget to show realtime price of my Energy Meter and my Washer 🙂

![Untitled](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c9b5e80fdb048581a97523aab96d8ce5ddcc775.gif)

I set up my flow like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b5865df35b7a0d49233497900de2bfe514c54533.png)

And in the device settings I have the following:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bb7785734f926d4c6e27caeb7222cddeb0aaa8c.png)

---

<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 20, 2025, 12:34pm UTC](https://community.homey.app/t/app-pro-power-price/121589/60 "2025-01-20T12:34:39Z")

</div>

Thanks for the update!

I have a question on how Insights work in relation to sessions. One of my Power Price devices summarizes the consumed energy (kWh) of a TV session.

 ![IMG_1658](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/47db8593cdc5c0cda7c17c9f0fec57932cc776b4.jpeg)

If I look at the insights in the Power Pro device, it seems like the last session’s kWh value is continued until the start or end (not sure) of the next session. The result is that if, for instance I watch TV for 1 hour and then don’t watch TV for the next 2 days, the kWh value of the 1 hour session keeps being reported during the next days until I start a new session. This way it seems like I had that energy consumption during those 2+ days.

I would expect that the kWh value is only reported between the start and end points of a session (or only at the end point, as it is an accumulation). And that between sessions the kWh is 0.

But maybe I am misunderstanding how these insights work 😊. Perhaps you could explain.

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

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