Hallo Forum!
Ich habe eine Frage zum Card_Mod Add-on in Verbindung mit einer Picture-Glance Karte.
Ich würde gern die Icons einfärben und bekomme es leider nicht hin. Leider werden nicht alle Icons eingefärbt und die Größe ändert sich nicht.
Hat jemand eine Idee, wie der Code angepasst werden müsste, damit es läuft?
camera_view: auto
type: picture-glance
title: Auto
image: local/images/auto.jpg
entities:
- entity: binary_sensor.auto_ladezustand
- entity: sensor.auto_restreichweite_elektrisch
- entity: sensor.auto_verbleibende_reichweite_insgesamt
- entity: sensor.auto_verbleibende_batterie_in_prozent
show_state: true
- entity: lock.auto_schloss
show_state: true
- entity: button.auto_fahrzeug_finden
card_mod:
style:
.box div:nth-child(2) .wrapper ha-icon-button ha-state-icon:
$: |
ha-svg-icon {
color: cyan;
width: 40px !important;
height: 40px !important;
}
.box div:nth-child(2) .wrapper ha-icon-button[active] ha-state-icon:
$: |
ha-svg-icon {
color: blue;
width: 40px !important;
height: 40px !important;
}
.box div:nth-child(2) .wrapper ha-icon-button:not([active]) ha-state-icon:
$: |
ha-svg-icon {
color: lightblue;
width: 40px !important;
height: 40px !important;
}
.box .row: |
.wrapper .state {
color: blue;
}
Viele Dank vorab für jede Hilfe!!!
Viele Grüße
HennD