Device name part of friendly name #555
Replies: 2 comments
-
HA is responsible for the display of names. It is not specific to this integration. |
Beta Was this translation helpful? Give feedback.
-
I see. I wasn't sure how much control over that is left to the integration. I tried the approach to add the entities from the device card, but the result is the same. For example, these sensors: Turn into this: I guess I'll switch from auto-entities to manually curated entity lists with custom names. Thanks for the feedback! |
Beta Was this translation helpful? Give feedback.
-
Currently, the device name seems to be included in the "friendly name" of entities. For example
{{ device_attr("switch.waschmaschine_eingeschaltet", "name") }}
->Waschmaschine
{{ state_attr("switch.waschmaschine_eingeschaltet", "friendly_name") }}
->Waschmaschine Eingeschaltet
This work well when you display multiple entities from different devices next to each other. However, when you group all entities of a single device, it is very repetitive:
Contrast that to the device page which doesn't do that:
Is there a way to access the
original_name
attribute visible in the entity registry which contains just the second part (Eingeschaltet
in the example above).{{ state_attr("switch.waschmaschine_eingeschaltet", "original_name") }}
returnsNone
unfortunately.Beta Was this translation helpful? Give feedback.
All reactions