Modify MQTT payload according to 24 hr timer

Hi,

I have an Arduino thermostat controlled via MQTT. I'd like to change my temperature set point higher in the morning and lower in the evening by a set amount. I was thinking of using BigTimer and a function node but I'm not sure how to monitor my set point topic & store it until the BigTimer triggers. Do I use 2 function nodes? One to save my set point changes to the flow context and another to read the flow context and build a payload when BigTimer fires?

Is a better/simpler way to do it?

Have a look at node-red-contrib-ramp-thermostat which allows a temperature profile to be configured, which you can then send to your Arduino. The node also includes a thermostat but you can just ignore that feature and use the profiling.

Thanks, for now I've figured it out but if I need a more complex schedule then I'll take another look at ramp-thermostat.