I’ve recently embarked on a fascinating project to upgrade my window AC unit using ESPHome, and I’m thrilled to share my journey with the community. This experience has not only been educational but has also opened my eyes to the endless possibilities of integrating custom hardware with Home Assistant.
My setup involves a gutted AC unit, three relays for controlling the compressor, fan, and fan speed, along with an HTU21D sensor for monitoring temperature and humidity. I’ve also incorporated an i2c OLED display for a sleek, on-unit interface. The goal was to create a seamless integration with Home Assistant’s MQTT thermostat component, allowing me to control everything from my smartphone or voice assistant.
One of the most rewarding aspects of this project has been overcoming the initial hurdles. For instance, figuring out how to link the fan speed to a separate relay pin was a bit of a brain teaser, but with some research and trial and error, I managed to get it sorted. I also implemented a safety feature where the fan continues to run for two minutes after the compressor shuts off, which helps prevent damage from rapid cycling. It’s these small victories that make the project so satisfying!
I’d like to give a huge shoutout to the ESPHome cookbook for being an invaluable resource. However, I did hit a few walls along the way, particularly when it came to setting up lambda functions for the display icons. Thankfully, the community forums have been a treasure trove of knowledge, and I’ve learned so much from others’ experiences.
If anyone is considering a similar project, I’d highly recommend starting with a clear plan and taking it one step at a time. Don’t hesitate to reach out for advice or share your own tips—it’s through collaboration that we all grow!
Looking forward to connecting with more enthusiasts and learning from your innovative projects. Happy tinkering! ![]()