Remove sonos leader for now

This commit is contained in:
2020-04-04 14:37:24 +03:00
parent 652f2920c8
commit 6984782512
4 changed files with 18 additions and 39 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ script:
sequence:
# Figure out whether to talk or send a text.
- service_template: >
{% if is_state(states('input_select.sonos_leader'), 'playing')
{% if is_state('media_player.master_bedroom', 'playing')
or is_state('input_boolean.speech_notifications', 'off')
or is_state('input_boolean.georgi_home', 'off') %}
notify.telegram
@@ -80,11 +80,11 @@ script:
# Say message.
- service: tts.amazon_polly_say
data_template:
entity_id: "{{ states('input_select.sonos_leader') }}"
entity_id: media_player.master_bedroom
message: "{{ message }}"
# Wait for phrase to be over and mark as not talking.
- delay: 00:00:01
- wait_template: "{{ is_state('binary_sensor.sonos_leader_paused', 'on') }}"
- wait_template: "{{ is_state('media_player.master_bedroom', 'paused') }}"
timeout: 00:02:00
- service: input_boolean.turn_off
entity_id: input_boolean.sarah_talking