/esp32-WOL

ESP32 send Wake On Lan packet to power on your Computer. You can do that with its website or a voice assistant (Google or Alexa)

Primary LanguageCMIT LicenseMIT

ESP32 Wake On Lan

Introduction

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).

Requirements

Hardware

  • 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

Software

Get Started

Get esp32-WOL

git clone --recursive https://github.com/filipporaciti/esp32-WOL.git
cd esp32-WOL

Setup

  • Target MAC address (Wake on Lan)

You can configure it from the integrated website (port 80) or from menuconfig; from terminal run idf.py menuconfigWoL ConfigurationDestination MAC address

  • WiFi SSID and password

You'll configure it when you have to connect your ESP32 with ESP RainMaker app

Build

idf.py build

Flash and Monitor

idf.py flash monitor

Connect ESP32 to ESP RainMaker app

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.

Connect ESP RainMaker to Google Home and Alexa

  • Google Home

Open Google Home app → Settings → Works with Google → Search ESP RainMaker and log in with your account.

  • Alexa

Open Alexa app → More → Things to Try → Search ESP RainMaker, enable it and log in with your account.