Multiple Card Configuration?

Need help or ideas to configurate multiple cards in one settings
As example:
I Add multiple sensors by entity let’s say 20 or 30 searched and selected by “temperature” and select at the point ‘We created a suggestion for you’ I entered “Add to dashboard”

They ALL have the same Layout like the width and hight, visability, and at Config the Content (Like state content)

As example :

  • I want to have them all at 12 width instead of standard 6 width
  • I want set in Config / State Content not only state, but state AND Last changed
  • And like Visibility I want only show the Available cards

Maybe the is allready a easy way to do it, but I’m pretty new at Yaml and HA
and I have allready changed a lot of entity cards one by one manualy and just looking for a easyer way to do that …

GreetingZzz John.

You answer is most certainly here:

Hi kbrown01,
Thanks for responding.

That’s maybe a good solution, but way out of my Yaml knowings …

Maybe A little further explained and then somone says
“look there and there, that’s where you can change the default card settings”
You know what I meaning ?

Here I quick select what I want, in this case selecting the wifi signals from my
ESPHome nodes :

Left default results and right how I wish to have it :

Here the same but the editor closed, so the unavailable are not listed :

Result default in Yaml :

Results as I wanna have it in Yaml :

Are you saying that you need:

  1. A grid of Tile cards.
  2. Each Tike card - for an entity with “sensor.luxeflex_*_signal” enyity_id.

?

Allready have that, I just wanto change the standard values if I add them or a way to change the values in one command or setting

Still no one ?
Ok let’s change how I asked the question.
Not asking HOW I add a entity to the dashboard,
just I want to change somehow the default way it’s been added…
So like the STANDARD grid_option added with my own settings for coloms and rows.
And I want to have standard my ‘own’ state_content with

  • state
  • last_changed
    Added instead of the default only with the - state option on.

If I add 10 entities, no matter how I add them … now I have to add :

state_content:

  • state
  • last_changed

grid_options:

  • colums: 12
  • rows: 1

to every entity manualy.

As was already suggested - auto-entities could be a way.
It cannot fill a content of a section (at least it could not till some recent moment).
But it can fill a Grid (or any other stack-like cards).

type: custom:auto-entities
card:
  type: grid
  columns: 2
  square: false
card_param: cards
filter:
  include:
    - entity_id: input_datetime.test*
      options:
        type: tile
        entity: this.entity_id
        state_content:
          - last_changed
        vertical: false
        features_position: bottom

Well I think my question isn’t understood very well so I’ll give up and put the extra options manual into the yaml files, it’s faster then waiting here for my question is understood …

I DON’T want to auto select my entities but manual, but only wanna have the possibility to add or change some things at the ‘default’ way the cards are added when adding 1, 2 , 3 or 100 entities to my dashboard.

I hope one day someone reads what I meant to say and perhaps correct me by telling me to ask some questions the right way, this is my first question asked here…

But thanks anyway for the spended energy at my questions …

GreetZzz John

May be a custom decluttering card is what you need? It allows to create 100 similar cards for different entities, you do not need to repeat same code for each entity.

@ Ildar_Gabdullin

Thanks for the help so far, but I try my own solution, it’s working and share it here for the people who have the same kind off problem multi editing/adding in files:
I do it in terminal bash with the command : sed
And made a little easy to use for other files .sh batch
It’s of course working in Perl, sed, awk, or many other ways, but this for me the easiest way to accomplish

In a terminal I do
touch addtoyaml.sh
chmod +x addtoyaml.sh
nano addtoyaml.sh
and add into the file (for my solution) :

#!/bin/bash

file='test.yaml'

sed -i 's/bottom/bottom\n    grid_options:/' $file
sed -i 's/grid_options:/grid_options:\n      columns: full/' $file
sed -i 's/columns: full/columns: full\n    state_content:/' $file
sed -i 's/state_content:/state_content:\n      - state/' $file
sed -i 's/state_content:/state_content:\n      - last_changed/' $file

change the file=test.yaml into the file I wanto make the changes to
And :

type: grid
cards:

  • type: tile
    entity: sensor.aanrecht_aanrecht_signal
    vertical: false
    features_position: bottom
  • type: tile
    entity: sensor.wifi_signal_percent
    vertical: false
    features_position: bottom
  • type: tile
    entity: sensor.dimmertv_dimmertv_signal
    vertical: false
    features_position: bottom
  • type: tile
    entity: sensor.douche_douche_signal
    vertical: false
    features_position: bottom
  • type: tile
    entity: sensor.voordeur_voordeur_signal
    vertical: false
    features_position: bottom
  • type: tile
    entity: sensor.woonkamer_spots_woonkamer_spots_signal
    vertical: false
    features_position: bottom

Becomes just as easy as I wanto have it :

type: grid
cards:

  • type: tile
    entity: sensor.aanrecht_aanrecht_signal
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state
  • type: tile
    entity: sensor.wifi_signal_percent
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state
  • type: tile
    entity: sensor.dimmertv_dimmertv_signal
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state
  • type: tile
    entity: sensor.douche_douche_signal
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state
  • type: tile
    entity: sensor.voordeur_voordeur_signal
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state
  • type: tile
    entity: sensor.woonkamer_spots_woonkamer_spots_signal
    vertical: false
    features_position: bottom
    grid_options:
    columns: full
    state_content:
    • last_changed
    • state

Maybe someone has a way easier way to do this, but for then this is a
‘WAY OFF TOPIC’ home-assistant working handling for me to
handle files with about 15-30 sensor entities …

GreetingZz John

What I understood from your idea, you add an entry into a file for some additional config.
What happens when you need to change this config? You will need to edit it in all files. Same about a basic config of a card like “secondary info”.
This is why I suggested you to use a decluttering card.
Actually, it is good that you tried and then posted a different way, HA allows users to use many options.

1 Like