According to the templating page, the time trigger automation syntax is as follows:
automation:
trigger:
platform: time
# When 'at' is used, you cannot also match on hour, minute, seconds.
# Military time format.
at: '15:32:00'
Rather than 15:32:00, I need to use a time specified from the frontend. I’m using the following sensor for time:
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
- 'beat'
And the specified time is set with this:
input_number:
wakeup_hour:
name: Hour
icon: mdi:clock-in
initial: 6
min: 0
max: 23
step: 1
wakeup_minutes:
name: Minutes
icon: mdi:clock-in
initial: 30
min: 0
max: 59
step: 1
wakeup_duration:
name: Light Fade-In Duration
icon: mdi:clock-in
initial: 10
min: 5
max: 60
step: 5
input_boolean:
wakeup:
name: 'Enable Wake Up Light'
icon: mdi:power
initial: off
Reformatted like this:
- platform: template
sensors:
wakeup_time:
friendly_name: 'Alarm Time'
value_template: '{{ "%0.02d:%0.02d" | format(states("input_number.wakeup_hour") | int, states("input_number.wakeup_minutes") | int) }}'
How do I modify the trigger at the beginning of the post to trigger at the wakeup_time?