I’m trying to replace the icon with an image in the Selector section.
Unfortunately, your example didn’t work. How can I add an image?
type: tile
entity: climate.salon_klima_2
vertical: false
features:
- type: custom:service-call
entries:
- type: selector
entity_id: climate.salon_klima_2
options:
- entity_id: climate.salon_klima_2
option: "off"
tap_action:
action: call-service
service: climate.set_hvac_mode
target:
entity_id: climate.salon_klima_2
data:
hvac_mode: "off"
icon: mdi:power
styles: |-
:host {
transition: width 0.5s ease;
--icon-color: red;
.icon {
--mdc-icon-size: 32px;
}
}
- entity_id: climate.salon_klima_2
option: fan_only
tap_action:
action: call-service
service: climate.set_hvac_mode
target:
entity_id: climate.salon_klima_2
data:
hvac_mode: fan_only
icon: mdi:fan
styles: |-
:host {
transition: width 0.5s ease;
--icon-color: blue;
.icon {
--mdc-icon-size: 32px;
}
}
- entity_id: climate.salon_klima_2
option: dry
tap_action:
action: call-service
service: climate.set_hvac_mode
target:
entity_id: climate.salon_klima_2
data:
hvac_mode: dry
icon: mdi:water-percent
styles: |-
:host {
transition: width 0.5s ease;
--icon-color: cyan;
.icon {
--mdc-icon-size: 32px;
}
}
- entity_id: climate.salon_klima_2
option: cool
tap_action:
action: call-service
service: climate.set_hvac_mode
target:
entity_id: climate.salon_klima_2
data:
hvac_mode: cool
icon: mdi:snowflake
styles: |-
:host {
transition: width 0.5s ease;
--icon-color: gray;
.icon {
--mdc-icon-size: 32px;
}
}
features_position: bottom
card_mod:
style: |
ha-card {
height: auto !important;
padding-top: 10px !important;
background: none !important;
border: none !important;
.content {
display: none !important;
}
}
Also, is there a way to cancel the hover effect that occurs when it comes to the frame?

