Skip to main content

Parallel inverters: combined data

A plant can have several inverters working together — identical Nexus units wired in parallel, and nothing else (see Which inverters can share a plant). The backend treats every inverter a user has in one plant as one group: the devices sharing owner_user_id and plant_id. Clients can ask for a group's combined figures, or for one inverter's figures as before.

Building the mobile app screens? Parallel inverters: mobile app changes is the task-by-task handoff, with Dart models and a test checklist.

You choose with scope on the request:

scopeMeaningIdentifies the target with
"individual"One inverterdeviceKey
"combined"The whole group in the plantuserId + plantId (no deviceKey)
omittedEach message's behaviour from before scope existed (see below)as before

scope is case-insensitive and surrounding spaces are ignored. Every existing request works unchanged without scope. watch, unwatch, get_param_catalog and get_param_history stay individual. get_analytics still infers its scope: plantId without deviceKey is the plant, and deviceKey is one inverter.

Supported on: watch, unwatch, get_analytics, get_param_catalog, get_param_history.

Which inverters can share a plant​

Owner decision 2026-11-23. Every path that adds an inverter to a plant checks it — mobile register and update_device plant moves, and the web console's register_device_web, bind_device, import_devices, request_device_transfer with toPlantId and inventory_bulk:

  • A plant with no inverter takes any inverter.
  • A plant that has an inverter takes another only when the request confirms it is wired in parallel (parallel: true). Without it the request is refused with PARALLEL_CONFIRMATION_REQUIRED, and the app asks the user "parallel, or a separate plant?".
  • Only the Nexus (Aotai) family can be paralleled. A Yorker (or any other non-Nexus) plant holds exactly one inverter, and a Yorker never joins a plant that has one (PARALLEL_NOT_SUPPORTED). The Yorker's model code names the firmware family, not the rating (5 kW 48 V, 6 kW and 6.5 kW all report 6KU), so "the same unit" cannot be verified from the hardware.
  • Parallel units must be identical: the same Nexus model code (register 32 model_code, which fixes family, kW, phase and PV input — e.g. 18005 = AEP-6KS48) and the same rated kW where both are known. A 6 kW Nexus and an 8 kW Nexus are refused (PARALLEL_SPEC_MISMATCH).
  • If either side's model or model code is not known yet — a logger that has never connected, a device never polled — a parallel add is refused (PARALLEL_SPEC_UNKNOWN).

The plant's inverters are its live devices, whoever owns them. A device already in the plant (a retry) is always admitted. Plants that broke these rules before they existed are left as they are; only additions are checked. The request and reply shapes are in Device registration and Updating a device.

Who is in a group​

The database alone decides membership: every device of that user in that plant that is neither revoked nor deactivated.

  • Connection problems never change the group. A disconnected, reconnecting, silent or misbehaving inverter stays a member; only its state changes (see below).
  • Membership changes come from the database. A device joins or leaves when it is registered into the plant, moved in or out (update_device), revoked, restored or deleted. A live combined watch picks the change up within seconds, and within a minute at worst.
  • A device with no plant is in no group. It is only ever served individually.
  • A deactivated inverter (its logger was moved to another inverter) is not in the group, but its own history is still served when asked for individually.
  • A plant holds at most GROUP_MAX_INVERTERS inverters (default 50). register and an update_device plant move into a full plant are refused with PLANT_FULL. A combined request for a plant over the limit is refused rather than truncated: dropping inverters would silently change the group.

Live combined telemetry​

// client → server
{ "type": "watch", "scope": "combined", "userId": "<uuid>", "plantId": "<plantId>", "timezone": "Asia/Karachi" }
{ "type": "unwatch", "scope": "combined", "plantId": "<plantId>" }

timezone is optional. It decides which readings count as "today" for the daily counters. When omitted, the plant's recorded timezone is used, and failing that, UTC.

One connection can watch at most 8 plants combined at once. Watching the same plant again replaces the earlier watch.

watch_ack (combined)​

