Trying to use the CSS-style with the custom:auto-entities card. The custom:auto-entities card as standalone card works as a basic card, but from the documentation I understand itâs not a full featured Lovelace card on its own.
Using the custom: auto-entities with the standard entity card, and then the CSS-style should work(?), but I canât wrap my head around how it should work. Any ideas how to change icon color?
First of all, why are you putting an entities card inside auto-entities inside an entities card?
There are valid reasons to do this, but if you donât have to, you shouldnât.
âWhy wonât this work for some cards?â âŠauto-entities and state-switch among others.
Common for all those are that they have no ha-card element. A workaround for this is to put the card you want inside an entities card and mod that. For built-in cards, this can be done by setting the type of an entities row to custom:hui--card:
So then using the standard entities-card, inside this using the auto-entities-card, then using CSS-mod on the entities-card or the auto-entities-card, does not work for me.
I must admit I donât get it and donât understand the documentation. Is it at all possible what I am trying using the card-mod somehow with the auto-entities card?
Edit:
It seems I didnât clearly announce this feature in this thread.
Since August 27th youâve been able to style entity card rows and glance card buttons separately.
I migrated from card-modder to card-mod the last couple of days and I ran into something I canât figure out yet. Perhaps somebody can point me in to the right direction. Iâve the following code
This shows up well, but when I push the button, the light does change in real life but in lovelace it stills shows the state before I pushed the button. When I reload the page it gives the actual state again. Could anyone point out what Iâm doing wrong?
An hour later, i figured I had to put the style option in the card and not in the the horizontal stack itself, makes sense though. So for those whoâre struggeling like I did. This was the correct code
THANK YOU!!! Iâd been fighting with this stupid thermostat for hours, couldnât figure out why the css wouldnât stick. The !important at the end fixed it!