i dont get how that changing one āblockā from ānā to ā1ā can affect āimg_cellā that wayā¦ in my logic it should at most move the ānameā tekst a bit to the rightā¦ but that should be allā¦
No problem! You can also play more with the style of the custom:button-card in the custom_field. For instance using state for on off and then the styles like icon under it. Which allows you to have stylings for different states, like turn the bulb to yellow when itās on and to grey when itās off etc. All is documented very well in the READ.ME on the Github of this card.
Iām not a CSS expert myself, but I did manage to create amazing looking button-cards with grid by using this tool: https://grid.layoutit.com
It allows you to create the grid visually and shows the code you can copy/paste to use with the button-card. Perhaps itās easier to create your grid layout there first and then copy the code to button-card.
Well, the code is meant to show the color of the light with and without the temperature. If you have bulbs that only operate RGB, then both codes would return the exact same color since the light has no temperature attribute. And if the light isnāt RGB, there is no point in using the variable. Itās to reflect the color the light is currently in.
If a light entity is assigned to the button, then:
the CSS variable --button-card-light-color will contain the current light color
the CSS variable --button-card-light-color-no-temperature will contain the current light without the temperature
You can use them both in other parts of the button. When off, it will be set to var(--paper-item-icon-color)
If your goal is to show a YELLOW glow and icon when a light is on, why not just use a color code and statestyles, so you have different styles depending on state?
When state is on it will apply the styles listed there. When the state is anything else, like off or unavailable it will revert to default. You can create multiple states. If the light doesnāt match any of the states you created, it will use the default style (the one at the bottom). If you want other colors for the default styles, then list them there (like greyed out icon color when off, or different color shadow or background etc).
What bothers me in this type of glow is that when glow is ON it goes into neighbouring card, if not set very small, since glow is ādrawnā outside of reuglar card. It should be drawn to the insideā¦
Well yes, thatās kinda the feature of this card and is also shown in the above code. You donāt need card-mod for styling this card, itās explained in great detail in the readme.
If your goal is to show a YELLOW glow and icon when a light is on, why not just use a color code and statestyles , so you have different styles depending on state?
Thatās what I like about this forum. I never thought off solving this in a completely different way: state styles
I loved the Laundry Card. Iām a new to HA but learning as fast as I can. I notice on the card you use a type: custom:hui-entities-card. Where I can find this custom:hui-entities-card?