Arduino program to ESPHome

Hi,
I have written Arduino code to control my diesel heater in my workshop. I would like to integrate it with my Home Assistant setup but I’m nowhere near a programmer and I was barely able to put up Arduino code and I’m completely lost with ESPHome.
My controller uses ESP32 and CC101 to communicate with the heater and I’m using custom library, all the files are on Github. Can someone please put me on tracks of how to use custom libraries and how all the code in ESPHome should look like?

Welcome. As a starting point you could maybe take a look at Custom Components, Remote Transmitter, and thermostat.

The good news is that I reckon if you fumbled through getting it working in Arduino you should be able to figure out how to do it in ESPHome.

I haven’t looked at your project in detail but if your needs are as simple as replicating remote button presses to control a thermostat device it may be possible to avoid a custom component and just use a combination of the other ESPHOME components below.

I don’t have any more specific pointers on your solution though.

https://esphome.io/custom/custom_component.html