An efficient, modern LuxPower inverter integration for Home Assistant — with register discovery.
Report Bug · Request Feature
Table of Contents
Lumen — LuxPower Inverter for Home Assistant is a ground-up rewrite of the LuxPython integration: a layered, testable codebase with modern Home Assistant idioms and one feature neither the original nor lxp-bridge has — it watches for registers it doesn't understand and logs them so their meaning can be worked out.
- Layered & testable — framing, the register map, and discovery live in the standalone, Home-Assistant-free luxmodbus library; this repository is the thin Home Assistant glue (config flow, coordinator, entities).
- One declarative register map drives decoding and entity generation.
- Register discovery surfaces undecoded registers as a diagnostic sensor and an event, turning unknown numbers into something you can investigate.
Replaces the
luxpowerdomain withlumen, so both can run side by side during migration. Moving from the original LuxPython integration? See the migration notes.
Functional and loads in Home Assistant with live data. Implemented:
- Config flow (host / port / connection mode, dongle and inverter serials, with a reachability check)
- Transport abstraction with client and server modes (in
luxmodbus) - A
DataUpdateCoordinatorthat polls the input and hold registers, decodes them, and writes settings back - Entity platforms generated from the declarative register map:
sensor,number,switch,select(on-grid working mode) andtime(charge / discharge schedule slots) - Register discovery — an Undecoded registers diagnostic sensor and a new register seen event, persisted across restarts
- Two-device structure: the dongle (gateway) with the inverter nested under it
- Services:
lumen.read_registerandlumen.write_register
Next on the roadmap: publishing luxmodbus to PyPI (required for HACS install),
real captured-packet test fixtures, and filling out the register long tail.
Note: Lumen depends on the luxmodbus library, which must be published to PyPI before the integration can be installed through HACS.
Once available:
- Add this repository as a custom repository in HACS (category: Integration).
- Install Lumen — LuxPower Inverter and restart Home Assistant.
- Add the integration from Settings → Devices & Services and enter your dongle's host, port and connection mode.
This project uses uv and
nox. The luxmodbus library is consumed from a
sibling checkout (../luxmodbus) during development.
git clone https://github.com/totaldebug/lumen.git
git clone https://github.com/totaldebug/luxmodbus.git
cd lumen
uv sync
uv run nox -s testsDistributed under the MIT License. See LICENSE for more information.