Hello,
I have built a showcase lighting system with a Wemos D1, esphome and an RGB LED strip.
Switching the light on and off works very well and I can also set the colour in HomeAssistant.
However, I would like the RGB LEDs to be coloured. I.e. when I switch on the light (whether by button or by HA) it should be coloured directly.
By this I mean that the 1st LED should be red, the 2nd LED blue, the 3rd LED green, the 4th LED red again, the 5th LED blue and so on.
But I can’t get it right …
Is there no way to achieve this with “home made” solutions and a little less effort?
The coloured LEDs should also work without HA, only with the existing buttons.
What happens when you switch on the LED strip? If I recall correctly you should get a color-wheel where you can set the color of the strip. But only after the LED’s are turned on.
After re-reading your post I realized that you are able to turn on the light and control the color. If you want to control the color “directly” you should be able to do service call turning on the lights, set brightness and colors.
You can configure WLED to run any preset you create when you turn the LED’s on.
If you want the LED’s to do something special, create the preset, then apply it as the boot preset.
I agree that wled is the best way to do this, but it is doable with esphome too.
However it really depends what leds you have. It doesn’t look like yours are individually addressable. It would help if you told us exactly what you are driving with the ESP.
I took another close look at the LED strips.
There are 4 x pins, 1 x 5V, 1 x R, 1 x G, 1 x B.
So it seems to be true that the LEDs are not individually addressable.
Switching to WLED is out of the question because sooner or later other extensions will be operated on the Wemos D1.
Yes I know, but wled won’t make the leds individually addressable, and there really is no advantage that I can see over having wled over esphome for @Mausbiber’s leds.
I have the same model of LEDs on 2 esp32. One is running esphome with different sensors and the other is on wled. WLED one gives me better control of the led along with standalone automation (without writing any further configuration). WLED has it own app + webserver, while esphome have a webserver only .