Skip to content

Commit 396fed5

Browse files
author
Kevin Ahrendt
committed
fix display logic around HA intitiated announcements
1 parent b9fa2c1 commit 396fed5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,14 @@ media_player:
248248
on_announcement:
249249
- if:
250250
condition:
251-
lambda: return id(voice_assistant_phase) == ${voice_assist_idle_phase_id};
251+
microphone.is_capturing:
252252
then:
253253
- script.execute: stop_voice_assistant
254+
- if:
255+
condition:
256+
not:
257+
voice_assistant.is_running:
258+
then:
254259
- lambda: id(voice_assistant_phase) = ${voice_assist_muted_phase_id};
255260
- script.execute: draw_display
256261
on_idle:
@@ -296,8 +301,11 @@ voice_assistant:
296301
- script.execute: draw_display
297302
on_end:
298303
- wait_until:
299-
not:
300-
media_player.is_announcing:
304+
and:
305+
- not:
306+
media_player.is_announcing:
307+
- not:
308+
voice_assistant.is_running:
301309
- if:
302310
condition:
303311
switch.is_off: mute

0 commit comments

Comments
 (0)