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

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [December 15, 2021, 8:34am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/145 "2021-12-15T08:34:14Z")

</div>

Hi @balmli

Could it be possible to implement condition card “Current price is among the xx highest/lowest hours of the **next** yy hours”

The usecase is for example car charging that you plug in at 18.00 and want that 8h charging is made by the time of 8.00 at next day.

The flow card “Current price is among the xx highest/lowest hours of the day” makes almost this but in the 00.00 hour makes point of discontinuity for the control. For example it might want’t to charge during 22-24 hours because the price is lowest of the current day, but it might be still high compared to prices of the next 24h (or night).

Example below where there is nordpool price and car charging amperage. The 22-00 hour charging should be made between 6-8 hour.

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

---

<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 15, 2021, 10:57am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/146 "2021-12-15T10:57:05Z")

</div>

I guess you can use the new condition:

`Current price is among the 8 hours of lowest between '22:00' and '08:00'`

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [December 15, 2021, 12:21pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/147 "2021-12-15T12:21:31Z")

</div>

Yes and no 😉 It’s not exactly the same but can be used to some extent.

The point is that one could detected the cheapest hours during some period ahead of this time.

With the condition lowest price between start and stop time, could the start and stop time be set with variable? For example if I plug the car into charging at 15.52 it would be possible to write the time value into variable and use that as start time? The end time would be in this example at 7.00 next day when the car needs to be charged.

---

<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:** [December 16, 2021, 1:07am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/148 "2021-12-16T01:07:24Z")

</div>

Have tested the latest conditions and there seems to be a problem.

Made this flow to test:

[https://homey.app/f/m38N0T](https://homey.app/f/m38N0T)

It triggered at both 2, 3 and 4 in the morning yesterday, so it seems to trigger on all the consecutive hours, and not just the first one.

---

<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 16, 2021, 6:29am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/149 "2021-12-16T06:29:30Z")

</div>

That’s by design, I’m afraid.

If you trig within the time window the condition will say Yes ! Otherwise no.

---

<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:** [December 16, 2021, 11:48pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/150 "2021-12-16T23:48:32Z")

</div>

Ok, I guess I can work with that, no problem 👌🏻  
Thank you again 😁

---

<div class="post-metadata">

**Author:** ![AsgeirK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/asgeirk/32/45216_2.png) [@AsgeirK](https://community.homey.app/u/AsgeirK)\
**Post date:** [December 26, 2021, 10:23pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/151 "2021-12-26T22:23:59Z")

</div>

Could you add a condition “Difference between highest and lowest price is less than/more than x%”. I’m using the HC to control the hot water tank (on 8 cheapest hours) and this condition could turn off this logic when price is almost constant during the day like it has been the recent days.

---

<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:** [January 3, 2022, 6:57am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/152 "2022-01-03T06:57:07Z")

</div>

OK, 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:** [January 4, 2022, 11:26am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/153 "2022-01-04T11:26:15Z")

</div>

v. 1.8.0 is ready for testing:

- Added condition: ‘Difference between highest and lowest price is less / more than X %’

Use the link below to get access to and install the test-version:

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

---

<div class="post-metadata">

**Author:** ![AsgeirK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/asgeirk/32/45216_2.png) [@AsgeirK](https://community.homey.app/u/AsgeirK)\
**Post date:** [January 4, 2022, 11:59am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/154 "2022-01-04T11:59:58Z")

</div>

How do you calculate? Is lowest price 100% or is highest price 100%? Could you also add the percent to a variable so it can be written to log?

---

<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:** [January 4, 2022, 12:10pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/155 "2022-01-04T12:10:11Z")

</div>

(highest - lowest) / lowest \* 100

---

<div class="post-metadata">

**Author:** ![JPstairs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpstairs/32/51863_2.png) [@JPstairs](https://community.homey.app/u/JPstairs)\
**Post date:** [February 17, 2022, 2:29pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/157 "2022-02-17T14:29:12Z")

</div>

I am wondering what hardware can be used with this Heating controller app? So sensors and relays? Maybe a stupid question since I just stared with Homey.

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [February 17, 2022, 4:06pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/158 "2022-02-17T16:06:03Z")

</div>

I think there is a bug in the app. It looks like the prices updates with a slight delay (around 1 minute past every hour). It looks like it is the same in the Strømregning App.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/25b2fb0c70572c97a0b8474117f9adc095023069.jpeg)

---

<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:** [February 17, 2022, 5:39pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/159 "2022-02-17T17:39:33Z")

</div>

That’s up to you. You can control termostats, wall plugs or any device actually.

---

<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:** [February 17, 2022, 5:40pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/160 "2022-02-17T17:40:50Z")

</div>

Well, lots of reasons why it’s like this. And not anything that will be changed.

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [February 17, 2022, 5:59pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/162 "2022-02-17T17:59:31Z")

</div>

I see. What do you recomended to use as a trigger to check if the price is within the lowest 5 of the coming hours. My plan was to use a hourly trigger but then I guess it will check the “old” price sine it is run exactly when the hour change. [Shared Flow | Homey](https://homey.app/f/SmZQ8Y)

---

<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:** [February 17, 2022, 6:54pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/163 "2022-02-17T18:54:57Z")

</div>

WHEN: HeatingController: Utility price changed,

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [February 18, 2022, 10:12am UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/164 "2022-02-18T10:12:13Z")

</div>

New questing/bug. When I have the Flow to turn the boiler on during the lowest 6 prices between 20:00 and 08:00. It looks like it actually has the boiler on for 8hours (FYI the plug report consumtion when it is on). Also it looks like it didn’t really choose the lowest hours.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/637a23096254fa9fa9fb49098478e35382fe7f13.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/845262b35105c1b6460d47674caaf1a65ae56a53.png)

---

<div class="post-metadata">

**Author:** ![AsgeirK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/asgeirk/32/45216_2.png) [@AsgeirK](https://community.homey.app/u/AsgeirK)\
**Post date:** [February 21, 2022, 3:56pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/165 "2022-02-21T15:56:44Z")

</div>

> [@AsgeirK](#):
>
> “Difference between highest and lowest price is less than/more than x%”.

After using this for a while, I am asking for one more feature, is it possible to have “Difference between highest and lowest price is less than/more than x kr/øre”? I think it’s better to use an absolute difference between highest and lowest price than a percentage.

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [February 23, 2022, 7:02pm UTC](https://community.homey.app/t/app-pro-heating-controller-with-utility-prices/7795/166 "2022-02-23T19:02:18Z")

</div>

Isnt that possible to get by multiplying the % with the price?

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

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