Your example was exactly what i was using and didn’t worked on my system but your screenshot lead me look elsewhere and i quickly found the source of my issue:
I was using an obsolete version of card-mod not managed by Hacs(Arff)… after updated it that works far better now !!
Many thanks @thomasloven !
I am getting a lot of errors in my console many of which refer at the top level to card-mod.
Would you mind taking a look and telling me if you think they do relate to this card, if they are anything to worry about and if you have a suggestion to avoid them?
And all the same, I achieved the correct result - everything began to work perfectly, as I need - I had to add an extra column of 1px, but I understand that this is not the correct code:
Can I set an icon color template for a whole card based on a specific attribute? I’m trying, but I’m unsuccessful in combining the various examples, here’s my failed attempt:
I have the Meteorology Alarm integration with the binary sensor. The sensor is displayed when “on”. Since it is an alarm I want to draw attention to it by making it blink. The badge or the icon in the badge.
Wondering if anyone can lend me a hand here. I am trying to change the background color of the footer area in a picture glance card. Its the simi-transparent black area at the bottom of the card where entity icons sit. I just can’t quite seem to get the call correct to change that area. Thanks!
create-element-base.ts:64 mod-card TypeError: Cannot assign to read only property '.' of object '#<Object>'
at HTMLElement.setConfig (card-mod.js:1)
at o (create-element-base.ts:61)
at a (create-element-base.ts:80)
at l (create-element-base.ts:131)
at Module.Hi (create-card-element.ts:88)
at layout-card.js:1
at HTMLElement.build_card (layout-card.js:1)
at layout-card.js:1
at Array.map (<anonymous>)
at HTMLElement.build_cards (layout-card.js:1)
Any idea if this would work with entity filter? I have cards show up if a door is unlocked or window open - I want to be able to have the background as red, so it sticks out in my dashboard - but not working for me: