Need some help/suggestions for IR Control of Window AC using ESPHome and HA

  1. Take a look at this, it may be what you need Tasmota MQTT IRHVAC Controler

  2. Alternatively this https://www.home-assistant.io/integrations/generic_thermostat/