Circadian temperature?

I would like my home temperature to follow a natural circadian rhythm. How could I easily do that? Is there a sine wave function I could use to control a generic thermostat?

https://www.home-assistant.io/docs/configuration/templating/#numeric-functions-and-filters