Skip to content

Commit a84bb02

Browse files
author
Kevin Ahrendt
committed
fix display logic around HA intiated announcements
1 parent a4f1e2c commit a84bb02

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

esp32-s3-box/esp32-s3-box.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,14 @@ media_player:
182182
on_announcement:
183183
- if:
184184
condition:
185-
lambda: return id(voice_assistant_phase) == ${voice_assist_idle_phase_id};
185+
microphone.is_capturing:
186186
then:
187187
- script.execute: stop_voice_assistant
188+
- if:
189+
condition:
190+
not:
191+
voice_assistant.is_running:
192+
then:
188193
- lambda: id(voice_assistant_phase) = ${voice_assist_muted_phase_id};
189194
- script.execute: draw_display
190195
on_idle:
@@ -231,8 +236,11 @@ voice_assistant:
231236
- script.execute: draw_display
232237
on_end:
233238
- wait_until:
234-
not:
235-
media_player.is_announcing:
239+
and:
240+
- not:
241+
media_player.is_announcing:
242+
- not:
243+
voice_assistant.is_running:
236244
- if:
237245
condition:
238246
switch.is_off: mute

0 commit comments

Comments
 (0)