Is there a simple syntax I can use to get the device name for an entity? I have devices installed via an integration and each device has a number of sensor entities. I want to display one of these sensors in a list with the value of the sensor and the name of the device it belongs to.
{{device_attr(your_entity_id, 'name')}}
1 Like
Hello Profile - antamy - Home Assistant Community,
device_entities(device_id) returns a list of entities that are associated with a given device ID. Can also be used as a filter.
Found with an easy search.
Thanks. I was searching everywhere for entities, I didn’t expect this to be under devices.
great, except that’s not what I was looking for.