# \[APP\]\[Pro\] Piggy Bank

**URL:** <https://community.homey.app/t/app-pro-piggy-bank/66677>\
**Category:** Apps\
**Tags:** app, tools, homey-pro\
**Created:** [July 29, 2022, 10:07pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677 "2022-07-29T22:07:19Z")\
**Posts on this page:** 20\
**Page:** 24

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 16, 2023, 10:36pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/467 "2023-01-16T22:36:26Z")

</div>

> [@EirSM](#):
>
> but no success.

Try out the insights, it would be quite interesting if it shows temperature readings from the past.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 19, 2023, 2:17am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/468 "2023-01-19T02:17:08Z")

</div>

I just added a new function to [my new app that came out today](https://homey.app/a/com.openai.ChatGPT/test). You can now use a flow to request DALL·E to generate images on Homey.

So here was my first attempt with the flow “Make an image of a saving pig that saves big on electricity”. Maybe I can use it as an assistant artist?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/6946383a4ad4930fbe35cdb93750343435d6d380.jpeg)

---

<div class="post-metadata">

**Author:** ![sverf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sverf/32/68429_2.png) [@sverf](https://community.homey.app/u/sverf)\
**Post date:** [January 20, 2023, 12:32pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/469 "2023-01-20T12:32:34Z")

</div>

> [@frodeheg](#):
>
> > [@dooniem](#):
> >
> > In the children’s bedroom “night” starts earlier than “night” in our bedroom
> 
> Good point. What if I add a zone-parameter to the change mode option and then you can change the mode at different times in different zones?

Hi. First of all: great app! I have one “follow-up”/suggestion: Has anything been done on this issue? I have the same issue, with a couple of heating appliances which should be set to “night” at around 18/19. At the moment I have tried the “overstyring” and “styrt” and “manuell temperatur”, but haven’t really found the best way to do this. Say I want to edit the set temperature of an oven between 18 and 07, what would be the best way to do that?

I also see today that at the moment (13:30), the app sets price point to “expensive”, although this is more or less the cheapest hour today. Am I doing something wrong, or can there be a bug in the new update?

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 20, 2023, 2:09pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/470 "2023-01-20T14:09:12Z")

</div>

> [@sverf](#):
>
> Has anything been done on this issue? I have the same issue

The app has been through a lot of changes since then but unfortunately I have not implemented a good solution for this yet. The best option at current is probably to run the flow card “Override device xxx, set temperature to manual override”

@dooniem created a discussion around the topic here though: [Different approach to setting temperatures · frodeheg/no.sparegris · Discussion #77 · GitHub](https://github.com/frodeheg/no.sparegris/discussions/77), but I have not had time to address these changes yet. I will start to look at it at some point though. What do you think about his proposals?

I will probably address the one below soon though, it might improve the situation for you?

- [Manually adjust thermostat setpoint via flow card · Issue #122 · frodeheg/no.sparegris · GitHub](https://github.com/frodeheg/no.sparegris/issues/122)

> [@sverf](#):
>
> the app sets price point to “expensive”, although this is more or less the cheapest hour today.

It’s difficult for me to guess what is going on without more input, but I would guess that the basis for price comparison is set in such a way that most of the hours today was set to expensive for you, is this right?  
Can you send

- a screenshot of the price graph for today as shown in the setup interface? This will show you how the price points are distributed across the day.
- a screenshot of the “price control magic” under “Units → Price control”
- and possibly a readout of the “moving average price” as read from the “piggy bank insights” device

---

<div class="post-metadata">

**Author:** ![sverf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sverf/32/68429_2.png) [@sverf](https://community.homey.app/u/sverf)\
**Post date:** [January 20, 2023, 4:54pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/471 "2023-01-20T16:54:16Z")

</div>

Hi

Regarding the temperature setting options mentioned, i think he is onto something. I find it quite complicted to set temperatures and priorities for 5-6 appliances and 5 modes, so simplifying that would be nice. I also do not need the option to have different priorities in different modes, i would rather have the option to select different time of the mode for different appliances.

Regarding the screenshots, they are attached. As you can see, the price point is set to dyrt, although the price is lower than the dyrt-limit. It also seems like the price graph from piggy bank does not comply with the spot prices today, there is a peak at 10 o clock, which is not existing in the spot price profile in tibber.

 ![Screenshot_20230120_175334_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f78a3a758654f8b06fbe497d7d438e55543de98e.jpeg)

---

<div class="post-metadata">

**Author:** ![sverf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sverf/32/68429_2.png) [@sverf](https://community.homey.app/u/sverf)\
**Post date:** [January 20, 2023, 4:54pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/472 "2023-01-20T16:54:54Z")

</div>

![Screenshot_20230120_161524_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35a2698854e32569f1ee0a921016584f003b2181.jpeg)  
Here is the price profile from piggy bank, which is set to NO3

---

<div class="post-metadata">

**Author:** ![sverf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sverf/32/68429_2.png) [@sverf](https://community.homey.app/u/sverf)\
**Post date:** [January 20, 2023, 4:55pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/473 "2023-01-20T16:55:24Z")

</div>

![Screenshot_20230120_161411_Tibber](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/24210f37d34154d935c52a5acf2c080128d5e917.jpeg)

And here is the spot price from today

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 20, 2023, 5:12pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/474 "2023-01-20T17:12:37Z")

</div>

> [@sverf](#):
>
> As you can see, the price point is set to dyrt,

This, is odd, because it’s not seen as “dyrt” in the graph… If you click the “dyrt” in the insights device, does it show that it has been updated lately?  
And what does the pricepoint show as in the app settings page under “Devices” → “Price Control” ?  
It may be that it’s just the insights app that is not updated for some reason… (which we might need to look closer into if this is the case)

EDIT: Sorry, I was writing on my post while you posted images so I didn’t notice the tibber image.  
Hmm… I can only think of one thing that would cause such a discrepancy. All prices are originally in euros, so they have to be translated to NOK. If the app was restarted around that time it would have falled back to a very old NOK exchange rate until it was possible to fetch a new currency exchange rate from Norges Bank. I created [this ticket](https://github.com/frodeheg/no.sparegris/issues/172) to improve on this issue, as it should much rather fall back on the previously known exchange rate. (the [source data](https://transparency.entsoe.eu/transmission-domain/r2/dayAheadPrices/show?name=&defaultValue=true&viewType=GRAPH&areaType=BZN&atch=false&dateTime.dateTime=20.01.2023+00:00%7CCET%7CDAY&biddingZone.values=CTY%7C10YNO-0--------C!BZN%7C10YNO-3--------J&resolution.values=PT15M&resolution.values=PT30M&resolution.values=PT60M&dateTime.timezone=CET_CEST&dateTime.timezone_input=CET+(UTC+1)+/+CEST+(UTC+2)) seem to be correct so I believe the currency exchange rate was jinxed)

Could it be the case that you was hit by this issue, or do you think it was something else? (did your app restart around that time?)

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 21, 2023, 2:14am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/476 "2023-01-21T02:14:27Z")

</div>

## New changes in [test version 0.19.42](https://homey.app/a/no.sparegris/test)

- Made currency exchange rates latent across app restarts (@sverf)
- Fixed an issue where charging wouldn’t start properly (@Birger_T [#171](https://github.com/frodeheg/no.sparegris/issues/171), @Frode_Stenstrom [#162](https://github.com/frodeheg/no.sparegris/issues/162))
- Added beta-support for `com.arjankranenburg.virtual:virtual_switch`
- Fixed a minor bug where the reliability counters for all devices were reset when entering the setup.

Next on the plan:

- Adding time schedules to replace the temperature settings [#173](https://github.com/frodeheg/no.sparegris/issues/173). (@dooniem, @sverf)

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [January 23, 2023, 4:44am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/477 "2023-01-23T04:44:23Z")

</div>

@frodeheg

Hi.

I feel like the price fetching/calculations are off lately.  
I have it set to daily average, and +/-10 percent for cheap/high price points.

 ![Screenshot_2023-01-23-05-38-10-88_7ea78f8a473b1abdf2a2d64da2436ec8](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/4/b4b675a03813ab621114ea475a73698cd1fdbec6.jpeg)

Right now the price is way lower then 10% below average, but piggy still sets it to normal.

 ![Screenshot_2023-01-23-05-42-10-75_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/457e97a6e34ab78d4b054ae6496fef1df38285ff.jpeg)

 ![Screenshot_2023-01-23-05-43-47-81_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/6/c6bc17e3687ed22c0b48dcce45ddb5380f4e0a17.jpeg)

 ![Screenshot_2023-01-23-05-46-18-37_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/4/94577163442dba874ef9ab7257420b50bac23818.jpeg)

I have seen this happen several times in the last few days.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 23, 2023, 5:08am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/478 "2023-01-23T05:08:46Z")

</div>

I see you use a snapshot of prices from Tibber. Have you checked the price graph in Piggy? (select “strømpris” and then “day” and browse to the current day) This graph will show you the price Piggy thinks it is as well as price point distribution across the day. If you for some reason does not have access to the current day then the price fetching for the current day has failed and it defaults to Normal price. If this happens you should have gotten a notification as well so if you didn’t get a notification it might be an issue. How does the Piggy graph look?

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [January 23, 2023, 5:18am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/479 "2023-01-23T05:18:01Z")

</div>

![Screenshot_2023-01-23-06-11-34-00_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/debdaf9794343701a80d98899b0cd445fb05ab55.jpeg)

It seems fine again now. (New hour).  
It was the hour from 5 to 6 that failed. It’s been fine the rest of the night. But had a few hours yesterday where it also failed.

Does the app only try once to fetch the price when a new hour starts?

What sort of notification? I don’t think I have ever gotten one.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 23, 2023, 5:23am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/480 "2023-01-23T05:23:38Z")

</div>

Can you click the hour = 5:00 and see what the graph shows?  
If it says “Prispunkt: Billig” that is what was actually the case despite of what you might have seen in other places.

Where did you actually read that it was “Normal”? was it in the insights app? It could be an issue with the display in the “device”… or was it from the price control menu in piggy settings?

> [@Torbjorn\_Melbye](#):
>
> Does the app only try once to fetch the price when a new hour starts?

It tries once for every new hour if it still has not gotten the future +12 hour prices. Which means that the price fetching must fail 12 times in a row in order for you to get the message about missing prices.

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [January 23, 2023, 5:28am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/481 "2023-01-23T05:28:49Z")

</div>

![Screenshot_2023-01-23-06-25-29-66_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/3/23d6a7c300462e3c967a2d2d61d13ae16e494488.jpeg)

It was normal, so it failed.

Well, I see it on the temperatures my floors are set at. Didn’t actually notice what insights was set to.

Would it be possible to have it try again when it fails instead of waiting an hour?  
Losing an hour (or more) of cheap floor heating actually makes a difference.

 ![Screenshot_2023-01-23-06-34-03-60_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e0519aecde40b397c4ed9f7e6463130df8ccfc13.jpeg)

Looks like it failed at midnight as well

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 23, 2023, 5:34am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/482 "2023-01-23T05:34:56Z")

</div>

> [@Torbjorn\_Melbye](#):
>
> Would it be possible to have it try again when it fails

I’m not sure you’re hit by this issue as the price graph clearly show that prices has been registered and you say you didn’t get any notification about missing prices ever, so I think this must be another bug…

Can you elaborate to me, are you on stable 0.19.40 or testing 0.19.42?  
Is this related to the 0.19.38 release?

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [January 23, 2023, 5:36am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/483 "2023-01-23T05:36:28Z")

</div>

I’m on test 0.19.42 (updated tonight I see)

Yes, the price seems to be registered, but it sets the wrong price point. (5 o’clock was cheaper than 6, so it makes no sense that 5 should be normal, and 6 cheap)

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 23, 2023, 5:49am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/484 "2023-01-23T05:49:00Z")

</div>

My best guess would be that it’s related to the 0.19.38 release so if you believe it started after Jan. 15th that could be the case…

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [January 23, 2023, 6:02am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/485 "2023-01-23T06:02:03Z")

</div>

As far as can tell, it’s been the recent days, yes so you’re probably right.

---

<div class="post-metadata">

**Author:** ![sverf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sverf/32/68429_2.png) [@sverf](https://community.homey.app/u/sverf)\
**Post date:** [January 24, 2023, 8:57am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/486 "2023-01-24T08:57:21Z")

</div>

Sorry for my late reply here, but it seems Torbjorn has had more or less the same issue as me. I tried not doing a lot of changes in the app, and just leaving it alone, and then it seemed to work fine. However, when I adjusted some priorities in the list (changed order of some appliances), I noticed that the app suddenly (and immediately) changed the price point to “expensive”, before going to “normal” a few minutes later. The price point at that time was in reality “cheap”. At the next full hour it seemed to go back to normal operation.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [January 24, 2023, 9:34am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/487 "2023-01-24T09:34:38Z")

</div>

Maybe I have been looking at the wrong place then? @Torbjorn_Melbye , is this something that happens randomly or does it occur after you have changed/saved the settings again?

> [@sverf](#):
>
> but it seems Torbjorn has had more or less the same issue as me

Are you saying that the improvement I added to keep currency exchange rates latent in version 0.19.42 did not fix your case?

[Previous page](https://community.homey.app/t/app-pro-piggy-bank/66677.md?page=23)

[Next page](https://community.homey.app/t/app-pro-piggy-bank/66677.md?page=25)
