I wrote this ESP32 code to control EdgeStar AP14001HS portable air conditioners using the relay outputs from a Nest thermostat.
See https://pmarks.net/ac for an overview of the project.