Using fold-entity-card with monster card

Hi,

I currently have a set of docker containers I monitor with the docker_monitor custom component by @Sanderhuisman

To show the data I use the fold-entity-card by @thomasloven
Now, instead of specifying each of the entities I’d like to use monster-card to include all entities with a name containing a certain wild-card as the folded entities list

My current yaml section looks like that:


  - type: entities
    title: Docker Containers
    show_header_toggle: false
    entities:
      - type: custom:fold-entity-row
        head: sensor.docker_admin_cloud9_status
        items:
          - sensor.docker_admin_cloud9_cpu_use
          - sensor.docker_admin_cloud9_memory_use
          - sensor.docker_admin_cloud9_memory_use_percent
          - sensor.docker_admin_cloud9_network_speed_down
          - sensor.docker_admin_cloud9_network_speed_up
          - sensor.docker_admin_cloud9_network_total_down
          - sensor.docker_admin_cloud9_network_total_up
          - sensor.docker_admin_cloud9_up_time

The part I’d like to replace with the monster card is where I state all the different monitored conditions for this container (i.e., network_total_up, etc)

Any help will be appreciated

Monster-card doesn’t work with custom stuff, which is why I made auto-entities.

1 Like

Thanks @thomasloven,

It was easy enough to implement, I appreciate your work on all these cards
Do you think there’s a shorter way to achieve what I’ve done here:

  - type: entities
    title: Docker Containers
    show_header_toggle: false
    entities:
      - type: custom:auto-entities
        card:
          type: custom:fold-entity-row
          head: sensor.docker_admin_cloud9_status
        filter:
          include:
            - entity_id: "sensor.docker_admin_cloud9*"
          exclude:
            - entity_id: "*status*"
      - type: custom:auto-entities
        card:
          type: custom:fold-entity-row
          head: sensor.docker_admin_duplicati_status
        filter:
          include:
            - entity_id: "sensor.docker_admin_duplicati*"
          exclude:
            - entity_id: "*status*"
      - type: custom:auto-entities
        card:
          type: custom:fold-entity-row
          head: sensor.docker_admin_organizr_status
        filter:
          include:
            - entity_id: "sensor.docker_admin_organizr*"
          exclude:
            - entity_id: "*status*"         

Well… you could remove six lines in total by using regex matching instead of wildcard globbing (another improvement over monster-card)… but I doubt it’s worth learning regex for that…

I’m familiar with regex but as you said, doesn’t seem to be worth the trouble
Thanks again for the development of the custom cards and your prompt responses

Is this available in the HACS?

Everything is.