Skip to content

Commit 5a05703

Browse files
author
Kevin Ahrendt
committed
adjust display logic so the appropriate screen is displayed on HA initiated announcements
1 parent eacdf53 commit 5a05703

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

esp32-s3-box-3/esp32-s3-box-3.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:
@@ -230,8 +235,11 @@ voice_assistant:
230235
- script.execute: draw_display
231236
on_end:
232237
- wait_until:
233-
not:
234-
media_player.is_announcing:
238+
and:
239+
- not:
240+
media_player.is_announcing:
241+
- not:
242+
voice_assistant.is_running:
235243
- if:
236244
condition:
237245
switch.is_off: mute

0 commit comments

Comments
 (0)