Color Changing Tiles

I know there are a lot of questions of people asking if it is possible to do this, but most seem to be asked and answered in 2020. Now that it's 2023, has there been update to adding this capability to dashboard tiles? I'd like to have tiles that change colors depending on the values of temp, humidity, battery level, or maybe others.

That does not explain how to do different colors depending on a value. There needs to be some kind of if/then structure and a mechanism to get a value and act on it.

it's not a complete guide, but is a start. if you're trying to do it based on values, you can start with this and tweak it to your needs

{
  "template": "switches",
  "bgColor": "rgb(0,255,0)",
  "iconColor": "rgb(255,255,255)",
  "state": "on"
},
{
  "template": "switches",
  "bgColor": "rgb(71,71,71)",
  "iconColor": "rgb(255,255,255)",
  "state": "off"
},

there's definitely a lot to go through in it, but a lot of great information in the comments of that thread

Thanks.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.