Playing with templates. (not the legacy way, but the “new” way) See docs…
In tht “state” part of the template, I can reference an attribute like “this.attriibutes.myattributename”
Isn’t is possible in the “attributes part”, to reference to another attribute?
I get errors in the logging that it doesn’t “know” the referenced attribute.
Someone had a problem with this too? Or, isn’t it possible.
You might be hitting this issue: Template variable error: 'this' is undefined when rendering · Issue #70359 · home-assistant/core · GitHub
TL;DR: Attributes have to be guarded against not being defined, because the order of their definition cannot be guaranteed during startup.
1 Like
That’s not good.