{"id":1418,"date":"2023-02-14T16:59:47","date_gmt":"2023-02-14T21:59:47","guid":{"rendered":"https:\/\/www.ebnet.us\/?p=1418"},"modified":"2023-02-14T21:19:09","modified_gmt":"2023-02-15T02:19:09","slug":"home-assistant-how-to-change-icon-color-dynamically-with-config-template-card","status":"publish","type":"post","link":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/","title":{"rendered":"Home Assistant: How to change Icon color dynamically with Config Template Card"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For many sensors in <a href=\"https:\/\/www.home-assistant.io\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Home Assistant<\/a> you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished this was by using the Config Template Card.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"70\" src=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Green.png\" alt=\"\" class=\"wp-image-1419\" srcset=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Green.png 470w, https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Green-300x45.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"71\" src=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Blue.png\" alt=\"\" class=\"wp-image-1423\" srcset=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Blue.png 467w, https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Front-Door-Temp-Blue-300x46.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Installing the Config Template Card<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly you are going to need to install the Config Template Card. The easiest way is to use <a href=\"https:\/\/hacs.xyz\/\" target=\"_blank\" rel=\"noopener\" title=\"\">HACS<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"190\" src=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Config-Template-Card.png\" alt=\"\" class=\"wp-image-1420\" srcset=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Config-Template-Card.png 461w, https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/HA-Config-Template-Card-300x124.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Or you can install manually using this <a href=\"https:\/\/github.com\/thomasloven\/hass-config\/wiki\/Lovelace-Plugins\" target=\"_blank\" rel=\"noopener\" title=\"\">guide<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">YAML for dynamically changing icon color<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type: custom:config-template-card\nvariables:\n  TEMP: states&#91;'sensor.blink_front_door_temperature'].state | i\nentities:\n  - sensor.blink_front_door_temperature\ncard:\n  type: custom:mushroom-entity-card\n  entity: sensor.blink_front_door_temperature\n  name: Front Door Temperature\n  icon_color: &gt;-\n    ${TEMP &lt; '0'? 'deep-purple' :TEMP &lt; '20'? 'purple' : TEMP &lt; '32' ? 'indigo'\n    : TEMP &lt; '50' ? 'blue': TEMP &lt; '72' ? 'green': TEMP &lt; '85' ? 'orange':\n    'red'}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1421,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[69,25],"tags":[71,70],"class_list":["post-1418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant","category-software","tag-dashboard","tag-home-assistant"],"featured_image_src":"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/Home_Assistant_Logo.svg_.png","author_info":{"display_name":"Ed Brandon","author_link":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ed Brandon\"\/>\n\t<meta name=\"google-site-verification\" content=\"google3df54d40fcd428c7\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"EBnet - Tech Everything from Raspberry Pi&#039;s to Playstation 5\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet\" \/>\n\t\t<meta property=\"og:description\" content=\"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/ebnet.local.ebnet.us\/wp-content\/uploads\/2021\/12\/1881b614309840f89a43c31f57c34eb9.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/ebnet.local.ebnet.us\/wp-content\/uploads\/2021\/12\/1881b614309840f89a43c31f57c34eb9.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-02-14T21:59:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-02-15T02:19:09+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@EBnetBlog\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet\" \/>\n\t\t<meta name=\"twitter:description\" content=\"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@EBnetBlog\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/Home_Assistant_Logo.svg_.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Ed Brandon\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#blogposting\",\"name\":\"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet\",\"headline\":\"Home Assistant: How to change Icon color dynamically with Config Template Card\",\"author\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/author\\\/bigeb\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ebnet.us\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/Home_Assistant_Logo.svg_.png\",\"width\":180,\"height\":180,\"caption\":\"Home Assistant\"},\"datePublished\":\"2023-02-14T16:59:47-05:00\",\"dateModified\":\"2023-02-14T21:19:09-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#webpage\"},\"articleSection\":\"Home Assistant, Software, Dashboard, Home Assistant\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ebnet.us\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/#listItem\",\"position\":2,\"name\":\"Software\",\"item\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/home-assistant\\\/#listItem\",\"name\":\"Home Assistant\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/home-assistant\\\/#listItem\",\"position\":3,\"name\":\"Home Assistant\",\"item\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/home-assistant\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#listItem\",\"name\":\"Home Assistant: How to change Icon color dynamically with Config Template Card\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#listItem\",\"position\":4,\"name\":\"Home Assistant: How to change Icon color dynamically with Config Template Card\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/category\\\/software\\\/home-assistant\\\/#listItem\",\"name\":\"Home Assistant\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/#person\",\"name\":\"Ed Brandon\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/20d736232d61bbd38f16ad2bd010efbb7fa62d271bfd4dcf054ba0fe5b36a63a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ed Brandon\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/EBnetBlog\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/author\\\/bigeb\\\/#author\",\"url\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/author\\\/bigeb\\\/\",\"name\":\"Ed Brandon\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/20d736232d61bbd38f16ad2bd010efbb7fa62d271bfd4dcf054ba0fe5b36a63a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ed Brandon\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/EBnetBlog\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/\",\"name\":\"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet\",\"description\":\"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/author\\\/bigeb\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/author\\\/bigeb\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ebnet.us\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/Home_Assistant_Logo.svg_.png\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#mainImage\",\"width\":180,\"height\":180,\"caption\":\"Home Assistant\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/index.php\\\/2023\\\/02\\\/14\\\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\\\/#mainImage\"},\"datePublished\":\"2023-02-14T16:59:47-05:00\",\"dateModified\":\"2023-02-14T21:19:09-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/#website\",\"url\":\"https:\\\/\\\/www.ebnet.us\\\/\",\"name\":\"EBnet\",\"description\":\"Tech Everything from Raspberry Pi's to Playstation 5\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ebnet.us\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet","description":"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished","canonical_url":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"google3df54d40fcd428c7","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#blogposting","name":"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet","headline":"Home Assistant: How to change Icon color dynamically with Config Template Card","author":{"@id":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/#author"},"publisher":{"@id":"https:\/\/www.ebnet.us\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/Home_Assistant_Logo.svg_.png","width":180,"height":180,"caption":"Home Assistant"},"datePublished":"2023-02-14T16:59:47-05:00","dateModified":"2023-02-14T21:19:09-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#webpage"},"articleSection":"Home Assistant, Software, Dashboard, Home Assistant"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ebnet.us#listItem","position":1,"name":"Home","item":"https:\/\/www.ebnet.us","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/#listItem","position":2,"name":"Software","item":"https:\/\/www.ebnet.us\/index.php\/category\/software\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/#listItem","name":"Home Assistant"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/#listItem","position":3,"name":"Home Assistant","item":"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#listItem","name":"Home Assistant: How to change Icon color dynamically with Config Template Card"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#listItem","position":4,"name":"Home Assistant: How to change Icon color dynamically with Config Template Card","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/#listItem","name":"Home Assistant"}}]},{"@type":"Person","@id":"https:\/\/www.ebnet.us\/#person","name":"Ed Brandon","image":{"@type":"ImageObject","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/20d736232d61bbd38f16ad2bd010efbb7fa62d271bfd4dcf054ba0fe5b36a63a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ed Brandon"},"sameAs":["https:\/\/twitter.com\/EBnetBlog"]},{"@type":"Person","@id":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/#author","url":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/","name":"Ed Brandon","image":{"@type":"ImageObject","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/20d736232d61bbd38f16ad2bd010efbb7fa62d271bfd4dcf054ba0fe5b36a63a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ed Brandon"},"sameAs":["https:\/\/twitter.com\/EBnetBlog"]},{"@type":"WebPage","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#webpage","url":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/","name":"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet","description":"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ebnet.us\/#website"},"breadcrumb":{"@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/#author"},"creator":{"@id":"https:\/\/www.ebnet.us\/index.php\/author\/bigeb\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/Home_Assistant_Logo.svg_.png","@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#mainImage","width":180,"height":180,"caption":"Home Assistant"},"primaryImageOfPage":{"@id":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/#mainImage"},"datePublished":"2023-02-14T16:59:47-05:00","dateModified":"2023-02-14T21:19:09-05:00"},{"@type":"WebSite","@id":"https:\/\/www.ebnet.us\/#website","url":"https:\/\/www.ebnet.us\/","name":"EBnet","description":"Tech Everything from Raspberry Pi's to Playstation 5","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ebnet.us\/#person"}}]},"og:locale":"en_US","og:site_name":"EBnet - Tech Everything from Raspberry Pi's to Playstation 5","og:type":"article","og:title":"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet","og:description":"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished","og:url":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/","og:image":"https:\/\/ebnet.local.ebnet.us\/wp-content\/uploads\/2021\/12\/1881b614309840f89a43c31f57c34eb9.png","og:image:secure_url":"https:\/\/ebnet.local.ebnet.us\/wp-content\/uploads\/2021\/12\/1881b614309840f89a43c31f57c34eb9.png","article:published_time":"2023-02-14T21:59:47+00:00","article:modified_time":"2023-02-15T02:19:09+00:00","twitter:card":"summary","twitter:site":"@EBnetBlog","twitter:title":"Home Assistant: How to change Icon color dynamically with Config Template Card - EBnet","twitter:description":"For many sensors in Home Assistant you may want to change icon color dynamically on your dashboard. Having the icon color turn on or off was not enough for me especially for thermostats. I wanted to use a range of colors to show how extremely cold or hot the temperature was. The way I accomplished","twitter:creator":"@EBnetBlog","twitter:image":"https:\/\/www.ebnet.us\/wp-content\/uploads\/2023\/02\/Home_Assistant_Logo.svg_.png","twitter:label1":"Written by","twitter:data1":"Ed Brandon","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"1418","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"change icon color dynamically","score":80,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":4},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"score":3,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-14 21:53:04","updated":"2025-10-01 03:16:19","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ebnet.us\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ebnet.us\/index.php\/category\/software\/\" title=\"Software\">Software<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/\" title=\"Home Assistant\">Home Assistant<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHome Assistant: How to change Icon color dynamically with Config Template Card\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ebnet.us"},{"label":"Software","link":"https:\/\/www.ebnet.us\/index.php\/category\/software\/"},{"label":"Home Assistant","link":"https:\/\/www.ebnet.us\/index.php\/category\/software\/home-assistant\/"},{"label":"Home Assistant: How to change Icon color dynamically with Config Template Card","link":"https:\/\/www.ebnet.us\/index.php\/2023\/02\/14\/home-assistant-how-to-change-icon-color-dynamically-with-config-template-card\/"}],"_links":{"self":[{"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/posts\/1418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/comments?post=1418"}],"version-history":[{"count":2,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/posts\/1418\/revisions"}],"predecessor-version":[{"id":1424,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/posts\/1418\/revisions\/1424"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/media\/1421"}],"wp:attachment":[{"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/media?parent=1418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/categories?post=1418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ebnet.us\/index.php\/wp-json\/wp\/v2\/tags?post=1418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}