Value Template Syntax

You have an = character outside the template. Remove it.

This would have been a lot easier for us to spot if you had done this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16