Hey Leute,
ich habe ein ganz einfaches LED-Band mit IR-Fernbedienung. Diese Befehle habe ich jetzt eingelesen und will sie mit HA auf dem Dachboard nutzen. Aber ich bekomme einfach die Buttons nicht hin. CSS ist bei mir schon sehr lange her und von YAML habe ich beinahe gar keine Ahnung.
Ich habe irgendwo aus dem Internet einen Code übernommen, der soweit eigentlich funktioniert. Aber wenn ich die Farben der Tasten ändern will UND die passende Entität ändere, bekomme ich nur noch eine graublaue Standartfarbe.
Könnt Ihr mir ein paar Tipps geben?
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
color_type: blank-card
- type: custom:button-card
color_type: blank-card
- type: custom:button-card
entity: switch.fern_rot
show_name: false
icon: "n"
background-color: "#EA4026"
- type: custom:button-card
entity: switch.fern_gruen
color_type: card
color: "#DB4039"
name: "ON"
- type: custom:button-card
entity: switch.fern_rot
color_type: card
color: red !important
icon: m
name: V-
show_name: false
style:
card:
- color: red !important
- type: custom:button-card
entity: switch.kitchen_scene_3
color_type: card
color: "#4C75D0"
name: "OFF"
show-name: false
- type: custom:button-card
entity: switch.kitchen_scene_4
color_type: card
color: "#ffffff"
name: "ON"
- type: custom:button-card
color_type: blank-card
- type: custom:button-card
color_type: blank-card

P.S. switch.kittchen_szene ist vom Originalcode, meine Entitäten sind die switch.fern:_rot - blau etc.