[APP][Pro] Heating Controller with utility prices

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.

1 Like

I guess you can use the new condition:

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

Yes and no :wink: 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.

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

Made this flow to test:

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.

That’s by design, I’m afraid.

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

Ok, I guess I can work with that, no problem :ok_hand:t2:
Thank you again :grin:

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.

1 Like

OK, I will have a look at it

1 Like

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:

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?

(highest - lowest) / lowest * 100

1 Like

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.

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.

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

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

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

WHEN: HeatingController: Utility price changed,

1 Like

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.


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.

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