Replies: 1 comment
-
entity.attributes.attribute_name If you had a climate entity with an attribute of room_temperature, you could reference it as entity.attributes.room_temperature |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
first of all, thank you for this custom card - it is simply awesome.
I am redoing my dashboard thanks to your card and I usually work heavily with templates.
However, one thing I could not figure out is the use of an entity's attribute in a template.
the
entity.state >= 70
in the if statement made me wondering if I could specify the attribute here as well.So far using Jinja2 templating did not work for me, e.g.
{{ state_attr("sensor.xyz", "attribute1") }}
is not resolvable.Any suggestions/thoughts are welcome.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions