# \[APP\]\[Pro\] Heating Controller with utility prices

**URL:** <https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795>\
**Category:** Apps\
**Tags:** app\
**Created:** [January 23, 2019, 5:53pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795 "2019-01-23T17:53:18Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![Hefram](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hefram/32/61953_2.png) [@Hefram](https://community.homey.app/u/Hefram)\
**Post date:** [November 13, 2022, 1:46pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/229 "2022-11-13T13:46:58Z")

</div>

With this flow it doesn’t work over the 00.00 clock. Is there any workaround for that?

 ![Screenshot_20221113-144346__01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/b/fbb4bdd6350dc209d577d4ea61e5ccbf46aa4bb0.jpeg)  
First it trigger 3 times before 12 and then 3 times after 12… The variable laddtime is set to 3.  
 ![Screenshot_20221113-144104~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/867e04d51009a4c175dbcaf2dbf2e95e95ca8be8.jpeg)

---

<div class="post-metadata">

**Author:** ![Articate](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/articate/32/57311_2.png) [@Articate](https://community.homey.app/u/Articate)\
**Post date:** [November 17, 2022, 9:22pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/230 "2022-11-17T21:22:33Z")

</div>

Is there a bug with “High prices X hours of the day”? It was appearing buggy to me, so I made two triggers:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c00a72be783481c224e6874d9e553cb57080b486.png)

If it makes sense that these two triggers should do the same, then there’s something weird going on. I am using prices from the Strøm app. Today, the “22 low hours” have turned off heating during these two hours: 8-9 and 17-18 (Oslo area). I’ve verified the pricing, and these were the two highest hours of the day. However, the “high prices 2 hours” card has instead wanted to turn them off like this:

9-10, 11-12. Looking back over the history, it’s actually been locked at 9-10, 11-12 as the high prices of the day. At least as far back as November 10th has been the same times of day from that flow card.

---

<div class="post-metadata">

**Author:** ![Sportswagoneer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sportswagoneer/32/48012_2.png) [@Sportswagoneer](https://community.homey.app/u/Sportswagoneer)\
**Post date:** [November 20, 2022, 10:14am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/231 "2022-11-20T10:14:19Z")

</div>

Thanks for the app! It’s been really helpful for quite some time!

However, I’ve noticed recently that the heating Controller sometimes does not trigger ECO mode when it should - and remains in Day mode even after the period is set to end. Example in the pics below: This was a Sunday and the advanced settings for the bedroom is set to use comfort mode only between 9 and 10 in the morning - but it’s still on after 11…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/3/03a69eea58918b2f621688a8913825d8fd721b3d.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/3128e8c794e25c61a3cf1172713498b494a11d34.jpeg)

I’m running 6 different Heating controllers for different rooms in case that’s an issue. After noticing the issue, I restarted the app from the Apps page - but that didn’t make a difference.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 20, 2022, 11:03am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/232 "2022-11-20T11:03:52Z")

</div>

Yes, I will have a look at it

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 20, 2022, 11:05am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/233 "2022-11-20T11:05:11Z")

</div>

No, it’s supposed to be like that. Read about the “High prices X hours of the day” trigger on the top of this page.

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [November 20, 2022, 11:06am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/234 "2022-11-20T11:06:10Z")

</div>

Are you using the lastest version, v. 1.11.0. ?

---

<div class="post-metadata">

