Tasmota/lib/IRremoteESP8266-2.7.1/examples/Web-AC-control
Hadinger 1a76040ebf Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01:00
..
upload Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01:00
README.md Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01:00
Web-AC-control.ino Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01:00
platformio.ini Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01:00
printscreen.png Update lib IRremoteESP8266 updated to v2.7.1, -2.7k flash and -1.5k RAM for Tasmota-IR 2019-11-25 21:43:39 +01: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