Replies: 1 comment
-
The template card instructions show that entity can be used as a template holder:
|
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,
I am successfully using {{entity}} as place holder for the actual entity when using custom mushroom card.
However, it is not working within the tap action.
Here is my code:
So,
primary: '{{ state_attr(entity, ''friendly_name'')}}'
is correctly being treated asprimary: '{{ state_attr(binary_sensor.irrigation_unlimited_c2_z3, ''friendly_name'')}}'
whereas in tapaction'sentity_id: {{entity}}
the entity is not being replaced by its actual id.Any idea why?
Thanks
Martin
Beta Was this translation helpful? Give feedback.
All reactions