Trying to change the color on WLED using MQTT

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jasonwinfieldnz
 
Posts: 1
Joined: Fri Dec 09, 2022 3:08 am

Trying to change the color on WLED using MQTT

Post by jasonwinfieldnz »

WLED is RGB firmware you can put on a ESP32 or 8266. It has a MQTT client and I can get the unit to turn on and off by using a switch in a dashboard and even fade with a slider. I would like to use the color picker to change the color but I can't figure out how to get it to work.

The WLED docs have the following.

Code: Select all

[mqttDeviceTopic]
-> Send brightness as ASCII number 0-255 or the strings "ON", "OFF", and "T" (for toggle)
[mqttDeviceTopic]/col
-> Send color as HEX (#WWRRGGBB or #RRGGBB) or 32bit DEC. Hex has '#','h' or 'H' as prefix.
How would I have the topic like username/feeds/key/col#00ff00 ?

User avatar
bidrohini
 
Posts: 202
Joined: Thu Oct 20, 2022 10:03 am

Re: Trying to change the color on WLED using MQTT

Post by bidrohini »

Pardon me because I did not work with WLED ever. Maybe you can find the following links helpful regarding the MQTT protocol as a whole and WLED interfacing with ESP32.
https://www.theengineeringprojects.com/ ... -mqtt.html
https://core-electronics.com.au/guides/wled-esp32/

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”