Skip to main content

LuxPower smart home integration, free and open source

LuxPower integration for Gladys Assistant

Monitor and control your LuxPower hybrid solar inverters and batteries.

Monitor and control your LuxPower hybrid solar inverters (SNA, LXP-LB, LXP-12K, LXP-3600 ACS…) and their batteries from Gladys: solar production, battery level, grid import/export, house consumption, battery mode, scenes and a dashboard widget.

The integration works through the cloud (the LuxPower View account), locally (the WiFi/LAN datalogger plugged into the inverter), or both. It is usable in every country where LuxPower inverters are sold: pick the cloud server of your region.

What you get​

One device per inverter, with:

FeatureType
Solar production, today, production indexSensors (W, kWh)
Battery level, charge / discharge powerSensors (%, W)
Battery charged / discharged energy indexesSensors (kWh)
Battery voltage and temperatureSensors (V, °C)
Grid import / export power and indexesSensors (W, kWh)
Grid voltage, grid availableSensors (V, yes/no)
Inverter output, backup (EPS) outputSensors (W)
House consumption, inverter temperatureSensors (W, °C)
AC charge, forced charge, forced dischargeSwitches (controllable)

Configuration​

Cloud (LuxPower View)​

  1. Open the Configuration tab of the integration.
  2. Pick the cloud server shown in the LuxPower View app (Europe for most European installations, United States, Americas, Asia Pacific, Middle East & Africa, China) — or "Other" with the URL of your portal.
  3. Enter the account and password of the LuxPower View app. Tip: create a dedicated account in the app and share your station with it.
  4. Save: every inverter of the account appears in the Discovery tab.

Local (WiFi/LAN datalogger)​

The local connection talks to the inverter through its datalogger on TCP port 8000, without the cloud: faster, and still working when the internet is down.

  1. Give the datalogger a fixed IP address in your router.
  2. Enter its IP address, its serial number (10 characters, on the datalogger label) and the serial number of the inverter (10 characters, in the app or on the inverter label). Keep the port at 8000.
  3. Save.

With both connections configured, the Prefer the local connection toggle chooses the channel used first. The device card shows the channel actually used: an orange dot means the preferred one failed and the other one took over.

The refresh interval sets how often the inverters are read (one minute minimum). The low battery threshold drives the "Battery low" scene trigger.

Actions​

  • Test the connection — logs in / reaches the datalogger, reads every inverter and shows its battery level and solar power.
  • Change the battery mode — applies a battery mode to an inverter.

Battery modes​

  • Self-consumption — normal operation: the battery stores the solar surplus and feeds the house.
  • AC charge — the battery may also charge from the grid (within the AC charge schedule and limit configured in the inverter).
  • Forced charge — the battery charges as a priority.
  • Forced discharge — the battery discharges (to the house and the grid).

Scenes​

Triggers (scene editor, Integrations category, Gladys 5.1 or later):

  • Grid outage / Grid restored — the inverter lost / found the public grid.
  • Battery low — the battery level dropped below the threshold.
  • Battery full — the battery reached 100 %.

Each trigger can be limited to one inverter and exposes {{triggerEvent.data.battery_level}}, {{triggerEvent.data.grid_voltage}} and {{triggerEvent.data.serial}}.

Actions:

  • Set the battery mode — returns whether the mode was applied.
  • Set the battery limits — AC charge stop level, discharge cut-off, charge and discharge power (only the filled values are changed).
  • Read the inverter — fresh values (battery level, solar, house, grid import/export, battery power, grid available, mode) for the next actions.

Example: at 2 am, if the tariff is cheap, set the battery mode to "AC charge" and stop the AC charge at 80 %; at 6 am, back to "Self-consumption".

Dashboard​

Add the LuxPower overview widget: battery gauge, live solar, house and grid import, connection, grid status, battery mode, solar production of the day, a 24-hour chart, and two buttons (force charge / back to self-consumption). Choose the inverter in the widget settings when you have several.

Troubleshooting​

  • Login refused: check the server region and the credentials in the LuxPower View app.
  • Datalogger does not answer: check the IP address, that the datalogger is on the same network as Gladys, and both serial numbers. Some datalogger firmwares only accept one local client at a time: close other local tools.
  • Logs: Gladys UI → integration logs, with LOG_LEVEL=debug for details.

Privacy​

The password is stored in Gladys as a secret and only sent to the LuxPower server you chose. The local connection never leaves your network.

Configuration settings​

These are the settings LuxPower asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Cloud connection (LuxPower View)sectionNoUse the account and password of the LuxPower View app. Pick the server shown in the app: Europe for most European installations. Leave empty to use the local connection only.
Cloud serverselectNo
Custom server URLstringNoOnly with the "Other" server.
AccountstringNo
PasswordsecretNo
Local connection (WiFi/LAN datalogger)sectionNoOptional: talk to the inverter directly through its datalogger on your network (TCP port 8000), without the cloud. Give the datalogger a fixed IP address in your router. Both serial numbers are printed on the labels and shown in the LuxPower app.
Datalogger IP addressstringNo
Datalogger portnumberNo
Datalogger serial numberstringNo
Inverter serial numberstringNo
Refresh interval (s)numberNoHow often the inverters are read, in seconds (one minute minimum).
Low battery threshold (%)numberNoThe "Battery low" scene trigger fires when the battery level drops below this value.

How to install LuxPower in Gladys​

  1. In Gladys, open Integrations: LuxPower appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/gboulvin/gladys-luxpower:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/gboulvin/Gladys-LuxPower.

LuxPower requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

LuxPower is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by gboulvin, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