custom-cards / entity-attributes-card

Entity Attributes
Apache License 2.0
68 stars 12 forks source link

0.106 breaks it #13

Open IanAdd opened 4 years ago

IanAdd commented 4 years ago

Further to previous warning by thomasloven. It now appears broken in 0.106.2

              - entities:
                  - entity: media_player.lounge
                  - filter:
                      include:
                        - media_player.lounge.media_album_name
                        - media_player.lounge.media_title
                        - media_player.lounge.media_artist
                        - media_player.lounge.source
                        - media_player.lounge.sonos_group
                    type: 'custom:entity-attributes-card'
                show_header_toggle: false
                title: Lounge
                type: entities

gives....

HA_e_a_card

kaosmagix commented 4 years ago

This is the issue as predicted by thomasloven (issue #12 )

kaosmagix commented 4 years ago

Will this issue be fixed? Is the developer still active? Is there an alternative?

IanAdd commented 4 years ago

Will this issue be fixed? Is the developer still active? Is there an alternative?

The multiple-entity-row enabled me to achieve the same(similar) effect. To get this to be as compact as the entity-attributes-card I had to also use card-mod. This makes for a very verbose definition but works fine. I'll add a card for a media player that is where I use it so you can see what I achieved. Hope it helps.

entities:
  - entities:
      - attribute: media_album_name
        name: false
    entity: media_player.attic
    icon: nothing
    name: Album
    show_state: false
    style: |
      state-badge {
        height: 17px;
      }
    type: 'custom:multiple-entity-row'
  - entities:
      - attribute: media_title
        name: false
    entity: media_player.attic
    icon: nothing
    name: Title
    show_state: false
    style: |
      state-badge {
        height: 17px;
      }
    type: 'custom:multiple-entity-row'
  - entities:
      - attribute: media_artist
        name: false
    entity: media_player.attic
    icon: nothing
    name: Artist
    show_state: false
    style: |
      state-badge {
        height: 17px;
      }
    type: 'custom:multiple-entity-row'
  - entities:
      - attribute: sonos_group
        name: false
    entity: media_player.attic
    icon: nothing
    name: Sonos Group
    show_state: false
    style: |
      state-badge {
        height: 17px;
      }
    type: 'custom:multiple-entity-row'
show_header_toggle: false
show_state: false
type: entities