External integration - APsystems EZ1 (balcony solar)

Hi everyone!

Balcony solar is becoming more popular, and the APsystems EZ1 is one of the most sold microinverters. Here it is in Gladys, locally, via the API that the inverter itself opens: no cloud or account.

What it does

  • One device per inverter:
    • the power produced, total and per panel;
    • the day’s energy;
    • the total energy;
    • the power limit, adjustable via a slider;
    • the on/off switch;
    • the alarms (off-grid, output fault, panel short-circuit).
  • Gladys energy tracking: the total energy is a production index, and Gladys derives its half-hourly production for its Energy screens from it.
  • Three scene triggers: production started (in the morning), production stopped (in the evening, with the day’s energy), inverter alarm.
  • Two scene actions: set the power limit, read the production of an inverter or all of them.
  • A widget “Solar production”: the current power, the day, the total, each panel, and the limit. Choose an inverter, or leave it blank for the total of all.

The cool thing

  • In the evening: “3.2 kWh produced today :sun:” on the phone.
  • Strong sun at noon → the water heater or the pool outlet turns on.
  • The night is not an error. The EZ1 turns off without sunlight: the integration puts it in “standby”, keeps the counters, and the status remains green.

Installation

Gladys 5.1 minimum. It will be available in the store at the next indexer update. In a hurry? Integrations → Install from GitHub, with the address GitHub - LM1LC3N7/gladys-apsystems: Gladys Assistant external integration for APsystems EZ1 micro-inverters (balcony solar): live production, daily energy, power limit and on/off through the local API. Unofficial, not affiliated with APsystems. · GitHub

  1. In the AP EasyPower app, enable the local mode of the inverter and choose Continuous. Give it a fixed address in your box.
  2. Enter its address in the configuration, then click on Test inverters, during the day.
  3. Add the inverter in Discovery and place the widget on a dashboard.

Honest small reservations

  • Testers wanted! I don’t have an EZ1. The integration follows the official manual of the local API and feedback from users of other home automation systems. It also handles firmwares that don’t have the on/off feature, or whose responses differ.
  • The power limit is never written by the integration itself. APsystems does not say whether the inverter keeps it in memory after a reboot.
  • The curves of the Energy screen need to be confirmed on a real installation.

Same vocabulary as the Hoymiles integration, published at the same time: same triggers, same widget. Like the previous ones, developed with Claude Code. Independent project, not affiliated with APsystems.

Repository: GitHub - LM1LC3N7/gladys-apsystems: Gladys Assistant external integration for APsystems EZ1 micro-inverters (balcony solar): live production, daily energy, power limit and on/off through the local API. Unofficial, not affiliated with APsystems. · GitHub

Hello @lmilcent
At my place, my two solar panels are controlled by an AP System ECU-B inverter, which is not directly accessible but connected to a small DS3-L box whose data I can see in the EMA app on my smartphone.
Could your integration be completed to query the DS3-L box?

According to my research, it would be queryable on port 8899 and there is a HA plugin that does it: GitHub - HAEdwin/homeassistant-apsystems_ecu_reader: APsystems ECU Local Query Integration for Home Assistant · GitHub

Thanks @StephaneB for the tip, it’s done: the v0.1.2 of the integration now reads the APsystems ECU gateways (ECU-B, ECU-R, ECU-C) locally, on port 8899, following the model of the Home Assistant integration by HAEdwin that you mentioned.

What it looks like for you

  • A device for your ECU-B: current power, daily energy, total energy (in the Energy screens of Gladys) and number of online inverters.
  • A device for your DS3-L: online, power of each panel, voltage, frequency, and temperature, if the ECU provides them.
  • At night, everything goes into « standby » without errors.
  • The widget and the « production started / stopped » triggers also count the ECU.

Setup

  1. Update the integration from Gladys (or « Install from GitHub » if the store hasn’t updated yet).
  2. Assign a static IP to the ECU-B in your router (it’s on Wi-Fi).
  3. In the configuration, fill in the new « ECU Gateway Addresses » field with its address, then click on Test Inverters.
  4. Add the ECU and the DS3-L in Discovery.

Good to know

  • The ECU is fragile if queried too often: the integration reads it at most every 5 minutes, one connection at a time.
  • It’s read-only: no start/stop or power limit via the ECU.
  • If the total energy makes an abnormal jump (reset, abnormal value), it is retained instead of being counted, and the « Accept Total Energy » button allows you to validate it.

I don’t have an ECU on hand: you would be the first to try it on a real one. If something is wrong (missing inverter, weird values), open an issue on GitHub or reply here, with the status displayed in the configuration: GitHub - LM1LC3N7/gladys-apsystems: Gladys Assistant external integration for APsystems EZ1 micro-inverters (balcony solar): live production, daily energy, power limit and on/off through the local API. Unofficial, not affiliated with APsystems. · GitHub