Should this work with custom:mushroom-template-badge. With the introduction of the replacement for Badges I am trying to get a simular behaviour where the outline or background colour changes based on the state. When I try and add card_mod to the code I get the error
At path: card_mod – Expected a value of type never, but received: `null
when using card mod directly against a Chip in the Chip card, so that specifically is not an indication that it isnt working. however i have been trying to apply card mod to the new badges + the mushroom template badge, and so far ive been entirely unsuccesful. thats why the guide is not updated to the newest version yet
thanks for the reply, sometimes its just good to know you are not the only one. I have been trying various examples but without any success and that is the only error message I can share. I will wait and see if the guide gets updated
Im really trying to figure this out, but it makes little sense to me of what goes where. From using your examples I have teased out the following code. I would like to give a little more headroom above the icon (making the card a little bigger) and make the icon background transparent. Here is my code, and thank you for the help and replies you have already given!
Thank you for your help. I am struggling to find a good explanation of what portions of design are in the root, versus not. When do we use $ or .: I want to add padding onto a card and have tried it in different positions within the card code. Wondering if there is a reference you would recommend. I have been through 100’s of cards looking for similar issues and solutions.
I know for sure this code is wrong, but it was a hail mary attempt at a solution. I need to undersand where to put height and width, and padding. Thanks in advance for all your help. And if there is a reference, so I dont have to bother this forum, I would appreciate that too!
I’ve got an AQI chip that I would like the background to change color based on the numbered state. So <50 would be green, 51-100 would be yellow, etc. What would that look like?
No, template is fine. How do I display the state of sensor.aqi in the ‘chip’? I feel like I should know this, but its been a long time since I played around with mushroom.