esphome / firmware

Holds firmware configuration files for projects that the ESPHome team provides.
https://esphome.io/projects
Apache License 2.0
128 stars 93 forks source link

Fix Mute State during start-up on the boxes #214

Closed jlpouffier closed 6 days ago

jlpouffier commented 6 days ago

The micro_wake_word.start that was under on_value of the select wake_word_engine_location was triggered during start-up even if the box was supposed to be muted.

This led to a box in a weird state:

I made that on_value more robust. I added a condition on init_in_progress (because nothing should happen in that stage anyway) More importantly, I added a mute condition when the value changed to On Device to avoid starting micro_wake_word when the device is muted.