Update sonos configuration

This commit is contained in:
Correl Roush 2019-08-30 10:21:49 -04:00
parent 045fa343a6
commit 7c18914414
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
automation:
- alias: Toggle Sonos night mode
action:
- service: media_player.sonos_set_option
- service: sonos.set_option
entity_id: media_player.den
data_template:
night_sound: >-
@ -46,10 +46,10 @@ script:
sonos_tts:
alias: "Sonos TTS"
sequence:
- service: media_player.sonos_snapshot
- service: sonos.snapshot
data_template:
entity_id: "{{ sonos_entity|default('media_player.den') }}"
- service: media_player.sonos_unjoin
- service: sonos.unjoin
data_template:
entity_id: "{{ sonos_entity|default('media_player.den') }}"
- service: media_player.volume_set
@ -71,7 +71,7 @@ script:
timeout: '00:00:05'
- wait_template: "{{ not is_state(sonos_entity|default('media_player.den'), 'playing') }}"
timeout: '00:02:00'
- service: media_player.sonos_restore
- service: sonos.restore
data_template:
entity_id: "{{ sonos_entity|default('media_player.den') }}"