This is just a web interface for the IRremoteESP8266 library made by @crankyoldgit witch will allow you to controll most of AC units from the market.
-
Connect IR led to one GPIO pin (recommended pin is D2)
-
Edit esp8266-AC-control.ino header marked as "User space". You will need to import the library dedicated for your AC model. Every library has its own commands for AC mode and fan speed that will need to be replace according to commands available in .h file of the library.
-
Flash the firmware in ESP board using 1M or 2M of SPIFFS storage.
-
Connect the board to yout wifi network (look for "AC Remote Control" SSID and follow WiFi Manager wizard)
-
Upload web application files in SPIFFS storage using build in web form located at /file-upload path.
Browser console will show the ajax calls to ESP8266 board. Running configuration can be displayed with GET request to /state path, any value can be changed with http PUT request to same path.
Ex:
➜ ~ curl 192.168.0.71/state
{"mode":2,"fan":0,"temp":27,"power":true}%
➜ ~ curl -X PUT -d '{"temp":22}' 192.168.0.71/state
{"temp":22}%
➜ ~ curl 192.168.0.71/state
{"mode":2,"fan":0,"temp":22,"power":true}%
Use mobile phone camera to see if the led is sending any IR signals when buttons are pressed. This will show if the circuit was properlly made and the selected GPIO pin is the correct one.
Interface: https://github.com/ael-code/daikin-control
IR library: https://github.com/crankyoldgit/IRremoteESP8266