{ "type": "watch_ack", "scope": "combined", "plantId": "P1", "ok": true,
"members": [ { "deviceKey": "…", "model": "Yorker", "inverterSn": "…" } ],
"maxInverters": 50, "timezone": "Asia/Karachi" }

The server sends a new watch_ack whenever the group's membership changes while you are watching. Replace your member list with it.

code (when ok is false)Meaning
INVALID_REQUESTuserId missing or not a UUID, plantId missing or invalid, or this connection already watches 8 plants combined (unwatch one first)
GROUP_NOT_FOUNDYou have no inverters in this plant. The same answer is given whether the plant exists or not.
GROUP_TOO_LARGEThe plant has more inverters than the limit
GROUP_UNAVAILABLENo database is configured on the server, or reading the group failed. Retry later.

group_telemetry​

{ "type": "group_telemetry", "plantId": "P1", "asOf": "2026-10-28T10:15:03Z",
"combined": { "pv_power_w": 9120, "load_power_w": 4310, "grid_power_w": 0, "inverter_power_w": 0,
"battery_soc_pct": 71.5, "battery_soc_min_pct": 64, "battery_soc_max_pct": 80,
"pv_energy_today_kwh": 31.2, "pv_energy_total_kwh": 18234.5, "rated_power": 18 },
"coverage": { "pv_power_w": { "reporting": 3, "of": 3 }, "grid_power_w": { "reporting": 1, "of": 3 } },
"members": [ { "deviceKey": "…", "model": "…", "state": "fresh", "receivedAt": "…", "parallel": true, "valid": true } ],
"counts": { "fresh": 2, "stale": 0, "offline": 1 },
"faults": [ { "deviceKey": "…", "code": "…" } ], "warnings": [], "displayCodes": [],
"valid": true }
  • The server sends at most one frame per second per combined watch, coalescing bursts. It also re-sends at least every 30 s (a third of GROUP_STALE_AFTER) while nothing arrives, so a member turning stale or offline shows up without a new reading.
  • A field missing from combined means no member reported it. It is never 0. Use coverage to show a partial figure, for example "grid: 1 of 3 inverters".
  • state is one of:
    • fresh: a reading within 90 s (GROUP_STALE_AFTER);
    • stale: older than that;
    • offline: presence said offline, there has been no reading for 15 min (GROUP_OFFLINE_AFTER), or it has never reported.
  • faults, warnings and displayCodes are the union over fresh and stale members, each tagged with the inverter it came from. Show which inverter has the problem.
  • valid is true only when at least one member is fresh and every fresh member's last reading was complete.
  • A combined watch does not also send per-inverter telemetry frames. To show both, send both watches.

group_watch_ended​

{ "type": "group_watch_ended", "plantId": "P1", "code": "GROUP_NOT_FOUND", "error": "…" }

The server ended the watch: the group emptied, or grew past the limit. No more group_telemetry follows.

How values combine​

Fields are never all summed or averaged. Each one has its own rule:

FieldRuleMembers used
pv_power_w, load_power_w, battery_power_w, grid_power_w, inverter_power_wsumfresh only (an old power reading is no longer true)
battery_soc_pctmean, weighted by battery capacity where every contributor reports it (same model); plus battery_soc_min_pct / battery_soc_max_pctfresh only
*_energy_today_kwhsum of each member's latest value from the plant's current local dayfresh and stale; a reading from yesterday does not count
*_energy_total_kwhsum of each member's latest valueall members
rated_powersum (installed capacity)all members, offline included. A member that reports no rating adds nothing: Yorker 5, 6 and 6.5 kW units (model code 6KU) report none until a rating is set on the device
voltages, currents, frequencies, temperatures, status words, every raw registernot combined: per inverter only—

Paralleled IP20 units​

A new Yorker can no longer be added to a plant that has an inverter (see above), so this rule only matters for plants that already held a paralleled Yorker set before 2026-11-23. It is kept for them.

On the Yorker, the register bank 1152–1210 is the parallel-system summary. A standalone unit refuses it entirely. When a unit's parallel_status (register 69) says it runs paralleled, the following fields describe the whole paralleled set, not the unit:

  • load and grid power;
  • every daily and lifetime energy counter.

