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

Stop led on disconnect, reset LED on connect #89

Closed jlpouffier closed 8 months ago

jlpouffier commented 8 months ago

Today if the ESPHome Voice Assistant gets disconnected to Home Assistant, or if it's never integrated into Home Assistant, the light stays Purple as if the device was ready to listen to wake words.

This PR fixes that. The LED only turns on (using script.execute: reset_led when the client is connected, and turns off when it's disconnected)

This means that the purple light is now aligned with the fact that the device is ready to listen to a wake word.

For example, during a HA update, you will see your voice assistant LED turning off because the server is not ready.