[APP][Pro] GoodWe ESA – local control of your GoodWe ESA home battery

Hi all,

I’ve been working on an app for the GoodWe ESA all-in-one home battery, and it’s now ready for a first round of testing. The existing GoodWe app works well for the ET inverters, but it doesn’t cover the ESA properly and offers no way to control the battery. So I built a dedicated one.

The app talks to the ESA directly over your own network, through the WiFi or LAN dongle. No cloud account, no SEMS portal and no delays. Homey finds the ESA by itself when you add it, and one pairing gives you three devices: the inverter, the battery and the GoodWe smart meter. All three are set up for Homey Energy, so solar production, battery charging and discharging, and grid import and export show up in the Energy tab without any extra work.

The part I care most about is control. Once you switch it on in the app settings, you can choose what the battery does: self-use, conserve (keep it full as a back-up reserve) or let Homey decide. In Homey mode, Homey Energy sets the charge or discharge power through the standard target power card. There are also Flow cards to charge from the grid, discharge, pause the battery, or hold grid import or export at a fixed power. Together with dynamic prices, that covers most of what you’d want to do.

Because a forced battery mode is not something you want to forget about, every command has a maximum duration. The app sets the battery back to automatic when that time is up, when the app restarts, when the connection to the ESA was lost, and when you switch control off. Control is off by default.

There’s also a dashboard widget that shows the energy flow between solar, home, battery and grid. The app posts to your timeline when the grid fails or comes back, when there’s a fault, and when Homey loses contact with the ESA.

What you need is a Homey Pro on firmware 12.13 or later, and a GoodWe ESA with a WiFi dongle (UDP port 8899) or LAN dongle (Modbus TCP port 502) on the same network. A fixed IP address for the dongle helps. On some firmware, Modbus has to be switched on in the SolarGo app first, sometimes through the installer menu.

This is a test version and I’d really like to hear how it behaves on your ESA. I’m especially interested in owners with the newer “work mode 3.0” firmware: does the battery follow the commands from Homey, and does pause stop only the battery or all power flow? If you post a diagnostic report or a screenshot of what you see, please mention your model and firmware version. You can find both in the device settings.

Credit where it’s due: the register knowledge builds on the open-source goodwe library by Marcel Blijleven and the GoodWe Local integration for Home Assistant by haids3. This app is not made or endorsed by GoodWe.

GoodWe ESA 3.0

New dashboard widgets
Five new widgets join the existing energy flow widget. They follow the light or dark theme of your Homey.

Grid now. An animated gauge that swings right for import and left for export, scaled to your main fuse. Below it are power, current and voltage per phase. Moving dots show which way the power flows on each phase.

Phase load. The current per phase shown as a tank that fills up against your main fuse (3 × 25 A by default, adjustable per widget). It turns orange at 80 percent and red at 100 percent. The voltage per phase and the highest voltage of today sit underneath.

Today. Net import or export of the day in one number, with balance bars for grid import and export and for battery charge and discharge. It also shows solar today and the current state of charge.

Grid 24 hours. A smooth chart of the last 24 hours that draws itself, with import above the line, export below it and the state of charge as a second line. It also shows the peak import and the peak export.

Battery. A battery that fills up, with arrows while charging or discharging. A sliding switch lets you choose Auto, Pause, Charge or Discharge. The switch follows the actual mode of the ESA, whether that was set by the AI, a Flow or Homey Energy. The power and duration of a button command are set per widget. Battery control must be switched on in the app settings for everything except Auto.

Voltage monitoring
The meter now shows the highest voltage of today. There is a new Flow trigger “Voltage on a phase rises above [V]” and a condition “Voltage on a phase is above [V]”. A timeline notification appears when a phase stays at or above 253 V for two readings in a row. The limit can be changed in the app settings; 0 turns the notification off. Inverters switch off above 253 V, so this gives you time to act, for example by letting the battery charge.

External EV charger
A new Flow card keeps the battery out of your car when it charges on a charger the ESA does not know. While the car charges, the grid supplies the car and the battery keeps supplying the house. Solar surplus still goes to the car first. When charging stops, the ESA takes over again on its own, or the GoodWe AI does if you use it. The battery device now shows the reported charger power, and a condition “Charger control is active” was added.


Setting up the EV charger card

You need one Flow with two cards:

When: [your charger] Power changed (the trigger from your charger’s own app)
Then: [GoodWe ESA battery] EV charger is charging at [power] W, with the charger’s power token in the field

How it behaves:

  • Start and stop. Control starts at 1000 W and ends below 500 W. If your charger app has a “charging stopped” trigger, you can also pass 0 W with it.
  • Setpoint. The app holds grid import at the charger power, minus any solar surplus. It writes to the ESA only on a change of 200 W or more, and at most every 30 seconds.
  • Other commands go first. A Flow EMS command, Homey Energy or Conserve that is already active is not overridden. When it ends and the car is still charging, the app takes over.
  • Back to automatic. If you set the battery to automatic yourself, charger control pauses until the charger stops.
  • GoodWe AI. If the AI sets the ESA back to automatic, the app waits 15 minutes before it tries again, so the two do not fight.
  • Safety net. If no charger power arrives for 3 hours, the command runs out and the battery returns to automatic.
  • Requirement. Battery control must be switched on in the app settings.

To check that it works with the GoodWe AI, start a charging session and look at the battery device in Homey. The EMS mode should show “Hold grid import”. If you see “EMS reverted – Changed outside Homey”, the AI is overriding the app.