i want to use node Red to optimize my PV System, my battery charger and my heat pump.
For this i have read an function that use the solar forecast of the day and calculate the optimal time where i have to switch my heat pump on and off.
The function give my two times:
But now i did not know the how i must do the last step
I can show this two values.. now problem, but if i read out
I will send an MQTT Message at 10:30 to my HeatPump to turn it on.
How can i read out this bestStartTime and send a message at this time?
Thank you very much
Have a nice day