Remove the quotes surrounding the template.
Only on single line templates on the same line as state: should you add quotes.
You used > and new line, that should not have quotes
Thanks! That was it. TIL. It also allowed me to figure out that hitting “All YAML configuration” is enough to reload templated entities in configuration.yaml. A full restart isn’t necessary.
As Hellis said, you were using quotes where they weren’t needed… but you are also using if/then where it isn’t needed. Just use the comparison directly in an expression:
A restart is necessary when adding a new file or a new integration. If you’re only reloading template entities, you don’t even need to use “All YAML configuration”. You can just scroll down to the “Template Entities” button in the YAML tool and use that.