ba3856d900
Change IRRemoteESP8266 library from v2.7.6 to v2.7.8.10, fixing Samsung and Pioneer protocols (#8938) |
||
---|---|---|
.. | ||
upload | ||
README.md | ||
Web-AC-control.ino | ||
platformio.ini | ||
printscreen.png |
README.md
esp8266-AC-control
This is just a web interface for the IRremoteESP8266 library.
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