API documentation here.
The packets consist of a byte sequence that specifies the command, the color specifics (if changing the color), and a check digit which is an 8bit value (0-255) that you get from adding up everything along the way… the sendTCP function in I_MagicHomeRGBW.xml lays it out pretty plainly (or maybe that’s just to me, I guess…)
It may be useful to simply use an existing node red package? Use this and figure out a way to have vera poke whatever flow you need.