Just got my first node working in HA and it is awesome!!
One thing I’m trying to figure out now is how to turn off the onboard LED on my Wemos D1 Mini.
Now this is an older one and looks very different from the newer ones from Lolin.
I am trying to make a small notification light from the D1 mini and the RGB shield.
So having the blue onboard led on at all times isn’t desirable.
You’ll probably need to do this with whatever firmware or sketch you have put on the D1. You’ll only be able to control the LED with HA, if that firmware allows you to
There are ways to do this with firmware like ESPEasy and Tasmota but assuming you’re using the ESPHOME firmware, since that’s the section you posted in, It looks like you can set it to only be active when there’s a warning or error-
This is entirely controlled by esphome. The above is my yaml file for it.
This is why I was asking here…I don’t have a sketch loaded on it…esphome does that.
Okay, so I figured out what to do to turn that pesky onboard LED off, but it comes at a price.
So if you look at the pic in my first post I take that shield and it just goes straight over the D1 mini and works.
The only way I see to turn the onboard light off turns control of the same pin that controls the shield off too.
So I can’t mount the shield directly onto the D1 mini the way I had wanted to.
In the end I guess it isn’t the worst thing since I could really use a resistor and capacitor for the newer models to smooth animations of the leds.
So in my case the onboard LED is controlled by D4 so I had to change the PIN controlling the shield leds.
@nickrout: Thanks for your pointer to the core configuration. Following this link, I cannot find anything though regarding who to switch off the LED. Can you help?
My onbord LED is blinking very second despite not warning in the logs. Very annoying.
Thanks again.
My actual problem, as it turned out, was that D4 (gpio2) was also used for the DC pin of the epaper attached to the device. That seems to have caused the constant blinking. Moving DC to D0 fixed the blinking and with your advice, I can now switch the LED on and off at boot.