I'm having trouble researching where exactly the line is between a topic and a payload, and how I need to work it to individually address a string of WS2812 LEDs. The goal is to visually display my solar generation and power consumption simply on a 16px ring, with each "pixel" representing 1/3 kW (ie. display up to 5.33kW)
From my understanding of the Commands list, for each LED (aka. pixel) I need to publish an MQTT msg as such ("sonoff_leds" being the device):
sonoff_leds/cmnd/Led1 00FF00
sonoff_leds/cmnd/Led2 00FFFF
etc? Am I reading that correctly? I can't find any examples of people addressing each LED indiviually with a Tasmota'd device.
So, my next confusion is whether the "Led1", Led2" etc are part of the topic, or part of the payload? Are they commands rather than topics? Can anyone familiar with NodeRed advise on how to construct such a msg, or preferrably use the node.send() method as I need to send out 16 of these messages using a for loop to populate the LED number and colour content?
I believe I've figured out at least the pseudocode for the population system, but am having issues figuring out exactly how to spit out those variables to the string (ring). I'll share it here when I get it operational, as I reckon it would be a cool simple realtime display of power generation/consumption.
Thanks for any advice
Lee