Add card_mod, otherwise it started giving an error:
In short:
It was required to use only "style" keyword before card-mod 3.0.
Starting from card-mod 3.0, the new "card_mod" keyword was added to enable card-mod where it did not work before (but the old notation was supposed to be still working).
Recently HA was updated and the Editor started giving an error if no "card_mod" keyword is specified. But the old notation (w/o "card_mod" keyword ) still works - you just cannot save changes in the Editor!
Hi sorry, I donāt understand.
I read the 1st post, but canāt get any further.
I would like to display another icon when the roller blind is open at 50%.
If you meant the two links, unfortunately I havenāt found anything that can help me.
Nothing with state_attr.
Icon color is not a problem, but I want to display a different icon using the attributes.
And there is nothing, except via icon_template.
Aaaah. Yes. Was not aware, that it only works with card_mod. Even without this completely, I got the errors. With card_mod and new notation, it is working. Great.
Update: No, not the root cause. It worked once. Back in edit mode, the errors are there again.
O.k. If I use something different than true or false, e.g. a or tru or ā¦ it is working without errors at the moment.
I bet that if you are in yaml-mode and create a card with this code then the card will work.
These are Editor issues. The Editor performs syntax checks and gives errors if smth is not as per syntax rules. But as we can see these wrong code works))).
Hi everybody
I have a few RGB downlighters on my verandah that are working great and I would like to display (not change) their status as a bunch of icons only in Lovelace. The native Button card works well and it updates the colour of the icon to match the colour of the light. My problem is I need to remove the background and the shadow. My CSS skills are non-existent, so I was unable to apply Card-mod to the Button card. Just to be clear, I tried this on the vanilla Lovelace Button card. Romriderās custom button card is incredible, but it doesnāt follow the colour of the light, so it wonāt work for my application.
The closest I could get using the Button card was to stack them in the ācustom:vertical-stack-in-cardā, but it still doesnāt remove all the shadows. It looks like this:
and the Yaml looks like this (up to the first light):
Next stop was to use the excellent custom:paper-buttons-row. It formats beautifully, but it doesnāt follow the colour. I set the icon colour with a template and it looks great, but it only updates on page reloads. I will also have to manage the colours with some more templating when the RGB attributes drop away.
Is it possible to remove the background and shadow of the native Lovelace Button card with Card-mod? If it is, I would really appreciate a small example.
If not, is it possible to update the card (maybe every 10 s or so)?
If somebody managed to achieve this in some other way, please let me know.
even not this. Most of the time, this is not the case as well and I have only a greyed out card with a ircle. And you are not able to save with these errors.
But anyway, as long it is working with foo or bar or tru or whatever <> true/false, is is finefor me for now.