WiFi AC controller

This is a Wi-Fi enabled controller for air condtioners, which can turn the unit on or off according to MQTT messages. It is built around an Wemos D1 mini and interfaces with the AC using an IR LED.

The Wemos D1 mini drives the infrared LED so as to send signals identical to that of the original remote controller of the AC. Those signals must first be recorded, which can be done with an IR receiver connected to an arduino running this sketch.

Additionally, an HC-SR501 PIR motion sensor and a DHT22 temperature and humidity sensor are included for added functionality.

Here are the parts used in this project:

Source code available on GitHub. The dependencies are as follows: