Voice Assistant turns on ESP32 LED as well as room lights

I have created my own version of the excellent voice assistant by Amrut Prabhu which works great. I have built mine into an old Amazon Echo device and implemented some GPIO pins for the echo buttons. I have an LED which turns red if the Mic mute button is pressed which toggles the wake work on or off.

The LED is specified below. Does anyone have any idea why this is turned on when I give the command to turn lights on?

  - platform: binary
    name: "Mic Light"
    id: mic_light
    output: light_output

output:
  - id: light_output
    platform: gpio
    pin: GPIO19

You’ve only posted a fraction of the relevant code that contains your VA as well as any automations or gpio assignments… what kind of clues do you expect anyone to gleen from you just showing one output you configured? This is the Esphome forum bud. Did you mean to ask this question in the psychic forum where they can read your mind and see the information that might explain your problem?

It’s being toggled because it’s defined as a light and exposed to HA.
If you only want it to toggle when pressing the mute button, then set it to internal: true in the yaml above &/or disable/delete the light entity in HA

Thanks ShadowFist at least someone has the decency to suggest an answer which I had worked out but thank you

1 Like