Hier mal mein Code von der Steuerung meiner Reolink … Vielleicht hilft das weiter
type: horizontal-stack
cards:
- type: custom:button-card
entity: select.kamera_auffahrt_ptz_voreinstellung
name: Eingang
size: 20px
show_icon: false
tap_action:
action: call-service
service: select.select_option
service_data:
entity_id: select.kamera_auffahrt_ptz_voreinstellung
option: Eingang
secondary_info: none
styles:
card:
- height: 60px
- border-top: solid black 0px
- border-left: solid black 0px
- border-right: solid black 0px
- border-bottom: solid black 0px
- background: var(--ha-card-background)
name:
- font-size: 1.1rem
- line-height: 2.5rem
- font-weight: 300
icon:
- color: var(--white-color)
state:
- font-weight: 300
- type: custom:button-card
entity: select.kamera_auffahrt_ptz_voreinstellung
name: Paketbox
size: 20px
show_icon: false
tap_action:
action: call-service
service: select.select_option
service_data:
entity_id: select.kamera_auffahrt_ptz_voreinstellung
option: Paketbox
secondary_info: none
styles:
card:
- height: 60px
- border-top: solid black 0px
- border-left: solid black 0px
- border-right: solid black 0px
- border-bottom: solid black 0px
- background: var(--ha-card-background)
name:
- font-size: 1.1rem
- line-height: 2.5rem
- font-weight: 300
icon:
- color: var(--white-color)
state:
- font-weight: 300
- type: custom:button-card
entity: select.kamera_auffahrt_ptz_voreinstellung
name: Auffahrt
show_icon: false
size: 20px
tap_action:
action: call-service
service: select.select_option
service_data:
entity_id: select.kamera_auffahrt_ptz_voreinstellung
option: Auffahrt
secondary_info: none
styles:
card:
- height: 60px
- border-top: solid black 0px
- border-left: solid black 0px
- border-right: solid black 0px
- border-bottom: solid black 0px
- background: var(--ha-card-background)
name:
- font-size: 1.1rem
- line-height: 2.5rem
- font-weight: 300
icon:
- color: var(--white-color)
state:
- font-weight: 300
- type: custom:button-card
entity: select.kamera_auffahrt_ptz_voreinstellung
name: Hof
show_icon: false
size: 20px
tap_action:
action: call-service
service: select.select_option
service_data:
entity_id: select.kamera_auffahrt_ptz_voreinstellung
option: Hof
secondary_info: none
styles:
card:
- height: 60px
- border-top: solid black 0px
- border-left: solid black 0px
- border-right: solid black 0px
- border-bottom: solid black 0px
- background: var(--ha-card-background)
name:
- font-size: 1.1rem
- line-height: 2.5rem
- font-weight: 300
icon:
- color: var(--white-color)
state:
- font-weight: 300