How hard would it be to convert this Vera plugin to HA?

I wrote this years ago. I was on a hubitat for the past few years, and never got around to learning how to write plugins for it. But, I am in the process of writing a serial to mqtt gateway in python for the litetouch with the intention of using the hubitat MQTT plugin to control it and poll for status updates. I’m thinking of scrapping the mqtt code and just writing a plugin for home assistant, and then totally switching to it from Hubitat.

Note that the connection to the litetouch is only via serial port. And, the controller I have is the old one with a completely different serial protocol than the 5000LC (which an HA integration does actually exist for). So should I just use a USB->serial dongle, or should I use a serial->IP gateway?

Is there a good starting place for repurposing existing lighting control system code?

The only reason I was on Hubitat in the first place is because there was a plugin for the Elk M1 Gold, but now there’s a plugin for that on HA that seems relatively mature.