Those fields are therefore taken once per set, as the set's maximum, never summed. This is right whether every unit reports the system total or only the master does. IP20 PV power and SOC are read from per-unit registers and are summed or averaged as usual. Units with parallel_status 0 in the same plant are independent and are summed.

That every unit of a paralleled set reports the same system totals is the documented reading. It has not yet been measured on a paralleled pair (bench verification is pending). members[].parallel shows which units the rule applied to.

Master and slaves (Nexus)​

A Nexus reports which unit of its set is the master and which are slaves: every reading carries parallel_role (with parallel_address_setting and total_number_in_parallel_setting), and get_devices returns parallelRole, parallelAddress and parallelCount. Address 1 is the master; the grid CT connects to it alone. See Message reference for every value. Show the role on each inverter of a plant; it is per inverter, not combined.

A Nexus whose parallel count is 2 or more has members[].parallel: true. Unlike the Yorker, the Nexus has no parallel-system registers: every value it reports is its own (the vendor's register notes say to sum them), so its units are summed as usual and none of the max-once rule above applies.

Analytics (get_analytics)​

{ "type": "get_analytics", "scope": "combined", "userId": "…", "plantId": "P1", "period": "month", "month": "2026-10", "timezone": "Asia/Karachi", "requestId": "…" }

This is the plant scope that already existed, now explicit. The reply's scope adds three fields:

  • kind: "combined" or "individual";
  • members: every inverter covered;
  • parallelSets: lists of device ids, present only when the plant has paralleled IP20 units.

When parallelSets is present, a PARALLEL_SET_COMBINED notice is added, and completeness counts each paralleled set as one inverter.

CombinationResult
scope: "combined" with a deviceKey, or without a plantIdinvalid_request
scope: "individual" without a deviceKeyinvalid_request
a plant over the limitinvalid_request

Historical Data (get_param_catalog / get_param_history)​

{ "type": "get_param_catalog", "scope": "combined", "userId": "…", "plantId": "P1", "requestId": "…" }
{ "type": "get_param_history", "scope": "combined", "userId": "…", "plantId": "P1",
"period": "day", "date": "2026-10-28", "timezone": "Asia/Karachi", "params": ["pv_power_w", "pv_energy_today_kwh"], "requestId": "…" }

The combined catalog only offers parameters that combine. These are totals: total power of each kind, every energy counter, rated power, and SOC (averaged). Per-string, per-phase, voltage, current, frequency and temperature parameters are per inverter only.

The combined history reply differs from a single inverter's in these ways:

  • scope, plantId and members replace deviceKey and model. dataAsOf is the most recent reading of any inverter in the group.
  • A combined Day is in 5-minute buckets (grain: "5m"), because the inverters poll at different moments. Week stays in 15-minute buckets.
  • reporting[i] is how many inverters had a reading in bucket i, out of of. A bucket with reporting < of is partial, not a dip.
  • An energy counter an inverter missed in one bucket carries its previous value forward within the same local day.
  • A parameter that does not combine is not charted. It is listed in unavailable as { "block": "<key>", "reason": "PER_INVERTER_ONLY" }.

The paralleled-IP20 rule above applies to combined history too.

Requests are refused with these codes:

  • invalid_request: a deviceKey was sent with scope: "combined", or scope has an unknown value;
  • device_not_found: you have no inverters in that plant.

Server configuration​

These ws-gateway environment variables are optional. An invalid value is logged and the default is used.

VariableDefaultMeaning
GROUP_MAX_INVERTERS50 (1–500)Most inverters per plant, for combined data and for register / update_device into a plant
GROUP_STALE_AFTER90sA member with no reading for this long is stale
GROUP_OFFLINE_AFTER15mA member with no reading for this long is offline
ANALYTICS_PARALLEL_DEDUPEonSet to off to stop taking paralleled IP20 sets once in plant analytics. Use it only if bench measurements show the system-bank reading is wrong.

Design and rationale: PARALLEL_INVERTER_PLAN.md in the cse_tcp_be repository.