Skip to content

mariusmotea/esp8266-AC-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp8266-AC-control

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.

Web Gui Preview

Instructions:

  • 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.

REST API:

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}%

DEBUG:

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.

Credits:

Interface: https://github.com/ael-code/daikin-control
IR library: https://github.com/crankyoldgit/IRremoteESP8266

About

Control AC unit remotely from web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published