mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
media_with_controls:
|
|
default:
|
|
- title: "Media"
|
|
- player_name:
|
|
card:
|
|
type: vertical-stack
|
|
title: "[[title]]"
|
|
cards:
|
|
- type: custom:decluttering-card
|
|
template: sonos_media_player
|
|
variables:
|
|
- player: "[[player]]"
|
|
- name: "[[player_name]]"
|
|
- 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
|