Madplan: tilføj store volumen op/ned knapper til Sonos Køkken

This commit is contained in:
2026-05-17 17:45:26 +02:00
parent f5f085f155
commit b46d820c20
+54
View File
@@ -104,6 +104,60 @@ cards:
entity: media_player.kokken entity: media_player.kokken
name: Sonos Køkken name: Sonos Køkken
- type: grid
columns: 2
square: false
cards:
- type: custom:button-card
name: Volumen ned
icon: mdi:volume-minus
tap_action:
action: perform-action
perform_action: media_player.volume_down
target:
entity_id: media_player.kokken
hold_action:
action: perform-action
perform_action: media_player.volume_down
target:
entity_id: media_player.kokken
styles:
card:
- height: 72px
- font-size: 16px
- background: var(--primary-color)
icon:
- color: white
- width: 36px
name:
- color: white
- font-size: 13px
- type: custom:button-card
name: Volumen op
icon: mdi:volume-plus
tap_action:
action: perform-action
perform_action: media_player.volume_up
target:
entity_id: media_player.kokken
hold_action:
action: perform-action
perform_action: media_player.volume_up
target:
entity_id: media_player.kokken
styles:
card:
- height: 72px
- font-size: 16px
- background: var(--primary-color)
icon:
- color: white
- width: 36px
name:
- color: white
- font-size: 13px
- type: grid - type: grid
columns: 3 columns: 3
square: false square: false