If someone could push some guidance on how to add new hardware integration

I’m not sure if I worded the subject well, but an example I have a Glas Thermostat and I want to control it with HA but there is no integration yet. I am an EE and I can do packet snooping and make a man in the middle esp32 control my thermostat, but I have no idea where to start working on actually integrating with HA so other can add theirs.

HA dev docs

Might be easier to start with HACs

Thanks, that is exactly what I was looking for.