Improve sonos on tablet dashboard

This commit is contained in:
2020-03-31 22:56:24 +03:00
parent 48ab993269
commit a2d868ef4c
2 changed files with 41 additions and 17 deletions
@@ -1,7 +1,10 @@
sonos_media_player:
default:
- info: "scroll"
card:
type: custom:mini-media-player
artwork: cover
info: "[[info]]"
entity: "[[player]]"
speaker_group:
sync_volume: true
@@ -21,3 +24,19 @@ sonos_media_player:
idle_view:
when_idle: true
when_standby: true
sonos_media_player_small:
default:
- info: "short"
card:
type: custom:mini-media-player
artwork: cover
info: "[[info]]"
entity: "[[player]]"
hide:
power: true
icon: true
shuffle: false
idle_view:
when_idle: true
when_standby: true
+22 -17
View File
@@ -72,14 +72,16 @@ views:
- type: vertical-stack
title: Sonos
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.master_bedroom
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.kitchen
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.living_room
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.master_bedroom
# Column 2
- type: vertical-stack
@@ -122,13 +124,16 @@ views:
template: small
entity: binary_sensor.bedroom_right_window_on_off_wrapper
- type: vertical-stack
title: "___"
title: Sonos
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.living_room
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.bathroom
- 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.bathroom