How to set a variable as target temperature for HAVC automation

I everybody.
I’m struggling to find a way to put a variable as target temperation for HVAC automation.
Could someone help me please?

You will need to use Templating.

What type of “variable” will you be using?

I use scheduler to manage the changes. I have a schedule for heat and cool.

You can have as many changes as you want during the day.