Hello, I switched from iobroker to Homeassistant and now have a few problems. I want to change a color from an icon to blue and it should change to yellow during the action.
I’m doing something wrong.
Here is my script:
cards:
- type: tile
entity: switch.z_schalter_5_flur_1
name: Licht Flur
size: 100%
icon: mdi:led-on
color: accent
show_entity_picture: false
vertical: false
card_mod:
style: |
ha-card {
background: red;
border: 2px solid black;
background-size: 100%;
background-position: right;
filter: opacity(0.9);
background-image: url(/api/hassio_ingress/WIOcgSx1pIALvF7hFC9eQHUHPEiOVn-uAes6hozRj9I/api/file?filename=/homeassistant/www/Bilder/Wohnzimmer_1.png)
}
- type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: tile
entity: switch.z_schalter_5_flur_1
name: Licht Flur
icon: mdi:led-on
color: accent
show_entity_picture: false
card_mod:
style: |
ha-card {
background: blue;
}
ha-card {
.state-icon {
color: red !important;
}
- type: vertical-stack
cards: []
title: Küche
- type: vertical-stack
cards: []
title: Wohnzimmer
- type: vertical-stack
cards: []
title: Schlafzimmer