I would look at ESPHome, you might get lucky.
Otherwise have a look here how you can reverse engineer it: