Tweak sonos cards

This commit is contained in:
2020-05-02 20:36:09 +03:00
parent bb4cc4d4ab
commit 78f413943b
8 changed files with 37 additions and 15 deletions
@@ -2,14 +2,16 @@ sonos_media_player:
default: default:
- info: "short" - info: "short"
- sync_volume: true - sync_volume: true
- name:
card: card:
type: custom:mini-media-player type: custom:mini-media-player
artwork: cover artwork: cover
name: "[[name]]"
info: "[[info]]" info: "[[info]]"
entity: "[[player]]" entity: "[[player]]"
speaker_group: speaker_group:
sync_volume: "[[sync_volume]]" sync_volume: "[[sync_volume]]"
entities: entities: &entities_in_gorup
- entity_id: media_player.master_bedroom - entity_id: media_player.master_bedroom
name: M. Bedroom name: M. Bedroom
- entity_id: media_player.living_room - entity_id: media_player.living_room
@@ -29,13 +31,17 @@ sonos_media_player:
sonos_media_player_small: sonos_media_player_small:
card: card:
type: custom:mini-media-player type: custom:mini-media-player
artwork: none artwork: cover
name: "[[name]]"
entity: "[[player]]" entity: "[[player]]"
speaker_group:
entities: *entities_in_gorup
hide: hide:
power: true power: true
icon: true icon: true
info: true controls: true
shuffle: true shuffle: true
info: true
idle_view: idle_view:
when_idle: true when_idle: true
when_standby: true when_standby: true
@@ -1,4 +1,6 @@
media_with_controls: media_with_controls:
defaults:
- player_name:
card: card:
type: vertical-stack type: vertical-stack
title: Media title: Media
@@ -7,6 +9,7 @@ media_with_controls:
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: "[[player]]" - player: "[[player]]"
- name: "[[player_name]]"
- sync_volume: false - sync_volume: false
- type: horizontal-stack - type: horizontal-stack
cards: cards:
@@ -20,3 +20,4 @@
template: media_with_controls template: media_with_controls
variables: variables:
- player: media_player.bathroom - player: media_player.bathroom
- player_name: Bathroom
@@ -81,6 +81,7 @@
template: media_with_controls template: media_with_controls
variables: variables:
- player: media_player.kitchen - player: media_player.kitchen
- player_name: Kitchen
- type: horizontal-stack - type: horizontal-stack
cards: cards:
@@ -93,6 +93,7 @@
template: media_with_controls template: media_with_controls
variables: variables:
- player: media_player.living_room - player: media_player.living_room
- player_name: Living room
- type: vertical-stack - type: vertical-stack
@@ -314,22 +314,23 @@
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.master_bedroom - player: media_player.master_bedroom
- name: M. Bedroom
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player template: sonos_media_player_small
variables: variables:
- player: media_player.living_room - player: media_player.living_room
- sync_volume: false - name: Living room
- type: horizontal-stack - type: custom:decluttering-card
cards: template: sonos_media_player_small
- type: custom:decluttering-card variables:
template: sonos_media_player_small - player: media_player.kitchen
variables: - name: Kitchen
- player: media_player.kitchen
- type: custom:decluttering-card - type: custom:decluttering-card
template: sonos_media_player_small template: sonos_media_player_small
variables: variables:
- player: media_player.bathroom - player: media_player.bathroom
- name: Bathroom
@@ -76,6 +76,7 @@
template: media_with_controls template: media_with_controls
variables: variables:
- player: media_player.master_bedroom - player: media_player.master_bedroom
- player_name: M. Bedroom
- type: vertical-stack - type: vertical-stack
+8
View File
@@ -98,6 +98,8 @@ media_player.kitchen:
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.kitchen - player: media_player.kitchen
- name: Kitchen
- sync_volume: false
media_player.bathroom: media_player.bathroom:
title: Bathroom Sonos title: Bathroom Sonos
@@ -107,6 +109,8 @@ media_player.bathroom:
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.bathroom - player: media_player.bathroom
- name: Bathroom
- sync_volume: false
media_player.master_bedroom: media_player.master_bedroom:
title: Master bedroom Sonos title: Master bedroom Sonos
@@ -116,6 +120,8 @@ media_player.master_bedroom:
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.master_bedroom - player: media_player.master_bedroom
- name: M. Bedroom
- sync_volume: false
media_player.nvidia_shield: &nvidia_shield media_player.nvidia_shield: &nvidia_shield
title: TV title: TV
@@ -166,6 +172,8 @@ media_player.nvidia_shield: &nvidia_shield
template: sonos_media_player template: sonos_media_player
variables: variables:
- player: media_player.living_room - player: media_player.living_room
- name: Living room
- sync_volume: false
- type: horizontal-stack - type: horizontal-stack
cards: cards: