The only thing I can see are direct entity state values, or custom cards to do custom things. How can I display an entity’s attribute instead of it’s state value?
e.g.
An entity has an attribute ip_address and I want to show that using Entity:
- entities:
- entity: sensor.iot_devices_status
name: IoT IP Address
// ?? show sendsor.iot_devices_status[ip_address] ??
type: entities
The traditional way to display an entity’s attribute is to create a Template Sensor whose template extracts the attribute’s value. In other words, the Template Sensor acts as a proxy for the attribute. You can then use a standard card (entities, glance, etc) to display the Template Sensor’s state.
Obviously this can be tedious if you have a lot of attributes to display. There are custom cards able to display attributes directly without using a Template Sensor as a proxy.
I’ve figured out how to do it. Turns out there IS a way in the normal Lovelace UI. There is an enitites: type of attribute that does exactly this, docs:
I think this built-in option can only show one. I know there are custom lovelace addons that can do more, though. Maybe try multiple entity row or Fold Entity Row?