EN | UA
This is the firmware for the simple mains sensor, built using ESP32-C3 Super Mini board. It integrates with https://svitlobot.in.ua/ - a free volunteer project for electricity state monitoring. The device sends a ping to Svitlobot Service every minute. When mains goes off, the device stops sending ping, thus Svitlobot detects power outages after some time.
- Buy a ESP32-C3 Super Mini board.
- Flash it with released firmware (see Releases page, coming soon) either with Svitlo Pulse Web Installer (coming soon), ESPHome Web Installer or other preferred method.
- Alternatively, you can build and flash it yourself, see below.
- Configure it before flashing in Svitlo Pulse Web Installer (coming soon) or at runtime using Android app.
- Connect it to 5V USB adapter, typically used for smartphone charging, and that's it!
- Install VSCode IDE
- Install Platformio VSCode plugin
- Clone this repo
- Open the repo folder in VSCode
- (Optional) Adjust build-time firmware configuration, see below.
- Use Platformio project tasks to build the firmware
For different reasons you may want to customize the defaults firmware runs with. For example, it might be hardcoding the WiFI credentials and / or Svitlobot key.
Please see the instructions and config parameters in ./env.example file.
Alternatively, you can customize the same values in ./src/defconfig.hpp.