Hey, I want create extra switch in ESP device to enable or disable processing voice assistant pipeline. I know how to create switch:
switch:
...
- platform: template
name: Disable processing response
id: disable_processing_response
optimistic: true
restore_mode: ALWAYS_OFF
but I don't know how to stop processing pipeline when I will have text converted from voice and save in other sensor. Does anyone know if I can do something like this?
voice_assistant:
...
on_stt_end:
- text_sensor.template.publish:
id: text_request
state: !lambda return x;
- if:
condition:
and:
- switch.is_on: disable_processing_response
- voice_assistant.is_running
then:
- ???HOW TO STOP PROCESSING PIPELINE THERE???
After activating the microphone, I would like to only process the spoken text without continuing its processing in intents and without waiting for the assistant's response.