[SOLVED] Music fade out script with variables from lovelace

I’m not sure this will work either but try this:

- delay: 
    minutes: >
      {{ fade_mins }}

You’re actually passing the template to the script. Lovelace does not evaluate templates. Not without this anyway: