hello. want to set up control of my wled, via mqtt. what commands in the broker to write to control the brightness and switching of presets? on and off prescribed “on”, “off” - works. on brightness don’t know how…
Examples of apis you could use with MQTT :
Toggole on/off {“on”:“t”}
Random effect {“seg”:{“id”:0,“fx”:“r”}}
Change segment name for scrolling text {“seg”:[{“id”:X,“n”:“AAAA”}]} .
So basically you can use the json api calls JSON API - WLED MoonModules Project with mqtt MQTT - WLED MoonModules Project
I have these settings
the color seems to turn on, but the brightness of the color drops to zero and the LED strip stops shining
Cant read that , here are examples to control brightness
To set it to 100 {“seg”:{“id”:0,“bri”:100}}
Or to increment that by 20 {“seg”:{“id”:0,“bri”:“w~20”}}
Just finished an MQTT integration and had similar problems (commands turned LEDs off), until I looked a bit more closely and realized that I had to post my JSON commands to the “/api” sub-topic (i.e. wled/myled/api) vs to the base topic (i.e. weld/myled).
Not sure why I missed that at first, but once I did, everything worked great!
Gerry