Flashing
Connect RX -> TX | 3.3 -> 3.3 | TX -> RX | GND -> GND and connect TP16 to GND.
Press and hold the button while connecting to power.
This is an ESP 8285 in the iFan2.
Download and compile the Tasmota firmware:
git clone https://github.com/arendst/Tasmota.git
cd ./Tasmota/lib/
vi deployLibs.sh
#!/bin/sh rm -rf ~/Documents/Arduino/libraries/* cp -R ./default/* ~/Documents/Arduino/libraries/. cp -R ./lib_audio/* ~/Documents/Arduino/libraries/. cp -R ./lib_basic/* ~/Documents/Arduino/libraries/. cp -R ./lib_display/* ~/Documents/Arduino/libraries/. cp -R ./lib_div/* ~/Documents/Arduino/libraries/. cp -R ./lib_i2c/* ~/Documents/Arduino/libraries/. cp -R ./lib_rf/* ~/Documents/Arduino/libraries/. cp -R ./lib_ssl/* ~/Documents/Arduino/libraries/. cp -R ./lib_ssl/* ~/Documents/Arduino/libraries/.
chmod +x deployLibs.sh
./deployLibs.sh
Open Arduino IDE
Open tasmota project
Set board to ESP8285 and other settings, see below:
With the iFan in flash mode, click Upload.
Tasmota Commands
Cmd | Cmnd | Value | URL |
---|---|---|---|
Light Off | Power | 0 | http://xxx/cm?cmnd=Power 0 |
Light On | Power | 1 | http://xxx/cm?cmnd=Power 1 |
Fan Off | FanSpeed | 0 | http://xxx/cm?cmnd=FanSpeed 0 |
Low Speed | FanSpeed | 1 | http://xxx/cm?cmnd=FanSpeed 1 |
Med Speed | FanSpeed | 2 | http://xxx/cm?cmnd=FanSpeed 2 |
High Speed | FanSpeed | 3 | http://xxx/cm?cmnd=FanSpeed 3 |
References
Reference | URL |
---|---|
Flashing Tasmota | https://tasmota.github.io/docs/devices/Sonoff-iFan02/ |
Tasmota Commands | https://tasmota.github.io/docs/Commands/ |