Entity-filter missing title, image and ui-lovelace config

Hi All,
I’ve been away for a while, comeback and found I need to bite the lovelace bullet.
I’m doing it via YAML mode
and I have an :-

lovelace:
  mode: yaml

Statement in my configuration.
In my ui-lovelace.yaml file i have various views and within those various cards.
I have 3 chromecasts and the 2 off TV ones are powered from the TV’s so they drop out (see picture)
Chromecasts
This looked fugly so I made it into an entity-filter (also in picture) The problem is I can’t seem to get a title to stick to it. I’ve tried various options followed the config suggestions but nothing helps and usually just drops the whole card (if it doesn’t turn it into one of the luvley red ones !)
here’s my config from the ui-lovelace.yaml
I’m prolly just doing something plain stupid but I can’t see it

    # View tab title.
  - title: Media
    icon : mdi:music
    cards:

    - type: entity-filter
      title: Chromecast Media
      name: Chromecast Media Stuff
      show_header_toggle: false
      entities:
      - entity: media_player.living_room_tv
      - entity: media_player.living_room_speaker
      - entity: media_player.front_room_tv
      state_filter:
      - "off"
      - "idle"
      - "casting"

    - type: entities
      title: Chromecast Media
      show_header_toggle: false
      entities:
      - entity: media_player.living_room_tv
      - entity: media_player.living_room_speaker
      - entity: media_player.front_room_tv

Any help or suggestion would be welcome
I apreciate that this suggests something similar to Petro’s suggestion using conditional cards but, it seems a bit clunky for a simple list [Dynamically change lovelace card]
Cheers
Mutt

you’re config for the card is a bit off.

here are the docs for that card:

According to those docs there is no available option for name on that card. Only on the included card if you have one.

so, taking those docs into account then here is an example of one I use that has a title:

  - type: entity-filter
    show_header_toggle: false
    show_empty: false
    card: 
      type: glance
      title: Various Notifications
    state_filter: 
      - "on"
    entities:
      - binary_sensor.ha_update_avail_template
      - binary_sensor.potential_breaking_changes
      - binary_sensor.haapi_mqtt_test
      - input_boolean.low_batteries

And here is the result:

ex

or you could do the same using just an entities card like this:

  - type: entity-filter
    show_header_toggle: false
    show_empty: false
    card: 
      type: entities
      title: Various Notifications
    state_filter: 
      - "on"
    entities:
      - binary_sensor.ha_update_avail_template
      - binary_sensor.potential_breaking_changes
      - binary_sensor.haapi_mqtt_test
      - input_boolean.low_batteries

and here is that one:

ex2

finity,
Many Thanks

  1. for responding so quickly
  2. pointing me at something, I had read (but clearley don’t understand … still ! ; - ((( )
    I eventually played with your suggestions until they provided the required output
      - type: entity-filter
        show_header_toggle: false
        show_empty: false
        card: 
          type: entities
          title: Chromecast Media
        state_filter: 
          - "on"
          - "off"
          - "idle"
          - "casting"
        entities:
          - entity: media_player.living_room_tv
          - entity: media_player.living_room_speaker
          - entity: media_player.front_room_tv

I thought that YAML was supposed to be both a structured and contextual file, so views, beget cards and cards beget content. But it seems there is ‘type’ between them and that is more important. I’m going to have to read up on this - and more importantly study more examples.

It does seem that whatever you or I have tried we have not managed to get rid of the header toggle, is this a known bug then ? Has it been reported ? I’ll have a look through issues and report it if not

Thanks again
Mutt

i honestly didn’t try to get rid of it in that example since it was a temporary change to an existing card.

but to get rid of the toggle just move the “show_header_toggle:” line to inside the "entities: card config:

  - type: entity-filter
    show_empty: false
    card: 
      type: entities
      title: Chromecast Media
      show_header_toggle: false
    state_filter: 
      - "on"
      - "off"
      - "idle"
      - "casting"
    entities:
      - entity: media_player.living_room_tv
      - entity: media_player.living_room_speaker
      - entity: media_player.front_room_tv

finity,
You are a genius !
Thank you !

1 Like

Your comment also helped me to realize that I didn’t even need the “show_header_toggle” where I originally had it. It was pointless since it wouldn’t do anything there in any way - either for the entity-filter card or the embedded glance card.

So thanks for that.