[APP][Pro] Power by the Hour: Insights per hour, day, month and year

I have created a working flow for my heating system. Homey adjusts the target temperature according to “price now” provided by Power by the Hour app. (picture).

The question is: How to get Homey to pick three most expensive hours of each day, when the all price hours of that day are less than 0,15 euros and adjust the target temperature lower in those hours than it is in the working flow already.

All ideas appreciated!

Hi @Jari_Peuhkurinen ,
first of all there are some issues with your flow.

  • On cold days wit* h high prices (over 0.25) the heating will never be turned on after being turned off due to the high price.
  • I hope the temperature can be set also when the heater is switched off, as you can not be sure which of the parts of the flows are started first, when the price drops below 0.25.
  • On warm days the heater temperature will run depending on the prices although you don’t need it.
    And to your question:
    If you know, how many hours the heater has to run (depending on the temperature outside). I would use the cards you find in the description of PbtH. e.g. The price becomes one of the number lowest of today
3 Likes

In PbtH you can use the IF card “The price has changed”. (translated by Google from NL)
Then you can test it on your 0.25 €

If there is a same IF card for the temperature you can do the same there.

Hi @DirkH and thanks for the response.

Firstly I have a air-to-water heatpump and basically it runs all the time in winter time. Basic temperature setting in +20 degrees celcius and high prices set the temp to +18. Really high prices +0,25€ turn the heater off and I start my fireplace :slight_smile:

Only way to save on energy prices is lowering the desired room temperature when the price is high, so during those hours the pump will not run at all.

Mysterious are Homeys ways since the flow has worked as indented so far. No problems turning heater off when price exceeds 0,25€ and turning itself back on and choosing the temperature according to price.

But I can understand what you mean since there are two triggers when price becomes less than 0,25€.

On warm days the heater temperature will run depending on the prices although you don’t need it.

You mean that I could remove the first part of the flow when price is under 0,15€ euros? Then what happens when price becomes less than 0,15€? I haven’t would a way to tell Homey what is the normal temperature where to always return.

If you know, how many hours the heater has to run (depending on the temperature outside). I would use the cards you find in the description of PbtH. e.g. The price becomes one of the number lowest of today

I though about this, but then there are several triggers that would active same time leading to different temperatures. I need to make Homey understand when there is a day that price in any hours won’t exceed 0,15€, then it picks three most expensive hours and lowers the price on those hours. This way I can affect the avarage price I’m paying to the electric comppany.

Thanks for the reply @Theo_de_Koning

You mean insted of using the card “New price hours starts” I should use “The price has changed”?

Yes, you can indeed it putting there.

Then do the “Turn on” card on the yellow dot of the “Is greater then 0.25” card.
Blue line for “On” and yellow for “Of” there.

Look for the temperature if you can do the same.

1 Like

That’s a good idea :joy:. So I guess you feel when it is getting too cold, so you don’t need a message to start the fireplace.
Just a first adjustment to your flow would be like this:


Hope you can read it. They are mainly the same cards, just a little bit differently connected.
As I don’t have a heater I used a dimmer instead. :blush:

1 Like

I have a notification setup when the heater is about to turn off, so I can use the fireplace if nessesary :blush:

Okay now I see what you mean. I can work with that. Looks good. I have to make the adjustments and test that during the week.

1 Like

I receive the 24 hourly prices for the next day once a day.

Hi, price for Italy doesn’t work. The problem, my opinion is that the site of Italian regulator is changed. Let me know.

Hello it is a nice app but I think the active rates are no longer updated. I have been following it for a few hours in homey and the rate remains at 25 cents…
Now I had already looked here: https://enever.nl/api/activate.php?token=20063d4f307aa4d0290073126e92632jhgjh3gej1533e64006f7
Here you get all the hourly rate data from the Dutch suppliers. Sent in your browser like this:

{"status":"true","data":[{"datum":"2024-10-12 00:00:00","prijs":"0.091210","prijsAA":"0.263214","prijsAIP":"0.272264","prijsANWB":"0.290414","prijsBE":"0.263004","prijsEE":"0.268864","prijsEN":"0.262604","prijsEVO":"0.290414","prijsEZ":"0.292014","prijsFR":"0.267414","prijsGSL":"0.290414","prijsMDE":"0.290414","prijsNE":"0.261914","prijsTI":"0.263794","prijsVDB":"0.263894","prijsVON":"0.262014","prijsWE":"0.267414","prijsZG":"0.290414","prijsZP":"0.262014"}

But they don’t have an app for Homey… I don’t know how to build that up…:blush::sweat::+1::ok_hand::v:

Does anyone know how far ahead the condtion “The price is one of the X lowest in the next known hours” look. Since the maximum value is 20, does it only look at the next 20 hours or does it look all the way until midnight the next day?

It looks to all known future prices. You can see in the graph untill when that is.

1 Like

Maybe this is well known, but I though it might be helpful for someone else aswell.
Homey does not give Iphone users the ability to enter negative values (I have a negative addon to the spot price), when it is a number variable. But its an easy workaround. Just copy a negative value from outside Homey and paste it in the field.
Btw, this app is awsome! Thank you @Gruijter for making this!

1 Like

Many thx for your compliments and donation :smiling_face_with_three_hearts:. Much appreciated @Antohagg ! :beers:

1 Like

Any norweigans that have tried the forecast option? I get a lot of negative values (-2.2 etc). Am I doing something wrong or does this option not work in the nordics/norway?

Hello @Gruijter

Is there any possibility to add a calculated gain variable based on spot price to your app as described in here

Hi Robin @Gruijter ,

I’m using a Growatt Home battery and managing it with the “SolarEdge + Growatt TCP Modbus” app:

Normally, the Growatt inverter directs all excess power into the battery, but with the reduced sunlight in winter, I want to leverage my dynamic energy contract to smartly charge the batteries. The app allows up to 4 timeslots for this purpose.
Flow example to charge the battery from 1:00 to 5:00 in timeslot 1


I can also just make a single timeslot 0:00 to 23:59 and enable / disable the timeslot for a simple battery charge / discharge “switch”

I attempted to set up the Home Battery Monitor device, hoping to extract ideal charge and discharge data to optimize those timeslots. However, the setup fails, stating that no compatible devices are found. It appears the device only supports specific brands of home batteries. Is there no way to obtain generic charge/discharge data from it and integrate that information into flows?

Thanks for your help!

Each battery app uses its own ‘capabilities’ in Homey. If I know what capabilities this app uses for SoC (battery %) and for power in/out, I could add Growatt to the PBTH app.

I already have a similar capability called ‘rank’. It is not weighted, but gives you the ranking of this hour compared to all day and the next 8 hours. Can you work with that?

1 Like