Help with automation template sensor

Hve you checked this one:
Alarm clock: Alarm clock