I wouldn’t recommend that. You’d be at the mercy of the manufacturer still providing their (cloud) API a year or five down the line.
If you don’t want to go the IR route, there’s quite a few threads here on how to replace the USB wifi dongles in your AC with a cheap ESP board and the ESPHome integration.
Daikin: Need Daikin Wifi? Use the Open-Source Faikin ESP32 Hardware instead of the official wifi Modules
Midea: Midea branded AC’s with ESPhome (no cloud)
Gree: Open source Gree wifi module replacement
Mitsubishi: Mitsubishi AC with Wemos D1 Mini Pro