Home

Awesome

Entity attributes

Entity attributes allows you to show basic attributes from multiple entities.

enitty-attributes-card

Options

NameTypeDefaultDescription
typestringRequiredcustom:entity-attributes-card
titlestringoptionalA title for the card
heading_namestring'Attributes'Heading of the attribute column
heading_statestring'States'Heading of the states column
filterobjectRequiredA filter object that can contain include and exclude sections

⚠️ include and exclude can be simple lists (format [domain].[entity].[attribute]) or objects of type below. [attribute] can also be a pattern.

NameTypeDefaultDescription
keystringRequiredA pattern for the attribute. Example: media_player.bedroom.media_title
namestringoptionalA string to replace the actual attribute name with
unitstringoptionalA string to append an arbitrary unit to the value

Example

- type: custom:entity-attributes-card
  title: Attributes Card
  heading_name: List
  heading_state: States
  filter:
    include:
      - key: climate.hvac.*
      - key: media_player.bedroom.app_name
        name: Application
      - key: media_player.bedroom.media_title
        name: Media center
      - climate.heatpump.current_temperature
      - vacuum.xiaomi_mi_robot.battery_level
        unit: %

How to embed this inside entities card:

screen shot 2018-07-09 at 13 47 38

- type: entities
  title: Entities card
  entities:
    - media_player.bedroom
    - type: custom:entity-attributes-card
      entity: media_player.bedroom
      filter:
        include:
          - media_player.bedroom.app_name
          - media_player.bedroom.media_title
    - sensor.short_name
    - sensor.battery_sensor