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 …
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 :
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 :
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).
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 …
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.
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 :
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 …
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.