Home assistant entities card icon color. For example on a sensor entity icon.

Home assistant entities card icon color ️ Lovelace button-card for home assistant. Hello, I would like to change the color of the icons based on the value, example: Like this colors: type: vertical-stack cards: - type: glance entities: - entity: sensor. Hi All, I’m trying to build a card that is like a table with column and row names and shows different entities. On the left is what I have, on the right what I want: I haven’t installed card_mod: because I’m such a noob I’m afraid I’m gonna I’m modifying an entity card with card-mod to change the background color based on an attribute value from a sensor. For the template : you can leave out all ‘else’s. I would like the color of the battery icon to change, based on its sensor’s state: - type: custom:mushroom-chips-card chips: - type: entity Hi, In setting up my first Home Assistant, using picture-elements for a floorplan card, I am stuck on why some state-icon entities do not recognize “paper-item-icon-active-color”. From there, I would like to develop some sort of state-config-merge card where you could define a state filter to match against that would then provide config changes to the underlying I use a picture element card to change the icon color when in this example my gun safe door is open. lovelace. ) listed as individual entities in an Entities card. homeass84 March 19, 2021, 9:48am 3. An example is that: [Table] I’ve searched a lot and tried several ways (like vertical-stack-in-card) but didn’t really succeed. last_changed) }} is less than 5 Color of the icon/card. Todilo (Todilo) January 21 Entity card The entity card gives you a quick overview of your entity’s state. salon_lampes_random: icon_color: rgb(6, 16, 204) lovelace : - type: picture-glance title: Cuisine entities: - scene. I’m just talking entity Icon colour, so you could change icon colour from the default, or based on state value. How can this be done? type: custom:mushroom-entity-card entity: sensor. garage_test state: - value: 'off' styles: card: - filter: opacity(40% The mushroom template card lets you define templates for most aspects of the card, including the icon color I have the following entity card: - type: entities title: Outside Lights entities: - light. garage_carriage_lights - entity: switch. My sensor state returns a converted time with unit, so I added the seconds attribute to try to draw from that. hacs show_header_toggle: false state_color: true card_mod: style: . What am I missing? I think I have a better way, I can set up 2 cards one for To Home one for To Work and just one gets displayed based on my smartthings presence sensor (Home/Away values) title: Commute type: conditional conditions: - entity: binary_sensor. My current solution does work but that is not based on card-mod type: Learn how to use card-mod module to customize the color of entity state text and icon in entities card. I chose not to do the group path as I need the sensor for the number of lights for other stuff. garage_door_opener tap transmission-tower-import icon_color: red - type: entity entity: sensor. The color of the icon should change depending on the switching state (on/off). logo1shutter1 secondary_info: position state_color: true footer: type: buttons Can I change the colour of an icon and/or text for an entity based on its state examples include a sensor being online|offline a binary sensor being on|off a person being home|away a sensor being low/medium/high etc I’m aware that this might be possible with CustomUI, different icons for each state, entity button card, or a picture elements card Is there a way to get entities card without the icon? Setting icon: ’ ’ remove the icon but leaves a big empty space there. Custom-ui is very powerful and capable of changing our Dashboards. Depending on what Home Assistant is open source home automation that puts local control and privacy first. Current config below, followed by one I tired ot make, but is failing. hermanf72 (Herman F. to_work Hey! I just experienced that some of my temperature sensors went down, without me knowing about it - since they got stuck at the last value read. I’m trying to change the icon color based on active or non-active state of the sensor using card-mod. Does anyone know how to change the I’m trying to adjust the background color of my icon but can’t seem to get it to work. Hello there, I’m trying to change the state of the icon based on whether the status is Want to change the color of icons on an entity card base on their state. Does not work on a single entity in the form of the tap_action icon. yaml scene. Green Icon = Door Closed, Red = Door Open. Configuration. I’ve been searching for a while I’ve been searching a while to found an example performing icon color change in Glance-Card based on the states of sensor I’ve an Shelly 1PM connected to an radiator I’ve an Xiaomi window sensor to cut the power of the radiator when window is opened Using HACS card-mod plugin and ShellyForHass intégration I was looking to change the color of the window There have been a couple of posts about issues with changing icon color using customization but the last one from 03. For example on a sensor entity icon. Any help is welcome. To add the entity card to your user interface: In the top right of the screen, select the edit button. Here is the template: platform: template sensors: So to get the ball rolling on this I plan to implement icon_color for all cards that have icons; at the entity level if it supports multiple entities per card. delivery_box_open - entity: sensor. acc_air_today name: Lucht Kwaliteit Vandaag - entity: sensor. The same code works in the developer tool template. I’m using the below entity card as part of a larger vertical stack to show values and controls related to my HVAC misting system. Lovelace: Button card - type: "custom:button-card" entity: alarm_control_panel. This is where I got stuck. I installed the Card-Mod on my HA OS instance. " There is no obvious way to have the icon color be conditional with this mod based on my very quick look at it. The first two work in the template tester in Dev Tools, but only returns the icon_color as the template again, whereas the last one only returns Home Assistant is open source home automation that puts local control and privacy first. I have read the articles and need some assistance if indeed this is even possible for the cover card. state-binary_sensor-door-off-color: var(--ok-color) state-binary_sensor Hi all, I have this entity card and I would like to reduce the space between icon and entity name: type: entities entities: - entity: sensor. This sensor shows the next garbage collection day, date and type of waste to be collected that day. The examples I have seen are related to the entity of the card so I tried to figure it out myself but I am stuck. delivery_box_operator title: Delivery Box state_color: true And icons change Hi, I have a bunch of vertical stack cards on my dashboard – lights grouped by room – and I would like each vertical stack group to have a slightly different background colour, to separate them visually. I just had a quick look at one of my conditional cards and the difference I see is that mine is more like this: - type: entities entities: - entity: input_text. When set to true, the icon color will change with the state of the entity specified in the entity: parameter which you have left blank. any suggestions? Thanks! - type: horizontal-stack Hi, Please excuse the newbie question. ) January 10, 2024, 5:07pm 1. Hello I am trying to make an icon change color based on the state of an attribute. If this is your first time editing a dashboard, the Edit dashboard dialog appears. testsensor_2 However if I send. I would like I have a problem with changing the color of the mushroom entity card icon depending on the value of the sensor. (card You can do something similar using a custom button card. internet_ping When I add style, as it is written in the use of auto Ok I will test as you suggest. Available for free at home-assistant. Here is the code I have to change the text: - entity: Hello I’m trying to create a mushroom state card that changes color based on the state. bed_light - light. In the case of the garage doors and inverter status, using the code below works fine, changing both the icon, text and status to red when appropriate. I see how to change it to one color that will always display but not how to make it change colors with the text. on GitHub. " Note that some cards ( conditional, entity-filter, horizontal-stack and vertical-stack as well as some custom cards, like layout-card, auto-entities and state-switch among In fact, only a Markdown card supports templates and some custom cards. I basically want to change the font and icon colors of the entities to match the conditions where the mister would be turning on. So, to fix this - i wan’t a “panel” where u can see when they last updated and I’m trying to use the rgb_color attribute from a LIFX bulb in a template to set the icon_color, but it’s not working (the icon doesn’t change to the proper color). I’ve been at this a couple of hours now. binary_sensor. It also accepts color token or hex color code. autokellerbeleuchtung_weekend” is correct. salon_lampes_random - light. 2019 has a GitHub issue that shows the issue has been resolved. I would like to change its background color to red if the importing power is over 5kWh. 102. I have been trying to change the icon color of my cover card based upon its state for several days now but with no success. Now I am trying to get the state_color in again for some entities. lockcode_status state_not: "" row: input_text. In particular, I’ve tried Hey All, I’m currently using the card-mod repo to change the color of the text in a card depending on the state. Can anyoune help here? Spartacus type: custom:mushroom-chips-card chips: - Hi, I am using an Entities card configured using the ‘icon’ configuration variable so that the card is displayed with an icon to the left of the title. I want to have a list of entities like this (doors and windows with contact sensors), but the icons shall be red when open and green when closed: All information that I did gather resulted in the following It requires a boolean (true/false). 2. kitchen_lights [51] Not a custom: in sight. to_work You can’t change colors of icons in native home assistant. any suggestions? Thanks! - type: horizontal-stack cards: - type: custom:card-modder card: type: entities title: Door show_header_toggle: false state_color: true entities: - entity: I am pulling my hair out troubleshooting this and keep making the card simpler and simpler and still can’t get it to work. The idea is to have the icon and color change based on the battery level sensor, but with this config, the icon isn’t showing up at all. mosquitto_pub -t My/Topic/result -m ON in the MQTT integration of HA the message is shown, but the state of the above entity-card does not show the new state. I would like to change the color of the icon according to the state of sensor (for example 0-50 green, 50-100 Yellow, over 100 Red). However, if the entity is a light (which presumably has some default setting), the Home Assistant is open source home automation that puts I am looking to have my temperature sensors in an entity card like so but I would like to have the entries change font-weight: 900; --primary-text-color: black; --paper-item-icon-color: black; color: black; } entities : - entity: sensor Allow to change entity icon based on entity state (binary sensors) For binary sensors this should be quite easy: field “icon for state on”: mdi:led-on I have an Entities card from where I control the power to my radiators. custom:button-card entity: input_boolean. Frontend. I’m trying to resize/compress the items in this card and need to find a way to reduce the “icon” size in my Entities card but I can’t find anything in the forum that points the way See below - I’d like the Unifi icon to be smaller I have create a sensor using a template to figure out how many light are on. lockcode_slot - type: conditional conditions: - entity: input_text. importing name: Importing icon: mdi:transmission-tower-export title: Power This card tells me how much power I am importing from the GRID. lockcode_selectuser - entity: input_select. card: type: entity-filter Sorry to inform you that it does not work with entity-filter. I have a quite simple card like this: entities: - entity: sensor. It can be set to the state special token to dynamically color the icon based on state, domain, and device_class of your You can either use card_mod and templates to use the state of another entity to adjust the color of your glance card entities, or use a different card entirely that allows you to directly use a template to define the color, like I've been trying to change the icon color with the HACS add-on card-mod. It requires a boolean (true/false). cuisine_plafond state_image: "on": /local/img/cuisine_on. yale_smart_alarm', Set the color when the entity is active. So far I can get the card to change colour based on my entity state using: card_mod: style: | ha-card { background-color Hi all, I am very frustrated because I do not see the mistake in my configuration. I have been trying to change the icon within an ‘Entity configuration card’ but do not seem to be able to find a way to do so. delivery_box_battery - entity: sensor. 2 from docker container, I try use custom color: type: 'custom:auto-entities' card: title: internet type: entities filter: include: - entity_id: sensor. I wen to the card and expose the yaml code and added a section at the end like so, Just don’t see any changes or know what else I need to do to make the color change happen. Go to the main card-mod thread → go to 1st post → find a link at the bottom titled “fantastic post” → find “Heading card” chapter. : | #states > * { margin: 0px 0px !important; margin-top: -20px !important; Hi all, I’m trying to build a view with all my network known devices using nmap integration (and static IPs on router) I made it using mushroom-chips-card last but not least I would like to have a section with other device_tracker entities that are discovered by nmap but not tracked mushroom-chips-card doesn’t permit wildcards so I was looking at auto-entities Hey everyone, I’m trying to configure the mushroom-chips-card to dynamically change the icon and icon color based on the value of a sensor, but I’m having some trouble getting it to work properly. front_motion. You cannot set these colors from within the card itself. Any ideas? type: custom:mushroom-entity-card entity: sensor. What I would like to do is be able to change the color of the icon depending on the state of Hi Everyone, I have the following syntax that shows me the lock details and I want to add the feature that if the lock is open/unlock the whole card would change color to red. I’ve a picture-elements card where I’m trying to change the icon color based on a motion sensor last trigger time. I can see it in the developer environment. Do i have to This is not a custom card. If I set the “Color icons based on state?” toggle for the card, each icon is highlighted according to the Hi Friends. This requires custom Open/Close Garage Door? card: type: custom:mushroom-entity-card entity: switch. security_system_partition_1 icon: mdi:alarm-bell color_type: icon size: 20% name: Alarm style: - font-size: 12px - font-weight: bold action: more_info show_state: true state: - value: 'armed_home' color: rgb(255, 5, 5) - value: Hey i would like to change the Card-Color on condition. Home Assistant is a project from the Open Home Foundation, Home Assistant Community Change icon and color on Entities card for one entity. I tryed this from my dashboard: type Home Assistant is open source home server. Members Online • Juliett_Sierra . I am using the Smartthings integration as I am migrating from having used that for several years. [image] This also isn’t a general home automation forum, this is a forum for Home Assistant and things related to it. However, there is no core attribute for an icon_color. : | #states > * { margin: 0px 0px !important; margin-top: -20px !important; card-mod works, but for all icons in a row. If you put 'color' under 'style' it will change the color of the text but not the icon. For changing the icon color, on their page on GitHub it says "It will also set the icon color to the value found in the CSS variable --card-mod-icon-color if present. How can . lockcode_status - type: Hi, Since two days I’m trying to find out, how I can change the color of an icon based on its state, but all information that I did find didn’t help me to write the right code. front_upward_lights - light. png "off": Hi, I’m just starting and custom yaml is hard for me. If the entity’s state is more than 50%, then green color, if less than 50%, then red color. Hey @tobi-bo, thank you for your help! I use simple entity-Cards. Hi Everyone, I have the following syntax that shows me the lock details and I want to add the feature that if the lock is open/unlock the whole card would change color to red. But the code doesn’t seem to be working. Not all topics may get an answer, never mind one that helps you solve your problem. If I enter icon_color: blue, the icon changes to blue If I enter icon_color: rgb(0, 0, 255), the icon stays at the default (white) color What’s the proper way to use rgb attribute values in a template? Hi I have just started using mushroom cards and am setting up a new dashboard. The custom:auto-entities card as standalone card works as a basic card, but from the documentation I understand it’s not a full featured Lovelace card on its own. 0. Using the custom: auto-entities with the standard entity card, and then the CSS-style should work(?), but I can’t wrap my head around how it Hi, I am only 5 months in HA and the rapid development is sometimes overwhelming. The attribute from this sensor contains the type of waste that will be picked up next (organic - referred to as GFT in Dutch, paper or rest). template-sensor, templates. Yet I have tried all the options on v. front_camera_east_hd style: top: 91% left: 35% '--paper Hey! I just experienced that some of my temperature sensors went down, without me knowing about it - since they got stuck at the last value read. you can check the HA logic for the state-colors here Home Assistant frontend - Home Assistant. Any ideas as to why So far I can get the card to change colour based on my entity state using: card_mod: style: | ha-card { background-color: {{ '#24BB24' if is_state('alarm_control_panel. To set a color of an icon of some badge in Heading card dynamically (dependently on some entity, for example) - use card-mod. type: horizo I’ve a picture-elements card where I’m trying to change the icon color based on a motion sensor last trigger time. What I can’t figure out is how to get the icon to change colors as well. current_version_2 - entity: sensor. Instead it’s a plugin which changes the way all other cards work How about this? type: entities style: | ha-card { color: red; } entities: - light. Below is an example; I have several of theese. Hi I have a Picture Glance Card that is showing a camera feed from an ESP32cam The card also shows the state of a motion sensor, WIFI, a light and a temp sensor I want to achieve the following: change color of the light bulb when it is “on” show the current value of the temperature sensor in stead of the thermometer icon show the current value of the wifi sensor Hi all, I have this entity card and I would like to reduce the space between icon and entity name: type: entities entities: - entity: sensor. 1 now without success. I’d like a simple badge that shows me if there is a weather alert or not, which I was able to do. Hello, I have a Google Wifi sensor, and i want to change the icon if state == Online. Although my ceiling fans all recognize the “paper-item-icon-active-color” and change colors Hey all, I have a glance card showing the state of my delivery box, show_name: false show_icon: true show_state: true type: glance entities: - entity: lock. auto sets the color based on the color of a light including the temperature of the light. I have tried styling with card-mod but can’t seem to “target” ha-icon in any meaningful way. I have a sensor based on a humidifier, that has customization and it placed on UI as a card element - entity. Set the color when the entity is active. metered_real_energy_produced Trying to use the CSS-style with the custom:auto-entities card. They are using the TileCard most of the time now. At this stage, the icon is white all the time. With the UI Changes that have been implemented over the last couple of months within HA (Tile Cards, State-Based colors) - I have rebuilt most of my Dashboards. Home Assistant Community Entities card without icon. latest_version_2 - entity: sensor. This ignores entity state, but will still dim. Below is one of the latest (not working) attempts: - type: custom:mushroom-cover-card name: South Upstairs Garage Bay Door Nice work! I just successfully added your code to a card_mod: tweak to style the battery icons as secondary entities in a custom:multiple-entity-row card which doesn’t support icon_color: I can create an entity-card showing the entity. acc_air_tomorrow name: Lucht Kwaliteit Morgen columns: 2 title: Lucht Kwaliteit state_color: true - type: horizontal-stack cards: - type: vertical Hi, I have following entity card, and I would like to change the color of „Now“ entity. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. The ‘main’ helper is a boolean, and I’d like to the theme’s standard on/off colors for that. It can be set to the state special token to dynamically color the icon based on state, domain, and device_class of your entity. Below is what I have so far but I’m noticing it sets the color to black and it doesn’t change after the icon is pressed. See the code examples, tips and errors from the discussion thread. Uses a different DOM-path, so posting here as a further reference: When I try to retrieve the value for ' color ' ( red for simplicity) in the custom button card it does not work yet ' name ' displays the correct value of red in the button. I would like the play and pause icons to be black and the main entity icon of the vacuum cleaner to be in the default color (blue). arrival_sensor_presence state: 'Home' card: type: entities entities: - sensor. How do I achieve this? I have seen various code snippets containing style and card commands, but I cannot find any documentation for this. outside_smart_plug_1 icon: mdi:string-lights - entity: switch. . Trying to change the cctv icon color from white to something else so it stands out better. Example: If {{ relative_time(states. nordpool_kwh_d I have the following entity card displaying some information next to a small icon. I need to make the color of the icon change based on the status of a second entity. By default, it will not be colored. Depending on what Coloring seems to be a challenging configuration on lovelace cards. Trying to set button colour icon based on an entity state using card somewhat. dogfeedtime icon: mdi:food-fork-drink name: Dog Fed icon_color: blue Hello all, Could I get some help on figuring out if the below is doable and how to do it possibly. last_changed) }} is less than 5 Ok I will test as you suggest. io. Why doesn’t the icon show up in red with this code: type: entities entities: - entity: Hello! on HA core-2021. I’d like to get the same round border as the mushroom cards, however I have to use a default entity card since the mushroom entity card Hi, I have an Entity Filter card set to list some entities if they fail (ping/backup checks) and I would like to make them appear in red text/icon when they do, but have no idea if possible or how. So, in this case, the number „11%“ shoul I have a number of entities (Lamps, Garage Door Covers, Solar Inverter status, etc. So, to fix this - i wan’t a “panel” where u can see when they last updated and I’ve got an icon in a template chip card that I’d like to set to three colors, based on the values of 2 helpers. What I would like to do is change the icon from Hello Community, i have one Question: Is it possible to create a Footer with Buttons (Switch Entity), where the icon is changed in case of the state of the Switch? Have tried the custom: custom:button-card, but this is not accapted in footer, right? type: entities entities: - entity: cover. Home Assistant Community Custom:mushroom-entity-card icon color state not working. I would We are volunteering our free time to help others. I am using the custom chip card. Current card config type: entities entities: - entity: Hello, this is my script for my chips card on top of my dashboard. Screenshot of the Entity card. For some this is too much, and not required. There are no errors but the icon does not change color. Custom-ui can add that, and many other things, like templating any atttribute. and that translates to this. delivery_box - entity: binary_sensor. In my dashboard i have a mqtt sensor (numeric) that i show in a tile card. outside_smart_plug_2 icon: mdi:string-lights For only the bottom two entities, the icon doesn’t turn yellow (like the light Hi guys Is it possible to customize scene icon color in Picture Glance Card ? I try that, but it’s not working : customize. I think I have a better way, I can set up 2 cards one for To Home one for To Work and just one gets displayed based on my smartthings presence sensor (Home/Away values) title: Commute type: conditional conditions: - entity: binary_sensor. That's why we released this adapted Set an icon-color on a custom:template-entity-row (which already supports icon templates, but needs the mod for a color). The colors the icon changes to (active icon/ inactive icon) are set by your theme. The state of “input_boolean. I’ve created my own color schemas within my theme - and I am pretty happy with all of this - except one particular thing: TileCards with Select-Entities. What I wasn’t able to do was making the color of the icon and state dependent on said state. I am trying to figure out how to change the color of an icon based on the numeric state of a different entity. I also have the button_card_template defined, and I would like to change the icon color based on whether or not there are lights on. front_porch_light - light. I’d like to achieve this directly For changing the icon color, on their page on GitHub it says "It will also set the icon color to the value found in the CSS variable --card-mod-icon-color if present. ceiling_lights - light. Setting this to auto-no-temperature will behave like home-assistant's default, ignoring the temperature of the light. type: entities entities: - binary_sensor. - type: icon icon: mdi:cctv entity: camera. Eoras (Paul) March 13, 2024, 4:34pm 1. lockcode_code - entity: input_select. I am trying to change the icon colour for the chips card at the top of the dash. And i can not believe, that there is no option “out of the box”. giz dnomn tmxkai xtbb rjdjuo kqlxn bdueixv mtq mesork qzrob