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.