In this project I used an ESP32 to send Wake on Lan packet to power on my Computer. There is a web server where you can send WoL packet and change target MAC address. And for the laziest people I add ESP RainMaker project to send WoL packet from an assistant (like Google Home or Alexa).
- Esp32
- Computer with Windows/Linux/MacOS (to build and setup) and/or Computer with Wake on Lan enabled
- Smartphone IOS/Android
- Cable to connect Esp32 to your Computer
- ESP-IDF
- Python3, CMake, Ninja... (required by ESP-IDF)
- Git
- ESP RainMaker app (available in App Store and Play Store)
git clone --recursive https://github.com/filipporaciti/esp32-WOL.git
cd esp32-WOL
You can configure it from the integrated website (port 80) or from menuconfig; from terminal run idf.py menuconfig
→ WoL Configuration
→ Destination MAC address
You'll configure it when you have to connect your ESP32 with ESP RainMaker app
idf.py build
idf.py flash monitor
If you can't see the QR code in your terminal, you can try to run idf.py erase-flash
before flash the firmware on ESP32.
To connect ESP RainMaker app with your ESP32 it's just enought to open ESP RainMaker app, push '+' button on top-right and scan the QR code; here you can configure SSID and password thar ESP32 takes to connect to the network.
Open Google Home app → Settings → Works with Google → Search ESP RainMaker and log in with your account.
Open Alexa app → More → Things to Try → Search ESP RainMaker, enable it and log in with your account.