Script - Delay based on helper value (template)

Seems to work for me.
I’m thinking it could be because you have delay and minutes on the same line.
I have never seen it.

action:
  - delay:
      hours: 0
      minutes: '{{ states(''input_number.test'') | int }} '
      seconds: 0
      milliseconds: 0
  - service: notify.notify
    data:
      message: aaa
mode: single
5 Likes