Flashing
The firmware is a PlatformIO project. The Web GUI is already compiled
into src/webgui.cpp, so you do not need Node.js to flash the device.
Install the tools
Install Visual Studio Code and the
PlatformIO IDE extension, or install the
PlatformIO CLI with pip install platformio.
Clone the repository
git clone https://github.com/ph1p/ikea-led-obegraensad.git
cd ikea-led-obegraensadEdit include/secrets.h
Set your own values:
#pragma once
#define WIFI_HOSTNAME "ikea-led"
// only used on ESP8266, ESP32 boards use the Wi-Fi portal instead
#define WIFI_SSID "your-network"
#define WIFI_PASSWORD "your-password"
// credentials for the OTA update page at /update
#define OTA_USERNAME "admin"
#define OTA_PASSWORD "choose-a-password"WIFI_HOSTNAME is also the mDNS name, so the device is reachable at http://ikea-led.local/.
Check include/constants.h
Adjust the pins if your wiring differs, and set the default weather location, NTP server and time zone. These defaults can be changed later in the Web GUI. See Configuration.
The available environments are listed on the Hardware
page. esp32dev is the default.
Optional features
Features are switched on and off with defines in include/constants.h:
| Define | Effect |
|---|---|
ENABLE_SERVER | Web server, Web GUI, API, network plugins (clock, weather, DDP, Art-Net). |
ENABLE_STORAGE | Persist brightness, plugin, schedule and settings. Not available on ESP8266. |
ENABLE_MQTT | MQTT client with Home Assistant discovery. On by default, requires ENABLE_SERVER. |
Remove ENABLE_MQTT to save flash and RAM if you do not use MQTT.
Next step
Continue with Wi-Fi setup.