github Zendure/Zendure-HA untagged-680c0f415afcb5c32662
Pre-release 2.0.0-pre1 🌞

pre-release4 hours ago

Version 2 is a rebuild of the Zendure integration. Every device is its own sub-entry of the integration, devices are found automatically, the integration can run its own MQTT broker for the devices with all necessary certificates, and a new regulator shares the power over your batteries. This is a pre-release for testing: do not install it on a Home Assistant installation you depend on.

Caution

Upgrading from 1.x converts your configuration, devices and entities in one step and changes your entity ids. Version 1.x cannot load the converted configuration. Make a full Home Assistant backup before you install. Restoring that backup is the only way back.

⚠️ Risks and what to do before installing

Before you start

  • Make a full Home Assistant backup (configuration and database).
  • Write down which entities your automations, scripts, templates and dashboards use.
  • Home Assistant 2026.4.3 or newer is required (1.x needed 2025.4.0). The automated tests run against Home Assistant 2026.11.0 only.

What the upgrade from 1.x changes

The conversion runs once, at the first start of 2.0.0-pre1.

  • Device names. Every device is renamed to its product family plus the shortest free end of its serial number, for example SF800Pro_88. Battery packs follow the same rule, for example AB2000S_12. The "Zendure Manager" device becomes "Distribution".
  • Entity ids and unique ids. Every entity gets a unique id based on the serial number and an entity id based on the new device name, for example sensor.sf800_pro_88_home_output and select.zendure_mode.
  • History. Home Assistant moves the recorded history and long-term statistics of a renamed entity to its new entity id, unless the new entity id already has history of its own.
  • Deleted entities. Entities without a successor in version 2 are removed, and their history is not carried over: fuse group, AC mode, SoC status, battery in/out, available kWh per device, connection and connection status, BLE adapter, remaining time, next calibration, switch count, MQTT reset, hub mode, AC switch, DC switch, battery delta voltage, and the manager's power and operation state.
  • Your configuration files are edited. The old entity ids are replaced by the new ones in automations, dashboards and the Energy dashboard settings, in every .yaml and .json file in your configuration folder (hidden folders excluded), and in the settings of other integrations, for example template helpers, which are then reloaded. A notification asks you to restart Home Assistant. Check everything outside these places by hand.
  • Settings. The app token and your local MQTT broker settings are kept. The Wi-Fi name and password that 1.x stored are removed. The P1 meter becomes the device your 1.x P1 sensor belongs to. A P1 sensor without a device (for example a template sensor) leaves the P1 meter empty, and the regulation will not start until you choose one. The grid connection is set to 17 kW: enter your own value.
  • Values that continue. The kWh totals, minimum and maximum SoC (state of charge), the mode and the manual power continue from their last 1.x value.
  • Devices that are left out. A device without a serial number or with a product that version 2 does not know (see below) is skipped with a warning in the log and is not set up.

How much this has been tested

  • Automated tests: 206 tests pass on the commit of this pre-release: 138 in the shared test set (on a stand-in for Home Assistant) and 68 on Home Assistant 2026.11.0, including a replay of recorded days through the regulator. The hassfest, HACS and validation checks pass as well.
  • The shared device core has. The code that talks to the devices and builds their entities is shared with the ZenMaster integration. That shared code has been running in ZenMaster on one installation with 10 devices since 2026-9-30.

