You can look at my config:
https://github.com/LaStrada/Home-AssistantConfig/blob/master/automation/heat_office.yaml
This is for my office (“kontor” in Norwegian) / guest room. I have used input sliders to set the temperature and hard coded the time this will be triggered. Also have a “guest mode”, so if I’m having guest spending the night the temperature will not be changed by the automation scripts.
Also have this for other rooms, just look at the heat_* files:
https://github.com/LaStrada/Home-AssistantConfig/tree/master/automation
This works for me, but it requires some configuration.
If you don’t want to hard code the time, you can look at this thread: