Files
sarah/config/packages/modules/media/music.yaml
T

23 lines
751 B
YAML

# https://www.home-assistant.io/integrations/spotify
spotify:
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
script:
music_play:
alias: Music · Play
sequence:
- service: script.sonos_join_bedroom
- service: media_player.volume_set
entity_id: group.all_sonos
data_template:
volume_level: "{{ volume_level | default(0.2) }}"
- service: media_player.shuffle_set
entity_id: media_player.master_bedroom
data_template:
shuffle: "{{ shuffle | default(true) }}"
- service: media_player.select_source
entity_id: media_player.master_bedroom
data_template:
source: "{{ playlist | default('Evening Chill') }}"