The built-in MQTT broker

  • If no broker is entered in the Expert settings, the integration starts its own MQTT broker on port 8883 of Home Assistant's address. If another broker already holds that port (for example the EMQX add-on), the built-in broker does not start and a notification tells you so.
  • The broker presents the public test certificate of EMQX, the only one the device firmware accepts. Its key is public, so anyone on your network can pose as a broker with it. Keep the devices on their own network where possible.
  • A device with zenSDK 3 (the device's local interface, version 3) that answers on its local interface but is not heard on any broker is pointed to the built-in broker, once per start. The device restarts when this happens.

Known limitations of this pre-release

  • Store solar only charges while the solar groups you added report power above 0. A converted 1.x setup has no solar group, so add one (see below) or this mode does nothing.
  • Allow export (switch) and the limiter entity of a solar group are stored, but the regulation does not use them yet.
  • Fuse groups are gone (see "Changed or removed").
  • Not supported: SuperBase V4600, SuperBase V6400 and PowerHub. 1.x also accepted the product names solarflow2.0, solarflowaiozy, solarflowhub2000, hyper2000_3.0 and solarflow4000ac+; version 2 does not know them, so a 1.x device registered under one of these models is not converted.

✨ New features

  • A sub-entry per device. The integration has one entry with its settings, and every device is a sub-entry of it with its own card. Add a device by hand with "Add Zendure device" when it is never found. "Reconfigure device" edits its IP address, Bluetooth address and "Allow control". A device name never changes; a rename only changes what is shown.
  • Automatic discovery. Devices are found through the Zendure cloud device list (with the app token), mDNS (the device is asked over its local interface who it is), Bluetooth (a Zen* device is asked over the Bluetooth handshake, once per address per run) and the broker. A found device becomes a sub-entry by itself.
  • Local interface (zenSDK). A device with a known IP address is driven over its local HTTP interface, polled every 2 seconds, and stays there once it answers. When it stops answering it goes offline and is recovered over HTTP, Bluetooth or the broker.
  • Built-in MQTT broker. The devices can report to Home Assistant directly, without the Zendure cloud and without a separate broker add-on (risks above). You can still enter your own broker in the Expert settings, and use the Zendure cloud with the app token.
  • New devices only report until you allow control. A device that connects to the built-in broker from an unknown address is added with "Allow control" off: you see its entities, but the regulation does not steer it until you turn "Allow control" on. A device id the fleet already knows stays bound to its own address.
  • Pairing over Bluetooth. Open "Reconfigure device" of a device with a known Bluetooth address and fill in the section "Pair with the broker over Bluetooth" (Wi-Fi network and password). Home Assistant's Bluetooth sends the device your Wi-Fi network and the broker address. The Wi-Fi details are not stored. A failed attempt shows "Pairing failed".
  • Supported devices: SolarFlow 800, 800 Pro, 800 Pro 2, 800 Plus, 1600 AC+, 2400 AC, 2400 AC+, 2400 Pro, 3000 Mix AC+, 4000 Mix AC+ and 4000 Mix Pro, Hyper 2000, Hub 1200, Hub 2000, AIO 2400 and Ace 1500. Battery packs AB1000, AB1000S, AB2000 (S/X), AB3000, AB3000L and the internal packs appear as their own devices.
  • Zendure meters as devices: Smart Meter 3CT, 3CT-S, P1 and CT, and the smart plug, with power per phase, current, voltage and import/export totals. A 3CT that reports only its phases gets a total as their sum.
  • New regulator. Modes: Off, Manual, Smart, Smart discharge only, Smart charge only, Store solar and the new Individual, in which every battery follows its own "Individual setpoint". The regulator sizes the number of running devices to the demand, waits before it reverses between charging and discharging, and ranks the devices every 10 minutes on room in the pack, how well the demand fits the device and its use over the last 7 days. A "Setpoint correction" number shifts the target, and "Maximum charge power" limits charging per device.
  • Grid connection guard. Enter your grid connection in kW (all phases together). When the P1 meter reports phases, a phase over its share is brought back 1 A under it by the devices on that phase.
  • Maximum delivery to the house. A cap on what all batteries together deliver, for example 800 W in Germany, where the per-device app limit is not enough with several devices.
  • Phase per device. A "Phase" select per device, a "Detect phases" button, and a daily detection from the recorder that only sets a phase it is sure of and notifies you of a change.
  • P1 meter as a device. You choose the device of your grid meter, and all its power entities are read: the total and the phases (named 1/2/3 or a/b/c, also on Shelly sub-devices). Signs are handled for SolarEdge, Enphase, SMA and Huawei. A notification names a meter that gives no usable total.
  • Solar groups. Add a solar group with the power entity of an inverter. The sum of your groups is shown as house solar and is used by Store solar.
  • Fleet sensors: SoC, capacity and available kWh of the fleet, grid power per phase, and charge, discharge, grid import, grid export, house load and house solar power, each with a kWh total.
  • Round trip efficiency per device over the last 7 days, updated daily.
  • Notifications when a device goes offline or loses the grid on its AC side.
  • Export replay data. A button writes the last 24 hours of P1 and device data to the zendure_ha folder of your configuration, for analysing the regulation.
  • Upgrade from 1.x in one conversion, described under the risks.

🩹 Improvements and fixes

  • smartMode written once per change. A setpoint no longer carries smartMode; 1.x sent it with every power command. smartMode is only written when the off-grid socket is on (normal or eco), once per change of the wanted value, and not when the device already reports it.
  • Wi-Fi password and token stay out of the log. 1.x stored the Wi-Fi network and password in its settings and logged the Bluetooth message that carries them. Version 2 asks for them only when pairing, never stores them, and sends that message without a log line. Passwords and tokens are masked in the raw MQTT log and the Bluetooth log.
  • Hyper 2000 is steered by writing its limits (properties/write) instead of deviceAutomation. A raised HEMS flag is lowered once.
  • Devices are released on unload. When the integration is unloaded, reloaded or removed, every device gets 0 W and HEMS back, so none keeps running on the last setpoint.
  • Home Assistant 2026.8 registry calls. Device lookups, parent devices and moving a device into its sub-entry use the newer registry calls where Home Assistant has them, so the deprecated calls are avoided.
  • No dependency on Home Assistant's MQTT integration any more.
  • Tests and CI. Every push and pull request runs two test jobs (the shared set and the Home Assistant set), plus hassfest, HACS and validation.

Kept from 1.x in the new code:

  • Heating energy of the battery pack is not counted as charged energy (#1007).
  • A reported property that has no entity of its own becomes a diagnostic sensor, also on battery packs.
  • A device that answers with an empty report is not treated as alive; the normal timeout takes it offline.

🔄 Changed or removed compared with 1.x

  • Fuse groups are removed and will not return. The limits set in the Zendure app count. The integration does not compute a combined maximum over several devices on one circuit. What remains is the grid connection guard and the maximum delivery to the house.
  • Removed settings: simulation, the automatic MQTT user, and the Wi-Fi network and password.
  • The modes keep their names, but the regulator is new and behaves differently. Store solar needs a solar group.
  • Entities appear when the device first reports them, so a device only gets the entities its model and wiring produce.
  • Raw MQTT log: with "mqtt_log" in the Expert settings, every raw message is written to zendure_ha_mqtt.jsonl in your configuration folder (20 MB per file, 3 old files kept).

📥 Installing and reporting

Install through HACS (Home Assistant Community Store): HACS only offers a pre-release when showing beta versions is enabled for this repository. Then download version 2.0.0-pre1 and restart Home Assistant. To install by hand, download zendure_ha.zip from the assets of this release and unpack it into custom_components/zendure_ha.

Reporting a problem: open an issue with the bug template and include:

  • your Home Assistant version and 2.0.0-pre1 as the integration version,
  • the device type (name it in the text if it is not in the list),
  • whether you upgraded from 1.x or started fresh,
  • how the device is connected: Zendure cloud, built-in broker, your own broker, local interface or Bluetooth,
  • a log with debug logging switched on (check it for your own data before posting):
logger:
  logs:
    custom_components.zendure_ha: debug

Full Changelog: 1.4.6...2.0.0-pre1

Don't miss a new Zendure-HA release

NewReleases is sending notifications on new releases.