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

<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:** [July 3, 2023, 1:55am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/648 "2023-07-03T01:55:53Z")

</div>

Thanks, I got the reports.  
It’s been a bit busy lately so I am a bit delayed on updates, but I will add the devices to the upcoming test version within a few days.

Thank you for your GitHub sponsorship, it was very nice of you. I’ll do my best to improve the app and make it even more versatile and user-friendly in the future. If you have any bright improvement ideas please let me know and I will see what I can do.

---

<div class="post-metadata">

**Author:** ![Lillevik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lillevik/32/28234_2.png) [@Lillevik](https://community.homey.app/u/Lillevik)\
**Post date:** [July 3, 2023, 11:08am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/649 "2023-07-03T11:08:30Z")

</div>

Well nothing to Get you rich but at least a token of appreciation:)

Take your time, no rush, it’ll be exciting to see.

I’m currently working on implementing and understanding Piggy Bank logic and opportunities on my 3 Homey Pro’s in 3 different locations so the potential is there:)

I I’ve been in IT for a long time (entrepreneur and technical) but on these things I’m a total newb so you might risk a few questions on your apps moving forward:)

Have a great day☀️  
Håvard

Sendt fra [Outlook for iOS](https://aka.ms/o0ukef)

---

<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:** [July 4, 2023, 12:36pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/650 "2023-07-04T12:36:07Z")

</div>

@frodeheg

Hi.  
Prices don’t seem to update. Thought it was just my homey that had issues, but tried a restart and still the same prices. Been stuck on the same price at least all day.

 ![Screenshot_2023-07-04-14-36-29-97_4bbfc4a7dd885a2bb189f300112a7ed4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/0765e7d2618c95aef920c005fc034166993553a9.jpeg)

---

<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:** [July 4, 2023, 1:18pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/651 "2023-07-04T13:18:28Z")

</div>

This is odd, I just got a similar report from someone else using price region NO4, but it seems fine for me (using price region NO3). Are you using NO4 too? Can you please enter the app settings and look at the price history graph and check when it stopped updating 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:** [July 4, 2023, 1:41pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/652 "2023-07-04T13:41:40Z")

</div>

I’m region east. Not sure about the number.

 ![Screenshot_2023-07-04-15-38-53-64_4bbfc4a7dd885a2bb189f300112a7ed4~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a73676389c25a73d23f058179a08236a56c09ebb.jpeg)  
 ![Screenshot_2023-07-04-15-38-49-23_4bbfc4a7dd885a2bb189f300112a7ed4~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6c02901294c74a143f9f2790be7b2ee8c84f770d.jpeg)  
 ![Screenshot_2023-07-04-15-38-35-97_4bbfc4a7dd885a2bb189f300112a7ed4~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35ecae8d1347d401428494860a173183601ab831.jpeg)  
 ![Screenshot_2023-07-04-15-38-59-16_4bbfc4a7dd885a2bb189f300112a7ed4~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/87fd566ab8465e05bf973aecf143e5110b1fc993.jpeg)

---

<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:** [July 4, 2023, 1:48pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/653 "2023-07-04T13:48:37Z")

</div>

The one thing you have in common with the other person is that on the exact same time this problem occurred there was negative power prices within the next 24 hours…

Thus I believe there is a bug in the app with regards to handling negative power prices… I will take a look tonight.

---

<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:** [July 4, 2023, 1:54pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/654 "2023-07-04T13:54:26Z")

</div>

Thank you!

---

<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:** [July 5, 2023, 1:19am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/655 "2023-07-05T01:19:40Z")

</div>

Sorry, I did not have time to look at it, but I got a report from another user that the prices got repaired again if he switched back and forth between different price settings, apparently this made it come out of the erroneous behavior. Please let me know if this works for you while you wait for a fix.

---

<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:** [July 5, 2023, 6:05am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/656 "2023-07-05T06:05:29Z")

</div>

That didn’t work for me I’m afraid.  
Not sure if it’s relevant anymore, but the Norwegian utility bill app is also stuck on the price from 4 days ago.

---

<div class="post-metadata">

**Author:** ![proisland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/proisland/32/10370_2.png) [@proisland](https://community.homey.app/u/proisland)\
**Post date:** [July 5, 2023, 10:27am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/657 "2023-07-05T10:27:41Z")

</div>

Is it possible to add a feature where the charge plan is available as a variable to be used on a notification card?

---

<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:** [July 6, 2023, 1:37am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/658 "2023-07-06T01:37:43Z")

</div>

> [@Torbjorn\_Melbye](#):
>
> That didn’t work for me I’m afraid.

Ok, did you try to change the price region back and forth? I think that may be the only price setting that may reset the state.

> [@proisland](#):
>
> Is it possible to add a feature where the charge plan is available as a variable to be used on a notification card?

This has previously been requested here: [Enhancement: Make a "charge Session" tag, JSONstring? · Issue #95 · frodeheg/no.sparegris · GitHub](https://github.com/frodeheg/no.sparegris/issues/95)  
Will a “Global Token” json string as suggested in that ticket work for you?

---

<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:** [July 6, 2023, 2:00am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/659 "2023-07-06T02:00:41Z")

</div>

Can’t believe I missed this. I had my price settings as external. Fetching the price from Norwegian utility bill app. That’s the one who stopped updating, hence Piggy bank didn’t get new prices  
Changed it to spot. Question. Does Piggy banks 22-6 grid prices apply for weekends?

---

<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:** [July 6, 2023, 2:06am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/660 "2023-07-06T02:06:51Z")

</div>

> [@Torbjorn\_Melbye](#):
>
> Does Piggy banks 22-6 grid prices apply for weekends?

Piggy Bank supports using the night price for weekends, however, this option is hidden for Norway because I thought it was not applicable here…

Do you want me to unlock it? Which grid provider is this btw?

---

<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:** [July 6, 2023, 2:14am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/661 "2023-07-06T02:14:14Z")

</div>

Yes, I want this. Elvia has night prices on Saturdays, Sundays and holidays. So should be the case for quite a few users.

---

<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:** [July 6, 2023, 2:31am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/662 "2023-07-06T02:31:19Z")

</div>

> [@Torbjorn\_Melbye](#):
>
> and holidays

hmmm… that one is new… and possible trickier… because holidays vary between countries…  
Adding that will take some time, but I have exposed the weekend off-grid feature in the [test version](https://homey.app/a/no.sparegris/test/) now. (note: you have to enable it from the price section.)  
For holiday off-peak please follow [this ticket](https://github.com/frodeheg/no.sparegris/issues/248).

---

<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:** [July 6, 2023, 2:35am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/663 "2023-07-06T02:35:39Z")

</div>

Well, this is your expertise. Only thing I can think of is to make use of the holiday app for Homey, and controll it through flows.  
Anyway, there are no holidays in Norway until Christmas, so plenty of time 😅

---

<div class="post-metadata">

**Author:** ![proisland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/proisland/32/10370_2.png) [@proisland](https://community.homey.app/u/proisland)\
**Post date:** [July 6, 2023, 7:48am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/664 "2023-07-06T07:48:32Z")

</div>

Yes, this would be exactly what I wanted 😊

---

<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:** [July 7, 2023, 10:26am UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/665 "2023-07-07T10:26:58Z")

</div>

@frodeheg

Hi again. Price is off with like 7 øre today. Does the weekend setting inklude Friday by any chance?

---

<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:** [July 7, 2023, 2:14pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/666 "2023-07-07T14:14:04Z")

</div>

Uhm… no it should not…

```auto
    const weekDay = localTime.getDay();
    const isWeekend = weekDay === 5 || weekDay === 6;

```

Hmm… should this check for 6 and 0 by any chance? 🥴

(fixed at [Ticket #249](https://github.com/frodeheg/no.sparegris/issues/249) - seems like I gave you a long weekend this week, please enjoy 🤣 )

---

<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:** [July 7, 2023, 5:35pm UTC](https://community.homey.app/t/app-pro-piggy-bank/66677/667 "2023-07-07T17:35:16Z")

</div>

Haha, seems you figured it out. Back to a short weekend next week then 🥺

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

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