Hello,
I want to add the possibility to change the color of the icons depending on the state of an entity and for that I have installed custom-iu, but when I install it, the card I was designing fails and gives me an error:
Custom element doesn’t exist: hui-vertical-stack-card
My card is:
type: custom:hui-vertical-stack-card
cards:
- type: custom:hui-horizontal-stack-card
cards:
- type: custom:mushroom-entity-card
entity: sensor.salon_temp
name: Salón
icon_type: none
fill_container: false
tap_action:
action: navigate
navigation_path: SALON
card_mod:
style: |
ha-card {
background-color: rgba(0,0,0,0);
box-shadow: none;
border-style: hidden;
}
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: switch.suelo_salon
content_info: state
use_entity_picture: false
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:heating-coil
icon_color: >-
{% if is_state('switch.modo','Calor') %}red{% else %}blue{% endif
%}
tap_action:
action: toggle
alignment: end
- type: custom:mushroom-number-card
entity: number.set_salon_temp
name: Consigna
icon: mdi:thermometer
display_mode: slider
card_mod:
style: |
ha-card {
background-color: rgba(0,0,0,0);
box-shadow: none;
border-style: hidden;
}
- graph: line
type: sensor
entity: sensor.salon_temp
detail: 1
name: Temperatura
card_mod:
style: |
ha-card {
background-color: rgba(0,0,0,0);
box-shadow: none;
border-style: hidden;
}