Hi,
I created a time-only input-datetime helper.
I want to create an automation that is triggered 30 minutes before the time specified in the input-datetime helper.
This is what I have:
alias: Sauna inschakelen 30min voor gewenste tijd
description: ""
triggers:
- value_template: >-
{{ now().strftime('%H:%M') == (states('input_datetime.sauna_klaar') |
as_datetime - timedelta(minutes=30)).strftime('%H:%M') }}
trigger: template
I must have done something wrong, since it doesn’t trigger.
What have I done wrong?