diff --git a/config/lovelace/decluttering_templates/media_with_controls.yaml b/config/lovelace/decluttering_templates/media_with_controls.yaml index b3967e8..c1ba020 100644 --- a/config/lovelace/decluttering_templates/media_with_controls.yaml +++ b/config/lovelace/decluttering_templates/media_with_controls.yaml @@ -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 diff --git a/config/packages/modules/media/sonos.yaml b/config/packages/modules/media/sonos.yaml index 3d6352b..b023d76 100644 --- a/config/packages/modules/media/sonos.yaml +++ b/config/packages/modules/media/sonos.yaml @@ -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