Ildar, I am a bit stuck.
Marius tried helping me on Discord and he had a cool approach for cards that are more similar to each other where you use the options section of auto-entities.
But I am trying to use your approach with the generic rows.
However, I habe not been able to omplement if expressions.
Do you know why the if expression for color does not work there and if there is a fix for this?
It is the same approach as it would be in options using states(config.entity).
Ofc, it will not work ))). config.entity is defined on a row level!
I do not think there is any reason to use āstyle a row from a cardās levelā in case of using āauto-entitiesā. It is only worth using in a ānormalā Entities card to avoid repeating a code for each row. And even in this case i would not recommend it. Use yaml-anchors etc for EACH row, do not try to save your time with this āstyle a row from a cardās levelā way.
Although many people using
color: {% if ... %} red {% else %} blue {% endif %};
syntax, I never do it and never recommend people doing it.
This one is better:
Using the Bubble Card (Popup), layout card, and card_mod I have these āblank spotsā for lack of a better term. I cannot for the life of me figure out what to modify to make them go away. Basically you make a vertical stack and the bubble card āhidesā it until you ask for the popup. That all works fine, except at the bottom of my layout there is blank area. Trying to use card_mod to get rid of it but cannot seem to figure out what to modify.
I tried using show: hidden in the layout card, but that makes the popup not work. Using dev tools I set the element.style: margin to 0 and that seemed to make them vanish. But I canāt seem to get it with card_mod.
My first attempt at using card mod works, sort-of. Iām trying to modify a horizontal stack card to reduce the left pane to 25% and increase the right to 75%. When I reload HA, itās a normal horizontal stack card with two squares. I have to click Edit Dashboard and then the card immediately looks like I want it to be. The same goes on mobile, where itās initially two squares until I rotate the phone and then rotate it back. What do I need to change? Code and screenshots:
Hello, i read several messages in several topics but didāt find how to add a custom background (a picture) in in popup window created with browser-mod.
Everything i tried didnāt wokred.
Can someone help me, please ?
I am doing my head in trying to get this code to work! I have tested it with a few YAML checkers and with ChatGPT all say, good YAML. Any guidance would be greatly appreciated. Everything in the card works except for the color change. I can change it manually, with:
I donāt know if what Iām trying to achieve is just overly beyond my capabilities, or outright impossibleā¦ but Iām struggling to make it work.
I have a dashboard that is almost entirely custom button, custom layout, and custom mini-player. I have a number of Media player inputs that go into Denon amplifiers and Iām trying to color them to match. The ideal scenario is that the button cards automatically color to match the dynamic color of the media player (in material mode) like the manually created image below. The backup option is that I make the background area between the cards colored so that I can tell which volume/power relate to which media player. Any suggestions?