mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
More music controls
This commit is contained in:
@@ -16,11 +16,20 @@ media_with_controls:
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: xs
|
||||
entity: sensor.philip_defranco
|
||||
name: PDS
|
||||
entity: script.sonos_volume_10
|
||||
icon: mdi:volume-low
|
||||
name: vol 10
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.youtube_play_latest_pds
|
||||
service: script.sonos_volume_10
|
||||
- type: custom:button-card
|
||||
template: xs
|
||||
entity: script.sonos_volume_20
|
||||
icon: mdi:volume-medium
|
||||
name: vol 20
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.sonos_volume_20
|
||||
- type: custom:button-card
|
||||
template: xs
|
||||
entity: script.music_play
|
||||
@@ -28,6 +37,16 @@ media_with_controls:
|
||||
icon: mdi:music
|
||||
tap_action:
|
||||
action: toggle
|
||||
- type: custom:button-card
|
||||
template: xs
|
||||
entity: script.music_play
|
||||
name: Chill 2
|
||||
icon: mdi:music
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.music_play
|
||||
service_data:
|
||||
playlist: "Songs for a Romantic Evening"
|
||||
- type: custom:button-card
|
||||
template: xs
|
||||
entity: script.music_play
|
||||
|
||||
@@ -68,6 +68,44 @@ script:
|
||||
entity_id: media_player.bathroom
|
||||
data:
|
||||
volume_level: 0.2
|
||||
sonos_volume_10:
|
||||
alias: Sonos · Volume 10
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
volume_level: 0.1
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.living_room
|
||||
data:
|
||||
volume_level: 0.2
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.bathroom
|
||||
data:
|
||||
volume_level: 0.1
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.kitchen
|
||||
data:
|
||||
volume_level: 0.1
|
||||
sonos_volume_20:
|
||||
alias: Sonos · Volume 20
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
volume_level: 0.2
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.living_room
|
||||
data:
|
||||
volume_level: 0.3
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.bathroom
|
||||
data:
|
||||
volume_level: 0.2
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.kitchen
|
||||
data:
|
||||
volume_level: 0.2
|
||||
|
||||
automation:
|
||||
- alias: Media · Sonos · Put Beam in night mode
|
||||
|
||||
Reference in New Issue
Block a user