Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop timer via voice after it finished #50

Open
pohly opened this issue Jan 4, 2025 · 1 comment
Open

stop timer via voice after it finished #50

pohly opened this issue Jan 4, 2025 · 1 comment

Comments

@pohly
Copy link

pohly commented Jan 4, 2025

I am just starting with Home Assistant voice assistant using the ESP32-S3-BOX. My initial use case is for setting timers in the kitchen. I got voice commands for that working, but then found that when a timer fires, I have to use the button on the device to acknowledge the timer. Voice commands don't work while a timer alarm is playing.

This matches the configuration:

on_timer_finished:
- script.execute: stop_voice_assistant
- lambda: id(voice_assistant_phase) = ${voice_assist_timer_finished_phase_id};
- switch.turn_on: timer_ringing
- script.execute: draw_display
- wait_until:
not:
microphone.is_capturing:
- while:
condition:
switch.is_on: timer_ringing
then:
- lambda: id(box_speaker).play(id(timer_finished_wave_file), sizeof(id(timer_finished_wave_file)));
- delay: 1s
- wait_until:
not:
speaker.is_playing:
- switch.turn_off: timer_ringing
- script.execute: start_voice_assistant
- script.execute: draw_display

This is from d125927 => cc @jlpouffier

Can this be changed so that the voice assistant remains active while playing the alarm? I intend to place the device in the kitchen where it is out of the way and thus hard to reach. Besides, the main purpose of voice assistant is to have the hands free for other tasks... 😅

@pohly
Copy link
Author

pohly commented Jan 4, 2025

I can imagine that it had to be done this way because the microphones aren't working well enough while playing sound. Is that the reason for the current behavior?

Is this perhaps better with the "Home Assistant Voice Preview Edition"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant