Climate using IR Transmitter

I want to control an Air Conditioning unit using a Climate entity.
I am able to send IR codes via an ESP32 module with ESPHome and IR transmitter. Also I am measuring the room temperature using bme280 sensor.
All the controls work fine in ESPHome Web Server, but I would like to integrate it in HA as a climate entity.