**Author:** ![Sportswagoneer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sportswagoneer/32/48012_2.png) [@Sportswagoneer](https://community.homey.app/u/Sportswagoneer)\
**Post date:** [November 20, 2022, 11:13am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/235 "2022-11-20T11:13:40Z")

</div>

Yes. v. 1.11.0.

---

<div class="post-metadata">

**Author:** ![Articate](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/articate/32/57311_2.png) [@Articate](https://community.homey.app/u/Articate)\
**Post date:** [November 20, 2022, 11:56am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/236 "2022-11-20T11:56:58Z")

</div>

Thanks! Constructively; might I suggest adding something to the title card, or at least the descriptive text to differentiate the two? 🙂 I was sure from checking them both that they did the exact same thing, inverted.

---

<div class="post-metadata">

**Author:** ![OysteinEn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oysteinen/32/48814_2.png) [@OysteinEn](https://community.homey.app/u/OysteinEn)\
**Post date:** [November 29, 2022, 7:09am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/237 "2022-11-29T07:09:14Z")

</div>

Today, the price logged by heating controller in NO2 at 06 was 3.63 NOK and at 07 it was 5.32 NOK. Still the following card did not trigger; “Current price is 25% below the average of the next 1 hour”  
Is there something I am missing here or is this a bug?

---

<div class="post-metadata">

**Author:** ![OysteinEn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oysteinen/32/48814_2.png) [@OysteinEn](https://community.homey.app/u/OysteinEn)\
**Post date:** [November 29, 2022, 8:31am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/238 "2022-11-29T08:31:11Z")

</div>

I have another flow with the same card using 30% and 3 hours that also should have triggered today, but did not. So something seems to be wrong with this card now - it has been working previously. I have sent you a diagnostic report; 62de445c-af90-41ad-9560-9eff07f980a7

---

<div class="post-metadata">

**Author:** ![Sportswagoneer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sportswagoneer/32/48012_2.png) [@Sportswagoneer](https://community.homey.app/u/Sportswagoneer)\
**Post date:** [December 2, 2022, 10:05am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/239 "2022-12-02T10:05:31Z")

</div>

I think I figured this out… When “End hour working day” and “hour finished at work” is the same - then the controller sometimes shows “night” even if it should show “day”. That messes it all up. Changing “End hour working day” from 17 to 17,1 resolves the issue - but it will off course lead to the unnecessary turning on of heat for some 6 minutes in the evening. Not a lot of power - but “messy”. It would be great if the controller app could handle the scenario when these settings are the same…

---

<div class="post-metadata">

**Author:** ![Sportswagoneer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sportswagoneer/32/48012_2.png) [@Sportswagoneer](https://community.homey.app/u/Sportswagoneer)\
**Post date:** [December 2, 2022, 1:27pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/240 "2022-12-02T13:27:17Z")

</div>

Edit:  
The controller jumped down to eco again at 12:00 and shows “night” even if it’s a Friday. Could the working/non working day be off??  
This is the only one of my 6 controllers to show this behavior. I event tried to remove it and set up a new controller with a slightly different name to “reset” it.

---

<div class="post-metadata">

**Author:** ![Sportswagoneer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sportswagoneer/32/48012_2.png) [@Sportswagoneer](https://community.homey.app/u/Sportswagoneer)\
**Post date:** [December 2, 2022, 2:15pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/241 "2022-12-02T14:15:24Z")

</div>

Yep!  
If I change end of non-working day to 17, then it pops back to “Day”. The only problem is that today is Friday which is a working day - there’s no holiday in Norway today - and the other controllers consider today a working day……!  
(I also tried to remove one other controller, bringing the total down to 5 - but the bedroom controller is still off!)  
EDIT: Submitted a diagnostic report:  
6a13e0b8-4cdd-458c-8d44-d616e8a40c6e

---

<div class="post-metadata">

**Author:** ![KajLehtinen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kajlehtinen/32/42837_2.png) [@KajLehtinen](https://community.homey.app/u/KajLehtinen)\
**Post date:** [December 3, 2022, 10:14am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/242 "2022-12-03T10:14:09Z")

</div>

Hi!

I havent found a way to solve the below request with existing functionality, so see this as a feature request.

The need that I have is a trigger/condition that feeds a local variable that calculates how many hours are above average price per day?

That way I can use that value to calculate & set how much remaining W effect the battery storage system should use if I want to run it in price shaving mode.

Basically I could then run the following rules

- Each hour calculate max discharge for price shaving, by setting variable X to (remaining SoC\*total Effect)/HoursAboveAverage
- if the price changes, and its above average set a discharge according to variable X otherwise set it to something lower.

With such rules I can ensure that I get max remaining effect out of the battery for the day during each of the hours when the price is above average and hence max price shaving. Ofcourse I adjust the total effect so that the batteries isn’t run down to 0%.

Best regards,

Kaj Lehtinen

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 7, 2022, 12:54pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/243 "2022-12-07T12:54:00Z")

</div>

Does the “at work” setting also work on weekends?

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 8, 2022, 9:31am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/244 "2022-12-08T09:31:48Z")

</div>

Obviously not, now, is there a way to programmatically override weekends and holidays and have an „at work“ setting for 7 days a week?

---

<div class="post-metadata">

**Author:** ![Fredrik\_Wigden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_wigden/32/17305_2.png) [@Fredrik\_Wigden](https://community.homey.app/u/Fredrik_Wigden)\
**Post date:** [December 10, 2022, 10:29am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/245 "2022-12-10T10:29:51Z")

</div>

I have some problems to set holiday and work days.  
I get an error message that “args is not defined”.

The two flows abow (Set away and Activate) is just for troubleshooting, In my first test i route it directly to Not a holiday and holiday.

What I want is to set Saturdays as workingdays.

/F

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

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 10, 2022, 10:31pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/246 "2022-12-10T22:31:28Z")

</div>

> [@Fredrik\_Wigden](#):
>
> What I want is to set Saturdays as workingdays.

I second that, and actually one should be able to set any day as a working or non-working day. I just fear it makes things more complex …

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [December 11, 2022, 6:25am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/247 "2022-12-11T06:25:00Z")

</div>

> [@thobu](#):
>
> one should be able to set any day as a working or non-working day

Yes, you can by using the ‘Holiday today’ / ‘Not a holiday today’ action.

Here is version 1.11.1 with a fix for the “args is not defined” bug:

> **[Heating Controller](https://homey.app/no-no/app/no.almli.heatingcontroller/Heating-Controller/)**
>
> Heating schedules with utility price support

---

<div class="post-metadata">

**Author:** ![thobu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thobu/32/18357_2.png) [@thobu](https://community.homey.app/u/thobu)\
**Post date:** [December 11, 2022, 9:16am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/248 "2022-12-11T09:16:48Z")

</div>

> [@balmli](#):
>
> Yes, you can by using the ‘Holiday today’ / ‘Not a holiday today’ action

is this the proper way to do it? The goal is to have no weekends/holidays, or can I even skip the interim step?

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

[Previous page](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795.md?page=11)

[Next page](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795.md?page=13)
