How to make template sensor with as_timestamp update regularly?

A template sensor needs some entity with state changes to update


You can use the Time & Date component

and add it to your sensor.