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:
- info: "short"
- sync_volume: true
- name:
card:
type: custom:mini-media-player
artwork: cover
name: "[[name]]"
info: "[[info]]"
entity: "[[player]]"
speaker_group:
sync_volume: "[[sync_volume]]"
entities:
entities: &entities_in_gorup
- entity_id: media_player.master_bedroom
name: M. Bedroom
- entity_id: media_player.living_room
@@ -29,13 +31,17 @@ sonos_media_player:
sonos_media_player_small:
card:
type: custom:mini-media-player
artwork: none
artwork: cover
name: "[[name]]"
entity: "[[player]]"
speaker_group:
entities: *entities_in_gorup
hide:
power: true
icon: true
info: true
controls: true
shuffle: true
info: true
idle_view:
when_idle: true
when_standby: true
@@ -1,4 +1,6 @@
media_with_controls:
defaults:
- player_name:
card:
type: vertical-stack
title: Media
@@ -7,6 +9,7 @@ media_with_controls:
template: sonos_media_player
variables:
- player: "[[player]]"
- name: "[[player_name]]"
- sync_volume: false
- type: horizontal-stack
cards:
@@ -20,3 +20,4 @@
template: media_with_controls
variables:
- player: media_player.bathroom
- player_name: Bathroom
@@ -81,6 +81,7 @@
template: media_with_controls
variables:
- player: media_player.kitchen
- player_name: Kitchen
- type: horizontal-stack
cards:
@@ -93,6 +93,7 @@
template: media_with_controls
variables:
- player: media_player.living_room
- player_name: Living room
- type: vertical-stack
@@ -314,22 +314,23 @@
template: sonos_media_player
variables:
- player: media_player.master_bedroom
- name: M. Bedroom
- type: custom:decluttering-card
template: sonos_media_player
template: sonos_media_player_small
variables:
- player: media_player.living_room
- sync_volume: false
- name: Living room
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.kitchen
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.kitchen
- name: Kitchen
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.bathroom
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.bathroom
- name: Bathroom
@@ -76,6 +76,7 @@
template: media_with_controls
variables:
- player: media_player.master_bedroom
- player_name: M. Bedroom
- type: vertical-stack
+8
View File
@@ -98,6 +98,8 @@ media_player.kitchen:
template: sonos_media_player
variables:
- player: media_player.kitchen
- name: Kitchen
- sync_volume: false
media_player.bathroom:
title: Bathroom Sonos
@@ -107,6 +109,8 @@ media_player.bathroom:
template: sonos_media_player
variables:
- player: media_player.bathroom
- name: Bathroom
- sync_volume: false
media_player.master_bedroom:
title: Master bedroom Sonos
@@ -116,6 +120,8 @@ media_player.master_bedroom:
template: sonos_media_player
variables:
- player: media_player.master_bedroom
- name: M. Bedroom
- sync_volume: false
media_player.nvidia_shield: &nvidia_shield
title: TV
@@ -166,6 +172,8 @@ media_player.nvidia_shield: &nvidia_shield
template: sonos_media_player
variables:
- player: media_player.living_room
- name: Living room
- sync_volume: false
- type: horizontal-stack
cards: