I’m using the add-on called “config-template-card” that lets you set customizations to things on a card. I’m using it to set custom icons which is great.
For the life of me, I cannot figure out how to set the color of the icons.
Unfortunately, the color doesn’t work. How would I do with big colors so I would know for sure if it was working or not? Like red for on blue for off? When I use the code you listed above, no color changes. I still just get the icon changing. I made a simple card with one light on it to make it easier.
Unfortunately, anything that uses --paper-item-icon-color: doesn’t work on older iOS 10 (iPad 4) devices.
What does work on them for setting color for icons for a button card at least is the custom button-card. It allows you to use Javascript templates where you put the JS templates inside [[]]. That works great, but again, I don’t have that functionality everywhere - I wish I did.
To answer the question, I do have card-mod installed but like I said anything that uses that --paper-item-icon-color: doesn’t work on these older devices unfortunately.
Does anyone know how to get an entities card where I can use Javascript templates?
I just re-read what seanomat said… Let me try again by replacing those with their suggestions and see what happens.
I just woke up so I forgot I had tried that. Here is my current code. None of the colors show up on the older iOS 10 devices (iPad 4). They show up and work fine on the computer and newer iOS devices like a first generation iPad Pro.
Are there any other ways to change color? Like I said, the method using Javascript templates where you put the templates inside [[]] do actually work on these older devices.
They’re pretty old. I keep looking because I can achieve this with Javascript templates where you put that code inside [[[ ]]]. That was giving me hope that I could figure it out.
Yeah, overall themes are not being applied on my gen 2ipad from 2012. I doubt anything will work. The underlying css interpretation (framework) is most likely missing in the OS/browser.
Yeah I’m feeling defeated and am starting to think that I’m fighting a losing battle.
Do either of you two have any devices on the walls at home? I wonder what are some affordable solutions that would work well if I had to replace these old things.