I am trying to create a custom button template and call it within a view.
My intention is to use a horizontal custom layout card for a top bar icon display that will populate those icons from a list stored in a sensor attribute. That list will contain the names of the defined template values. I can write all of this.
The problem comes in with being able to access the defined values in the template. I've made a small dashboard and view to show where I am struggling:
You can see from the image that it is not finding the template for the third button. Where am I going wrong?