Tasmota/lib/IRremoteESP8266-2.7.6/examples/Web-AC-control
Stephan Hadinger 1404b6f536 Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00
..
upload Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00
README.md Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00
Web-AC-control.ino Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00
platformio.ini Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00
printscreen.png Change IRremoteESP8266 library updated to v2.7.6 2020-04-26 09:59:49 +02:00

README.md

esp8266-AC-control

This is just a web interface for the IRremoteESP8266 library.

Web Gui Preview

Instructions:

  • Connect IR led to one GPIO pin (recommended pin is GPIO4)

  • 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 your 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 properly made and the selected GPIO pin is the correct one.

Credits:

Interface: https://github.com/ael-code/daikin-control