mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Use sonos recoverable to make snapshots
This commit is contained in:
@@ -51,13 +51,19 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
# Figure out whether to talk or send a text.
|
# Figure out whether to talk or send a text.
|
||||||
- service_template: >
|
- service_template: >
|
||||||
{% if is_state('media_player.master_bedroom', 'playing')
|
{% if (is_state('media_player.master_bedroom', 'playing')
|
||||||
|
and is_state('binary_sensor.sonos_recoverable', 'off'))
|
||||||
or is_state('input_boolean.speech_notifications', 'off')
|
or is_state('input_boolean.speech_notifications', 'off')
|
||||||
or is_state('input_boolean.georgi_home', 'off') %}
|
or is_state('input_boolean.georgi_home', 'off') %}
|
||||||
notify.telegram
|
notify.telegram
|
||||||
|
{% else %}
|
||||||
|
{% if is_state('media_player.master_bedroom', 'playing')
|
||||||
|
and is_state('binary_sensor.sonos_recoverable', 'on') %}
|
||||||
|
script.sonos_say
|
||||||
{% else %}
|
{% else %}
|
||||||
script.sonos_blast
|
script.sonos_blast
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
data_template:
|
data_template:
|
||||||
title: "💬 *Speech Module*" # For telegram only
|
title: "💬 *Speech Module*" # For telegram only
|
||||||
message: "{{ message }}"
|
message: "{{ message }}"
|
||||||
@@ -102,11 +108,13 @@ script:
|
|||||||
data_template:
|
data_template:
|
||||||
with_group: yes
|
with_group: yes
|
||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
- delay: 00:00:02
|
- delay: 00:00:01
|
||||||
- service: script.sonos_blast
|
- service: script.sonos_blast
|
||||||
data_template:
|
data_template:
|
||||||
message: "{{ message }}"
|
message: "{{ message }}"
|
||||||
- delay: 00:00:05
|
volume_level: "{{ volume_level }}"
|
||||||
|
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
|
||||||
|
timeout: 00:02:00
|
||||||
- service: sonos.restore
|
- service: sonos.restore
|
||||||
data_template:
|
data_template:
|
||||||
with_group: yes
|
with_group: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user