HA alarm clock that can be changed

Hi,
I am still learning home assistant but need help with an alarm clock. Right now below is the code for what I have tried but I want to have my alarm clock trigger when a helpers time matches the current time. I am using a helper because I thought it would work but I am open to suggestions. Any help would be great! Thanks

alias: Alarm
description: ""
trigger:
  - platform: template
    value_template: >-
      {{ states('input_datetime.alarm') == now().strftime('%Y-%m-%d %H:%M:%S')
      }}
condition: []
action:
  - device_id: 872c2fea3eb26cc1fa8669a
    domain: mobile_app
    type: notify
    message: Triggered
mode: single

This works for me as automation template trigger. Trigger 10 min before set alarm.

{{ now() > today_at(states(‘input_datetime.mila_alarmclock’)) - timedelta(minutes= 10 | int) }}

1 Like