mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 10:46:20 +00:00 
			
		
		
		
	lOOKS LIKE WE JUST NEEDED MEDIA_SOURCES LOADED. Added delay for neato when we first get home or wake up.
This commit is contained in:
		| @@ -76,6 +76,7 @@ automation: | |||||||
|     action: |     action: | ||||||
|       - wait_template: "{{ states.group.family.state == 'home' }}" |       - wait_template: "{{ states.group.family.state == 'home' }}" | ||||||
|       - wait_template: "{{ is_state('group.bed', 'off') }}" |       - wait_template: "{{ is_state('group.bed', 'off') }}" | ||||||
|  |       - delay: 00:05:00 | ||||||
|  |  | ||||||
|       - service: script.speech_engine |       - service: script.speech_engine | ||||||
|         data: |         data: | ||||||
|   | |||||||
| @@ -29,7 +29,16 @@ speech_engine: | |||||||
|  |  | ||||||
|     - service: script.speech_processing |     - service: script.speech_processing | ||||||
|       data: |       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 |         speech_message: !include ../templates/speech/briefing.yaml | ||||||
|  |  | ||||||
|     - service: input_boolean.turn_off |     - service: input_boolean.turn_off | ||||||
|   | |||||||
| @@ -49,9 +49,8 @@ speech_processing: | |||||||
|  |  | ||||||
|     - service: media_player.volume_set |     - service: media_player.volume_set | ||||||
|       data: |       data: | ||||||
|         # entity_id: > |         entity_id: > | ||||||
|         #   {{ media_player }} |           {{ media_player }} | ||||||
|         entity_id: media_player.livingroomCC |  | ||||||
|         volume_level: >- |         volume_level: >- | ||||||
|           {% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %} |           {% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %} | ||||||
|             0.3 |             0.3 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user