How do I find the cheapest 4 hours from now to next 7AM?

I am writing a flow for smart EV charging where I want to automatically enable charging for the 4 consecutive hours with the lowest electricity price before 7 AM.
How can I determine when to start the 4 hour charging period while being flexible on when the car is being plugged in. Sometimes the car is plugged in at noon, sometimes at midnight. Irrelevant of when it’s plugged in, I want it to find the cheapest 4 hours before 7AM.

You have to look at the app power by the hour:

Hi @Wilfred_Greven . I have been looking at Power by the Hour, but I just don’t seem to find a card that says “The next hour is one of the x cheapest before <7 AM>”. Do you have a suggestion on how to do it?

See the picture. The card is there, and more…

Please check the PbtH app topic for more Q&A, you’re not the first ‘struggling’ with this

Sorry to bring this up again but I think we need actual instructions for this.
If many of us, including me, is struggling with this, can you please share how to do it?

I’m guessing it’s a language barrier issue or similar but I really can understand which card to pick for this?

I’ve got a flow that if the water boiler hasn’t been on for 48 hours I want Homey to look up the coming 24 hours and pick the four cheapest consecutive hours and start the boiler.

This one only works for 8 hours or rest of day.


If the 48 hours happens at 23:30 and it won’t help much

In the apps page it shows a card in Swedish that is slightly better perhaps but still faces the same issue.


Rougly translated to The average price for the [duration] period will be lowest between [start time] and [end time].
In the English version this isn’t showing any “between” cards.
I only have before o’clock which means that if the 48 hours happens at 23:30 and I set before 23:59 o’clock it won’t help much.

Can you please share how to set this up?

TIA!

BR
Per