Improve Voice Assistant handling
This commit is contained in:
parent
7710a11254
commit
2d31683f62
@ -201,22 +201,8 @@ logger:
|
|||||||
api:
|
api:
|
||||||
encryption:
|
encryption:
|
||||||
key: !secret api_encryption_key
|
key: !secret api_encryption_key
|
||||||
on_client_disconnected:
|
|
||||||
- light.turn_on:
|
|
||||||
id: output_led
|
|
||||||
effect: flash_white
|
|
||||||
- switch.turn_off: use_wake_word
|
|
||||||
on_client_connected:
|
on_client_connected:
|
||||||
# This absolute absurdity is required to prevent
|
|
||||||
# "no wake word detected" failure loops.
|
|
||||||
- switch.turn_on: use_wake_word
|
- switch.turn_on: use_wake_word
|
||||||
- delay: 2s
|
|
||||||
- switch.turn_off: use_wake_word
|
|
||||||
- delay: 2s
|
|
||||||
- switch.turn_on: use_wake_word
|
|
||||||
- delay: 2s
|
|
||||||
- light.turn_off:
|
|
||||||
id: output_led
|
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
password: !secret ota_password
|
password: !secret ota_password
|
||||||
@ -267,14 +253,14 @@ voice_assistant:
|
|||||||
auto_gain: 31dBFS
|
auto_gain: 31dBFS
|
||||||
volume_multiplier: 4.0
|
volume_multiplier: 4.0
|
||||||
id: assist
|
id: assist
|
||||||
on_error:
|
on_client_connected:
|
||||||
|
- delay: 2s
|
||||||
- light.turn_off:
|
- light.turn_off:
|
||||||
id: output_led
|
id: output_led
|
||||||
transition_length: 1s
|
on_client_disconnected:
|
||||||
- logger.log: "Voice Assistant encountered an error; restarting it"
|
- light.turn_on:
|
||||||
- switch.turn_off: use_wake_word
|
id: output_led
|
||||||
- delay: 1s
|
effect: flash_white
|
||||||
- switch.turn_on: use_wake_word
|
|
||||||
on_wake_word_detected:
|
on_wake_word_detected:
|
||||||
- light.turn_off:
|
- light.turn_off:
|
||||||
id: output_led
|
id: output_led
|
||||||
|
Loading…
x
Reference in New Issue
Block a user