mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Handle wake word not set up internally (#5738)
This commit is contained in:
parent
684cf10230
commit
45276cc244
1 changed files with 5 additions and 0 deletions
|
@ -610,6 +610,11 @@ void VoiceAssistant::on_event(const api::VoiceAssistantEventResponse &msg) {
|
|||
if (code == "wake-word-timeout" || code == "wake_word_detection_aborted") {
|
||||
// Don't change state here since either the "tts-end" or "run-end" events will do it.
|
||||
return;
|
||||
} else if (code == "wake-provider-missing" || code == "wake-engine-missing") {
|
||||
// Wake word is not set up or not ready on Home Assistant so stop and do not retry until user starts again.
|
||||
this->request_stop();
|
||||
this->error_trigger_->trigger(code, message);
|
||||
return;
|
||||
}
|
||||
ESP_LOGE(TAG, "Error: %s - %s", code.c_str(), message.c_str());
|
||||
if (this->state_ != State::IDLE) {
|
||||
|
|
Loading…
Reference in a new issue