Andrey Klimov

LightHub — Developer Documentation

LightHub is a flexible open-source smart-home controller firmware for Arduino Mega 2560, Arduino Due, ESP8266, ESP32 / ESP32-C3, STM32, NRF52840 and M5Stack.

Links:

What is LightHub?

A microcontroller-based smart-home hub that exposes every physical channel as an MQTT-addressable “item” (virtual channel):

myhome/in/<device>/<item>[/subitem]/<suffix>   <- commands
myhome/s_out/<device>/<item>[/subitem]/<suffix> <- status

Doxygen API reference

The complete API reference for the firmware source is published under doxygen/.

Highlights:

Building

git clone https://github.com/anklimov/lighthub
cd lighthub
pio run -e <target>          # due | mega2560 | esp32-wifi | esp32c3-wifi |
                             # lighthub21 | nrf52840 | stm32 | ... (16 targets)

Precompiled binaries for all targets are attached to the GitHub releases.