I’ve a dynamic Zonneplan dynamic energy contract, energy pricing changes per hour. The Dishwasher, washing machine etc, takes about 2 to 3 hours. I want to determine the lowest energy price during 3 sequential hours. In other words, determining the best three hours to which on one of the appliances. Any suggestions on how to do this?
The code to determined the cheapest hour I’ve found on the internet is:
Thanks, this Macro is looking promosing, this is what I need.
Try to understand how to use this macro is still a bit of a challenge for me. Need to reread the documents, but for me they are not so clear yet on how to use the macro.
I’ve installed the Macro via HACS, that was something easy.
What is next? I want to know the cheapest 3 hours for the upcoming Zonneplan energy pricing forcast so that I can start the dishwashing machine. How do I do that? That is my main challenge at the moment.
Everyday Zonneplan announces the new energy pricing at 13.00 and last until 0.00 the day after, meaning about max 35 hours forecast. At this moment there is not specific time when the dishwasher needs to be switched on, but lets say within 12 hours or so. Does this answer your question?
My mistake, I didn’t change the sensor name. Sorry. I thought the cheap_energy was a reference or so to the Macro. I’ve got it working now.
This is my output now: 2024-10-10T12:45:00+02:00
How should I read this output? Cheapest price is on 10 October at 12:45 + 2 hours? If so, then I don’t understand why X:45! Zonneplan has different pricing per hour, not per 45 min or so.
Aha, still learning, de X:45 is was because of the input parameter. I’m going to play with the Macro and see how I can use it. Excellent. this is looking good. Thanks for the support.
@TheFes are you able to give me some hints with regards to creating the template sensors? My goal is, when the door of the Dishwasher is closed and remote start is set that at that moment the cheapest time is determined and the time trigger to start the Dishwasher via an automation is set.
Following the examples I’m not able to work this out. Creating an Automation when the door is closed and with the condition is Remote start is set is possible, but how to execute the macro to determine the time and howto set the time for the next automation? That is my challenge at the moment.
You need to create a trigger based template sensor, which triggers on the door closing and the program being set. Trigger based template sensors can only be created using YAML, they can’t be created in the GUI.
Is there also a sensor indicating the duration of the set program?
This template sensor will then give the start time of the program. You can then use that in an automation to actually start the dishwasher.