diff --git a/config/packages/neato.yaml b/config/packages/neato.yaml index 5368eff3..32e776bc 100755 --- a/config/packages/neato.yaml +++ b/config/packages/neato.yaml @@ -76,6 +76,7 @@ automation: action: - wait_template: "{{ states.group.family.state == 'home' }}" - wait_template: "{{ is_state('group.bed', 'off') }}" + - delay: 00:05:00 - service: script.speech_engine data: diff --git a/config/script/speech_engine.yaml b/config/script/speech_engine.yaml index e6f4f23f..69be94d2 100755 --- a/config/script/speech_engine.yaml +++ b/config/script/speech_engine.yaml @@ -29,7 +29,16 @@ speech_engine: - service: script.speech_processing data: - media_player: media_player.livingroomcc + media_player: >- + {% if media_player | length == 0 %} + {% set media_player = [ + 'media_player.livingroomcc' + ] %} + {% endif %} + {% if media_player is not string and media_player is sequence %} + {% set media_player = media_player|join(', ') %} + {% endif %} + {{ media_player }} speech_message: !include ../templates/speech/briefing.yaml - service: input_boolean.turn_off diff --git a/config/script/speech_processing.yaml b/config/script/speech_processing.yaml index 3c6b0aec..d4f84050 100755 --- a/config/script/speech_processing.yaml +++ b/config/script/speech_processing.yaml @@ -49,9 +49,8 @@ speech_processing: - service: media_player.volume_set data: - # entity_id: > - # {{ media_player }} - entity_id: media_player.livingroomCC + entity_id: > + {{ media_player }} volume_level: >- {% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %} 0.3