never have to do anything special for views, I simply click the refresh top right corner
nice trick indeed, will save me even more lines, in addition to the use of yaml anchors per include.Coming to think of it, it might be even better than rely on the card-mod classes. hmm have to test that.
Probably depends on how you keep your views’ code.
My method is “1 view = 1 yaml” (sometimes with included yamls for cards), “1 dashboard = 1 yaml with included yamls for views”.
So, editing a view’s file, a file for decluttering/button-card template does not cause rebuilding a UI - need to mark a dashboard file as changed.
I tried all sorts of your suggestions in your link past few days. None of the card-mod would work, I am kind of stuck. What I would really want to do is to make Garage Door and the Laundry Lock turn “Red” color with glowing animation if the door is open or the lock is unlocked. Is card-mod not working in horizontal-stack or stack-in-card? I pasted the code. Can you please see how I can modify to make it work? Hope you or someone can help me? Much appreciated. Thanks in advance.
Has anyone figured out how to make a card’s outline go away with 2022.11.0? It looks like the HA team changed it to not use box-shadow anymore, but I’ve spent 20 minutes trying to guess what it is instead with no luck, and I’ve never been able to find any documentation of the css style sheets they use.
# Example configuration.yaml entry
frontend:
themes:
No Borders:
ha-card-border-radius: 1px ## or 0 “ or what you want it to look like “
ha-card-border-color: rgba(0,0,0,0) ## transparent
The button card does not have this “#states div:nth-of-type(1)” element.
Probably you copy-pasted a code from another card.
The “--paper-item-icon-color: [[ if(lock.laundry_lock == "unlocked", "red", "green")]]” is not valid.
The “[[…]]” is not used for card-mod templates, use “{{ … }}” (also “{% … %}” if needed).
The “if(...)” construction is wrong. Probably you wanted to use “iif(...)” construction (BTW, some people do NOT recommend to use it since it may give inconsistent results - search here in the Community).
The “lock.laundry_lock == "unlocked"” is wrong - you should use “states("lock.laundry_lock") == on” (or “is_state("lock.laundry_lock","on")”).
I suppose that I have to change “hui-generic-entity-row:” into something more suitable, but so far, I am unsuccessful. I’d be thankful if someone could give me a hint on how to achieve this (I’d take a solution, too ).
I am trying to animate an icon in the picture element card using card-mod, but am not seeming to be able to get it to work, does anyone see anything I may be overlooking in this?: