Improve error detection
This commit is contained in:
parent
3cb21f34d9
commit
698a083751
@ -280,7 +280,7 @@ interval:
|
|||||||
condition:
|
condition:
|
||||||
and:
|
and:
|
||||||
- switch.is_on: voice_support_active
|
- switch.is_on: voice_support_active
|
||||||
- not: voice_assistant.is_running
|
- not: voice_assistant.connected
|
||||||
then:
|
then:
|
||||||
- logger.log: "voice assistant not running; restarting"
|
- logger.log: "voice assistant not running; restarting"
|
||||||
- voice_assistant.start_continuous:
|
- voice_assistant.start_continuous:
|
||||||
@ -317,16 +317,13 @@ voice_assistant:
|
|||||||
switch.is_on: voice_support_active
|
switch.is_on: voice_support_active
|
||||||
then:
|
then:
|
||||||
- voice_assistant.stop:
|
- voice_assistant.stop:
|
||||||
- delay: 1s
|
|
||||||
- voice_assistant.start_continuous:
|
- voice_assistant.start_continuous:
|
||||||
on_end:
|
on_end:
|
||||||
- logger.log: "voice ended"
|
- logger.log: "voice ended"
|
||||||
on_client_connected:
|
on_client_connected:
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
and:
|
switch.is_on: voice_support_active
|
||||||
- switch.is_on: voice_support_active
|
|
||||||
- not: voice_assistant.is_running
|
|
||||||
then:
|
then:
|
||||||
- voice_assistant.start_continuous:
|
- voice_assistant.start_continuous:
|
||||||
- light.turn_off:
|
- light.turn_off:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user