did you test it in a yaml dashboard?
if you did and the Map cards remain as is, than this would indeed be a UI bug, and should be filed in the repo as such.
I didnt check yet but maybe someone else already reported it? (letās have a look)
Personally, I had sizing issues with iframe card, and not the map card. I couldnt get the iframe to fill the full width under a fold anymore.
I managed to fix it setting the mod on the fold itself, and no longer on the iframe.
Maybe the issue you experience is related? or do you experience other trouble.
Unfortunately, no. There are no problems. Only the complete code lines of card-mod are deleted on every edit-open for the card. Not nested or anything else.
Edit: And whyever I cannot re-produce it anymore today. It was always the case in the last weeks/months.
Hey everyone, Iām creating a dashboard thorugh YAML mode and Iām using card_mod a lot. I wonder if there is a way to create smooth angles for the cards, as the ones you configure via UI.
Is it possible to adjust the height of the individual timelines in a history-graph card in timeline view?
I often use the option to open the more-info dialog. Doing this on a touchscreen is a bit difficult because the graphs are so narrow and close together.
I am struggling hard to format the buttons in footer of an entities card. I want to format the buttons at bottom - I tried to work out the DOM selector for hours nowā¦
I just tried it on a fresh dashboard - and your code works. So the mistake is with me. Thanks once again!
I implement the code directly in the raw configuration editor in my build-and-test dashboard, before i then copy it over into my yaml mode configged live dashboard that is live on the ipads on the walls.
I do have 2 test dashboards, one in yaml, and one using the UI. If they work, I directly copy them over in my main dashboards.
this particular mod is in my themes, I only have those globally set, so always testing inside the production system. Nothing breaks, and if it does, itās an easy revert. commandZ a few times and weāre good.
because of helping Laineg above, I was reminded I also had those icons changing, and checked the mods in the thread. I can not for the life of me create a correct mod on the button entities them selves or in the footer section as is described there.
all I can do is set this global mod for the entities card containing the footer buttons:
I have another issue: the group of buttons in the footer of my entities card breaks nicely on screen resolutions > 450px. At exactly 450px the lines of buttons jump into one line and overflew left and right of the footer.
Anyone with an idea why this is happening and how I can prevent it? Tried to find breakpoint defintions in the theme but couldnt find itā¦
Hi,
i hope this is the right place for this. I do have a little problem: i set up some colored icons on my dashboard using card-mod. On the browser this is working more or less ok (sometimes the color is not showing, sometimes the code gets changed by itself and i donāt know why) but thatās not the thing.
Those colors are working on the browser on different PCās but in my companion app those colored icons not showing, instead they are showing as standard blue icons and the seems not to get the configuration.
My config or code does nothing really exiting. Just coloring the icons on temperature change (this works)
I already googled this issue, did not find a solution. I am pretty new to Home Assistant in general so any advise would be appreciated! Let me know if you need more info, pictures or whatever
w/o a default āelseā path - which in some cases may give you bad results.
As for āHow it gets changedā - UI editor processes long lines in such way.
In your case you have ā|ā replaced by ā>ā. Read this.
In my experience, this conversion cannot break card-mod code - i.e. I never observed an issue ācode was working OK before conversion ā conversion ā code stopped workingā. If you see this - then most probably your code is wrong.
BTW, I never use āācard-mod-icon-colorā variable & prefer more robust ways.
I see, i closed that one. I opened it before i knew there was a forum dedicated to this.
Anyways: yes my code is pretty bad. your advise did help me. So now i changed it into your suggestion with config.entity, that shortens the code and it does not ābreakā anymore.
Do you have an alternative to the variable āācard-mod-icon-colorā?
My initial problem did not solve with adjusting the code.
Still in browser view the icons are colored and working (now better than before) but in the companion app they still do not change.
Android Phone, latest Android Version, latest App Version (not beta), no Energy Saving for App and Full Access granted
There are some cases when this variable may not work, see a related issue on Github (may be the issue is already closed, have not tracked it).
Alternatives:
For Entities card as an example: use simple ācolorize an iconā ways - see 1st post ā link at the bottom ā styles for Entities card.
For an entity of some domains (incl. āswitchā) - check here, define a corr. variable (either for a whole card to affect all entities of same domain or for a particular entity):
Now only the problem with the companion app persists and i have no idea why.
When i open the App all symbols appear as they are not edited. When i change something in the browser then i see an āreloadā button on the bottom of the app. I press it ā the colors and icons change as they should be ā i close the app ā open it again ā all colors and icons again in default mode