Dashboards refactoring

This commit is contained in:
2020-05-01 22:12:16 +03:00
parent 6ce198db20
commit 798d1d842c
7 changed files with 101 additions and 287 deletions
@@ -0,0 +1,56 @@
media_with_controls:
card:
type: vertical-stack
title: Media
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: "[[player]]"
- sync_volume: false
- type: horizontal-stack
cards:
- type: custom:button-card
template: xs
entity: sensor.philip_defranco
name: PDS
tap_action:
action: call-service
service: script.youtube_play_latest_pds
- type: custom:button-card
template: xs
entity: script.music_play
name: Chill
icon: mdi:music
tap_action:
action: toggle
- type: custom:button-card
template: xs
entity: script.music_play
name: Retro
icon: mdi:music
tap_action:
action: call-service
service: script.music_play
service_data:
playlist: "Retro"
- type: custom:button-card
template:
- xs
- with_state_background
entity: binary_sensor.sonos_is_bedroom_master
name: Bedroom
icon: mdi:speaker-multiple
tap_action:
action: call-service
service: script.sonos_join_bedroom
- type: custom:button-card
template:
- xs
- with_state_background
entity: binary_sensor.sonos_is_living_room_master
name: TV
icon: mdi:speaker-multiple
tap_action:
action: call-service
service: script.sonos_join_tv