A Go library and Conduit skill for direct Modbus communication with the EG4 18kPV inverter via the WiFi dongle's TCP port 8000.
Read and write inverter registers — battery charge/discharge schedules, modes, power limits — without depending on SolarAssistant, lxp-bridge, or the EG4 cloud.
CLI / Library
└── eg4-modbus Go library
└── TCP:8000 → WiFi Dongle → RS485/Modbus RTU → EG4 18kPV Inverter
The library handles the LuxPower wire protocol (TCP framing around Modbus RTU). The Conduit skill exposes high-level actions like set_charge_schedule, get_battery_status, set_mode.
Phase: Research & Design — protocol fully reverse-engineered from lxp-bridge source.
lux write/set-mode/set-schedule: a declined or non-interactive confirmation now exits nonzero (cancelled at confirmation prompt). Previously--jsonwith a closed stdin printedCancelled.and exited 0, so automation could not distinguish a skipped write from a successful one. Scripts that rely on exit 0 must pass--yesexplicitly.- The frozen-frame detector only observes input registers that feed a
published topic. Blocks with no topic mapping are exempt by definition.
(
--stale-threshold 0still disables the detector entirely.)
PROTOCOL.md— Full wire protocol specificationREGISTERS.md— Register map with read/write capabilitiesDESIGN.md— Implementation plan and phasing