Can I use templates in customize.yaml? I want to create a custom attribute where the value is built from a template, but it doesn’t work. Something along the lines of:
In the above case, sensor.my_attributes is an MQTT sensor that has an attribute called xiaomi_2_reason. What I’m seeing is the attribute is just being set to that string, and the template is not being interpreted. The template does work in Developer Tools.
In reality, I’m trying to do a hack to get custom attributes on an existing entity that I can set.