Lovelace - Actions - Use dynamic values for confirmation text

You can’t just use templates in Lovelace, you need something like this →

Try installing the card and see if you can get it to work.