mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2026-06-10 20:30:55 +00:00
Update Home Assistant repo instructions
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
# Related Issue: 798
|
||||
# Notes: Operates only when family/guest/vacation and speech notification
|
||||
# guards allow it, with time-aware volume.
|
||||
# Notes: Set `speech_direct: true` for exact visitor-facing announcements that should not be rewritten by the LLM.
|
||||
# Notes: Garage Echo is an always-on announcement target. Office Echo is
|
||||
# added when switch.office_lamp_switch is on, which tracks active PC work.
|
||||
######################################################################
|
||||
@@ -20,6 +21,11 @@ speech_processing:
|
||||
- event: openai_instructions_sent
|
||||
event_data:
|
||||
instructions: "{{ speech_message | striptags }}"
|
||||
|
||||
- variables:
|
||||
direct_speech: "{{ speech_direct | default(false) | bool }}"
|
||||
routed_media_players: "{{ media_player | string | lower }}"
|
||||
speech_response: "{{ speech_message | striptags | trim }}"
|
||||
|
||||
- condition: and
|
||||
conditions:
|
||||
@@ -67,16 +73,20 @@ speech_processing:
|
||||
0.2
|
||||
{% endif %}
|
||||
|
||||
- service: conversation.process
|
||||
data:
|
||||
agent_id: conversation.openai_conversation
|
||||
text: >-
|
||||
{{ speech_message }}
|
||||
response_variable: agent
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ not direct_speech }}"
|
||||
sequence:
|
||||
- service: conversation.process
|
||||
data:
|
||||
agent_id: conversation.openai_conversation
|
||||
text: >-
|
||||
{{ speech_message }}
|
||||
response_variable: agent
|
||||
|
||||
- variables:
|
||||
speech_response: "{{ agent.response.speech.plain.speech }}"
|
||||
routed_media_players: "{{ media_player | string | lower }}"
|
||||
- variables:
|
||||
speech_response: "{{ agent.response.speech.plain.speech }}"
|
||||
|
||||
- service: tts.cloud_say
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user