Message reference
Client → server
Every deviceKey below is the device's id, a UUID — see
What deviceKey is. The only message that takes a logger
ID is register (loggerId), plus update_device's changes.loggerId.
type | Fields | Behavior |
|---|---|---|
watch | deviceKey (string, required) | Start receiving telemetry/presence for this device. Answered by watch_ack. Multiple clients watching the same device share one backend subscription — watching is cheap, watch freely. |
unwatch | deviceKey (string, required) | Stop receiving updates for this device. No reply. |
watch (combined) | scope: "combined", userId, plantId — all required; optional timezone | Watch the caller's whole parallel group in the plant (every inverter they own there). At most 8 plants per connection; re-watching a plant replaces the earlier watch. Answered by a combined watch_ack, then group_telemetry. See Parallel inverters. |
unwatch (combined) | scope: "combined", plantId | End that combined watch. No reply. |
get_registers | deviceKey (string, required — model is no longer accepted); optional access ("writable" | "all" | "readable", default "writable"), registers (string array — narrow to these names), group (string — narrow to one setting group, spelled as the reply spells it; unknown → ok: false listing the valid groups), includeValues (bool — also read each register's current value, max 192 registers; with group or registers, only those are read) | Request the register catalog for a device. The writable registers of the More group (Nexus, Yorker) and Nexus work_mode option 1 are left out unless the ticket carries "sa": true or "pa": true (see Privileged settings). Answered by all_registers. One in flight per connection. See Getting the register catalog. |
read_registers | deviceKey (string, required), registers (array of names, required, max 64) | Read the current value of specific registers from the device. Answered by registers_values. One in flight per connection. See Reading current settings. |
write | deviceKey, register (string), value (number), userId (string) — all required | Write a value to a register on a live device. Answered by write_result. One in flight per connection. See Writing to a device. |
custom_command | deviceKey, functionCode (3/4 read, 6/16 write), address (0–65535); count (reads, 1–64), values (writes: one for 6, 1–64 for 16; each 0–65535); optional unitId (1–247, default the device's own); or instead frame (a complete RTU request in hex, CRC included, spaces allowed; RTU/logger connections only) | Send one raw Modbus request. Crown Super Admin or Admin only (verified ticket with sa or pa), plus registersRead VIEW / registersWrite EDIT on the device. No scale, range check or read-back. Shares the one-write-in-flight slot with write. Answered by custom_command_result. See Custom commands. |
register | loggerId (the scanned logger ID), userId, plantId — all required; optional inverterSn, battery (older apps only: the device's first battery; new apps add batteries with add_device_battery after registering), parallel (boolean, default false: confirms the inverter is wired in parallel with the one already in the plant — see A plant that already has an inverter) | Register a device right after BLE-provisioning it, before it's ever connected. Answered by register_result. See Device registration. |
update_device | deviceKey, userId, plantId (the plant the device is in now), changes (object of fields to change: plantId, loggerId, ratedPowerKw) — all required; optional parallel (boolean, with changes.plantId: as register's) | Change an existing device: move it to another plant, replace its logger, or set its nameplate rating. Answered by update_device_result. One in flight per connection. See Updating a device. |
list_device_batteries | deviceKey, userId — both required; optional limit (default 50, max 200), cursor (a previous reply's nextCursor) | List one page of a device's batteries, oldest first. Answered by device_batteries. See Device batteries. |
add_device_battery | deviceKey, userId — required; optional battery (brand, name, capacityKwh, serialNumber, all optional; any other field is refused) | Add one battery to a device in a plant (no limit per device; serialNumber is unique across the fleet and cannot be changed later). Answered by add_device_battery_result. |
update_battery | userId, batteryId, version, battery (fields to change; null clears) — all required | Edit a battery (its serialNumber cannot be added, changed or cleared: BATTERY_SERIAL_IMMUTABLE). Answered by update_battery_result (status: applied | unchanged). update_device_battery is the old name of the same message (its deviceKey optional, and when sent must be the battery's device); answered by update_device_battery_result. |
remove_battery | userId, batteryId — required; optional version | Remove a battery. Answered by remove_battery_result. remove_device_battery is the old name (as above); answered by remove_device_battery_result. |
get_devices | userId, plantId — both required (plantId: "all" for every plant); optional limit (1–50), cursor | List one page of the devices this user owns in plantId, with each one's full stored record: 15 devices on the first page, 10 per page after it, or limit. Answered by devices. One in flight per connection. See Listing your devices. |
get_activity | userId (string, required); optional deviceKey (omit for every device the user owns), plantId (one plant's entries; omit or "all" for every plant), filter ("all" | "writes" | "reads" | "failed", default "all"), cursor (opaque string from a previous activity_list's nextCursor) | Fetch one page (fixed at 10 rows) of the Activity Trail. Answered by activity_list. One in flight per connection. See Activity Trail. |
get_activity_detail | userId, activityId — both required | Fetch one Activity Trail entry's full detail, including the protocol trace. Answered by activity_detail. One in flight per connection (separate from get_activity's). |
sync_ble_activity | userId, activities (array of 1–100 cached BLE writes: id, deviceKey, plantId, performedAt, register, requestedValue, status required) — both required | Upload register writes the app made over BLE into the Activity Trail. Entries whose device is not owned by userId in that plant are discarded. Answered by sync_ble_activity_result. One in flight per connection. See Uploading BLE writes. |
delete_device | deviceKey, userId, plantId — all required (refused unless the device is in that plant) | Step 1 of 2: request a device's permanent, irreversible deletion. Issues a confirmation token; deletes nothing yet. Answered by delete_device_confirm_required. See Deleting a device. |
confirm_delete_device | deviceKey, userId, confirmToken — all required | Step 2 of 2: confirm and actually start the deletion. Answered by delete_device_started, then delete_device_progress (zero or more) and one delete_device_result. |
subscribe_alerts | userId, plantId ("all" or one plant) — both required | Start the live alerts feed for this connection at this scope, and get the current summary. Answered by alerts_summary. See Device Alerts. |
unsubscribe_alerts | none | Stop the live alerts feed for this connection. No reply. |
get_alerts | userId (required); optional plantId, severity, state ("active" | "resolved" | "all", default "active"), deviceKey, from/to (RFC3339), cursor, limit (≤50; absent: 15 on the first page, 10 on later pages, since 2026-11-24) | Fetch one page of the alerts feed. Answered by alert_list. One in flight per connection. |
mark_alerts_read | userId, alertIds (array, max 100) — both required | Mark specific alerts read for this user. Answered by alerts_read (also pushed to this user's other live connections). |
mark_all_alerts_read | userId, plantId, upTo (RFC3339) — all required | Move this user's read watermark for plantId (or every plant) up to upTo. Answered by alerts_read (also pushed to this user's other live connections). |
get_alert_catalog | optional model (omit for every model; "Yorker" includes the 3.6 kW's y3k6.* codes, "IP20 3K6/5K" gives only those) | Fetch the frozen code/title/severity catalog for building a fault legend. Answered by alert_catalog. |
get_modbus_specs | optional have (object: model → the sha256 you already hold, max 32 entries) | Fetch every Modbus profile and the profile-detection rules, for local control over BLE. Needs no device or user. Answered by one modbus_spec per profile, then modbus_detection. See Local control over BLE. |
get_analytics | userId, timezone (IANA name), period ("day" | "month" | "year" | "total" | "custom") with date / month / year / from+to (none for "total"), and plantId (one plant, not "all") and/or deviceKey. With plantId only, the reply covers the whole plant; with both, one inverter in that plant; with deviceKey only, one inverter the user owns, whatever its plant. Optional: view ("inverter" default, or "battery"), rates, requestId, scope ("combined" needs plantId and no deviceKey; "individual" needs deviceKey; omitted infers as described — see Parallel inverters) | One Analytics screen state: energy summary, chart series, last 7 days, completeness and money estimate. Answered by analytics. One in flight per connection. See Analytics. |
get_param_catalog | userId, deviceKey; optional requestId. With scope: "combined": userId, plantId and no deviceKey — the group's picker, combinable parameters only (see Parallel inverters) | The Historical Data screen's parameter picker for one inverter: every parameter, grouped, every one selectable (supported: true); one this device can't report carries a reason and is charted as 0. Answered by param_catalog. One in flight per connection. See Historical Data. |
register_push_token | userId (UUID), token (the FCM registration token), platform ("android", "ios" or "web") — all required | Register this phone for alert push notifications; send after sign-in and on every token refresh. Answered by push_token_result. See Push notifications. |
unregister_push_token | userId, token — both required | Stop push notifications to this phone (sign-out). Answered by push_token_result. |
get_param_history | userId, deviceKey, timezone (IANA name), period ("day" | "week"), date (YYYY-MM-DD; for a week, any day in it), params (1–20 parameter keys from param_catalog); optional requestId. With scope: "combined": plantId instead of deviceKey — the group's chart (Day in 5-minute buckets), with reporting/of per bucket and non-combinable parameters listed as PER_INVERTER_ONLY | One Day or Week chart of the chosen parameters for one inverter, up to exactly 3 months back. Answered by param_history. One in flight per connection (separate from get_param_catalog). See Historical Data. |
Web console messages are not in this table. The request/reply messages
the web console uses (get_inventory, search_devices, get_device_details,
commands, alerts, fleet analytics) need a realtime ticket and are documented
under Web console API. Device search for the
console's global search is
search_devices.
What gets an error reply and what is silently dropped. Malformed JSON,
an unknown type, a watch/unwatch missing deviceKey, and a write
missing deviceKey or register are silently dropped: logged
server-side, but nothing is sent back. If you send a watch and never get a
watch_ack, check your JSON shape before assuming a network problem. The
exceptions are get_analytics, get_param_catalog and
get_param_history: a frame of one of those types that does not decode (a
wrongly typed field) is answered with its reply type (analytics,
param_catalog, param_history) and code: "invalid_request", echoing its
requestId. A web console request is never
dropped for a field this page types differently: it decodes its own fields,
so get_plant_kpis with an object period (a string on get_analytics)
reaches its handler. Every
other request always gets its reply type back, with ok: false and an
error when something is missing or wrong — including get_devices,
get_activity, get_activity_detail, delete_device and
confirm_delete_device missing a required field, a sync_ble_activity that
does not decode (answered with ok: false so the app keeps its batch), register failing
validation (as INVALID_REGISTRATION), update_device failing validation
(as INVALID_REQUEST or UNSUPPORTED_CHANGE), and a
write missing userId (fails the ownership check).
:::danger A write without value writes 0
value is not checked for presence: an omitted value is sent to the device
as 0. On an on/off register that is "off" — e.g. switch_on_and_off_enable
shuts the inverter down. Always send value explicitly.
:::
One in flight per connection. For the request types marked above, a
second request of the same type sent before the first is answered is
rejected immediately (its reply type, ok: false, an ... already in progress ... error) rather than queued. Await each reply, or open a second
connection. The slots are independent of each other: a get_registers does
not block a read_registers, and a get_activity does not block a
get_activity_detail.
Max inbound message size: 65536 bytes (64 KiB). Only a
sync_ble_activity batch comes anywhere near that; a larger frame closes the
connection at the WebSocket protocol level, so split a large BLE cache into
smaller batches.
Server → client
type | Fields | When |
|---|---|---|
watch_ack | deviceKey, ok; on success model, profile (the register map's key when it differs from model: "IP20 3K6/5K" for a Yorker 3.6 kW) and registersVersion (absent only when the device has never reported a model); on refusal code and error | Once per watch. See A watch can be refused. |
watch_ack (combined) | scope: "combined", plantId, ok; on success members (deviceKey, model, inverterSn), maxInverters, timezone; on refusal code (INVALID_REQUEST, GROUP_NOT_FOUND, GROUP_TOO_LARGE, GROUP_UNAVAILABLE) and error | Once per combined watch, and again whenever the group's membership changes while watched. |
group_telemetry | plantId, asOf, combined (field → value; a field nobody reported is absent), coverage, members (deviceKey, model, state, receivedAt, parallel, valid), counts, faults/warnings/displayCodes (each {deviceKey, code}), valid | At most once per second per combined watch while members report, and at least every 30 s while watched. See Parallel inverters. |
group_watch_ended | plantId, code, error | The server ended a combined watch (the group emptied or grew past the limit). |
telemetry | deviceKey, record (object — see The telemetry record shape) | Whenever new telemetry for a watched device arrives — about every 30s while watched (see Messaging). Every watch also requests an immediate out-of-band pull, so one typically arrives a few seconds after watch_ack. The request is throttled per device by the gateway and gated again by tcpserver against the device's current cadence, so a client refreshing repeatedly does not cost one Modbus cycle per refresh — it is served the reading already held instead. |
presence | deviceKey, lastSeen (ISO 8601) | For a watched device: on every ~30s heartbeat while it's connected, right after an out-of-band telemetry pull, and once when its connection closes. There is no online/offline field — see below. |
all_registers | deviceKey, ok, error (on failure), model, profile (as in watch_ack), access (which slice registers holds), registers (register entries — fields in What each register carries, including the optional codec — or {group, children} groups for a grouped model — see Grouped replies; absent when empty), registersVersion (absent for a registers- or group-narrowed reply; computed over what this caller got when anything was left out for them), limitsVariant (the per-device limit table applied, e.g. "6KU"; absent when none — see Per-device limits), valuesError (why includeValues returned no or partial values) | Only in reply to a get_registers request — never pushed. |
registers_values | deviceKey, ok, error (on failure), values (array of {register, ok, error?, value, text?}) | Once per read_registers request. Per-register ok, so a partial answer is normal. value is always present — check ok, not the field's presence. text is present instead of a meaningful value for text registers (see below). |
write_result | deviceKey, register, ok, error (on failure), value (always present — echoes what you sent), readBack (number, absent when unavailable), applied (boolean, present with readBack: false when the device kept a different value — see Writing to a device), unconfirmed and note (with ok: true, for a write that resets the inverter and got no reply: sent once, not confirmed, not a failure) | Once per write request, after the device responds or the request times out (~10s). |
custom_command_result | deviceKey, ok, error (on failure), functionCode, unitId (when sent), address, values (the words a read returned), requestHex, responseHex, durationMs | Once per custom_command. |
register_result | deviceKey (the device's id, on success), loggerId (the canonical logger ID, echoed), plantId (echoed), ok, code (on failure), error (on failure), battery (on success: the battery the request named, or on a retry the device's oldest battery; absent when it has none), batteryError (why a named battery was not stored), inverter and plantInverters (with a PARALLEL_* code: {model?, modelCode?, ratedPowerKw?} of the inverter being added and of the plant's inverters; never a deviceKey) | Once per register request. Branch on code, not on error. |
update_device_result | ok, deviceKey and plantId (the device after the request), loggerId and pendingLoggerId (on success), changes (per change: status "applied" | "unchanged" | "pending" | "cancelled", from, to; on success), code and error (on failure), inverter and plantInverters (with a PARALLEL_* code of a plant move, as on register_result) | Once per update_device request. Branch on code. |
device_updated | deviceKey, plantId, loggerId, pendingLoggerId, changes (as in update_device_result) | Pushed to the user's other alert-subscribed connections when an update_device change is applied. Not a reply to anything. |
devices | ok, error (on failure), plantId (echoed), nextCursor (absent on the last page), devices (array of itemType: "device", "logger" and "battery" items: each device, then its logger, then its batteries (at most 50 per device), all linked by deviceKey — see Listing your devices; absent when there are no items; devices carry hasBattery and batteryCount, and there is no separate batteries array) | Once per get_devices request. |
device_batteries | ok, deviceKey, batteries, total, nextCursor (absent on the last page), code and error (on failure) | Once per list_device_batteries request. |
add_device_battery_result, update_battery_result, remove_battery_result (and the old-name update_device_battery_result, remove_device_battery_result) | ok, batteryId, deviceKey, battery (add, update), status (update: applied | unchanged), code and error (on failure) | Once per battery request. See Device batteries. |
device_batteries_changed | deviceKey, hasBattery, batteryCount, batteries (the first 50) | Pushed to the user's other alert-subscribed connections after a change to one of a device's batteries. (battery_changed, for batteries waiting at a plant, no longer exists.) |
activity_list | ok, error (on failure), activities (array, absent on an empty page), nextCursor and hasMore: true (both absent on the last page), failedCount (number, first page only) | Once per get_activity request. |
activity_detail | ok, error (on failure), activity (object) | Once per get_activity_detail request. |
sync_ble_activity_result | ok, error (on failure), accepted (ids), discarded and retry (arrays of {id, reason, detail?}), each list absent when empty | Once per sync_ble_activity request. Remove accepted and discarded from the cache; keep retry, and everything on ok: false. |
delete_device_confirm_required | ok, error (on failure), deviceKey, plantId (echoed), confirmToken, expiresInSeconds (on success) | Once per delete_device request. Nothing has been deleted yet. |
delete_device_started | ok, error (on failure), deviceKey, plantId (the plant the deletion was requested in) | Once per confirm_delete_device request, immediately — before the deletion itself runs. ok: true means the deletion has begun, not finished. |
delete_device_progress | deviceKey, rowsErased, totalErased, windowStart (YYYY-MM-DD, absent for the final sweep), telemetryDone (true, on the last one only) | Pushed zero or more times per confirmed deletion, as telemetry is erased in batches. |
delete_device_result | ok, error (on failure), deviceKey, plantId (the plant the deletion was requested in), telemetryRows, aggregateRows, activityRows, sightingRows (each absent when zero) | Pushed exactly once per confirmed deletion, when it finishes (or fails partway). |
alerts_summary | ok, error (on failure), plantId (echoed), unreadCount, counts ({all,critical,warning,info}), plants (array — connectivity per plant, at most 50 lines, offline plants first), plantsTotal, plantsReporting, plantsTruncated (totals over every plant in scope; absent when 0/false), plantCounts ({total, byStatus:{online,partial,offline,fault,setup}}, equal to list_plants counts with no filter; absent if not computed) | Once per subscribe_alerts request. |
alert_list | ok, error (on failure), items (array), nextCursor (absent on the last page) | Once per get_alerts request. |
alerts_changed | events (array of {op, alert}), unreadCount, counts, plantCounts (as on alerts_summary) | Pushed, unsolicited, to every subscribed connection whose scope matches a changed alert. Not a reply to anything. See Live push. |
alerts_read | ok, error (on failure), alertIds (for mark_alerts_read), plantId/readBefore (for mark_all_alerts_read), unreadCount | Once per mark_alerts_read/mark_all_alerts_read request, AND pushed to the same user's other live connections. |
alert_catalog | ok, error (on failure), model (echoed, when the request named one), entries (array) | Once per get_alert_catalog request. |
modbus_spec | ok, error (on failure), index, total, model (the profile key), publicModel (the name its devices are shown under, when that differs: "Yorker" for "IP20 3K6/5K"), sha256, unchanged, modbusCapable, detectable, requiredFeatures, ratedPowersKw (the ratings update_device accepts for the model; absent for Nexus), spec (absent when unchanged) | One per profile, in model order, in reply to get_modbus_specs. A gap in index means a message was dropped: ask again. |
modbus_detection | ok, error (on failure), sha256, detection (algorithmVersion, read, models) | Once per get_modbus_specs, after every modbus_spec. |
analytics | ok, requestId (echoed); on success scope (plantId, deviceKey, view, kind "combined"|"individual", and for combined members, parallelSets), period, capabilities, coverage (only when partial), summary (with production / consumption in the inverter view), series (day/month/year points carry revenue), lifetime (total only), completeness, financial, dataAsOf, dataStartsAt, unavailable; on failure code and error | Once per get_analytics request. See Analytics. |
push_token_result | action ("register" | "unregister"), ok, error (on failure) | Once per register_push_token/unregister_push_token request. See Push notifications. |
param_catalog | ok, requestId (echoed); on success deviceKey, model, variant, groups (each key, label, params of key, label, unit, kind, supported (always true), reason when the device has no real value, defaultSelected, sameAs when the reading duplicates another parameter); on failure code and error | Once per get_param_catalog request. See Historical Data. |
param_history | ok, requestId (echoed); on success deviceKey, model, period (kind, from, to, timezone, grain "native" or "15m", availableFrom, isCurrent), params, t (timestamps), values (per parameter key, one value or null per t), unavailable, dataAsOf, dataStartsAt; on failure code and error | Once per get_param_history request. See Historical Data. |
Fields documented as "absent when empty/zero/false" really are absent — the
server omits empty arrays, zero counts and false flags from these
envelopes. Default a missing array to [], a missing count to 0 and a
missing hasMore to false.
presence has no status
tcpserver publishes presence as online on every heartbeat and offline
when a connection closes, but the gateway forwards only deviceKey and
lastSeen — the online/offline status itself is not on the WebSocket.
Derive liveness from lastSeen instead: a connected device refreshes it
roughly every 30 seconds, so treat a lastSeen more than a minute or two
old as offline. (The final message sent when a connection closes looks like
an ordinary heartbeat; don't treat any single presence as proof the device
is up.)
The telemetry record shape
record is the telemetry message exactly as tcpserver published it:
{
"deviceKey": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"loggerId": "i20000282445530580",
"model": "Nexus",
"receivedAt": "2026-08-28T07:48:56.323693Z",
"cadence": "watched",
"registered": true,
"readings": {
"e_pv_all": 1471.1,
"grid_voltage": 0,
"pv_power_w": 0,
"pv_energy_today_kwh": 9.8,
"_device_key": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"_model": "Nexus",
"_variant": "1ph",
"_received_at": "2026-08-28T07:48:56.323693Z",
"_timestamp": 1787143341,
"_timestamp_iso": "2026-08-28T07:48:56Z",
"_device_uptime_s": 5855.2,
"_valid": true,
"active_faults": ["Under Upv1"],
"active_warnings": [],
"active_display_codes": ["F_S1_00"]
}
}
deviceKeyis the device's id;loggerIdis the logger the reading came through (after a logger swap, the new one — under the samedeviceKey).modelis the device's model name (the same valuewatch_ack,all_registersandget_devicesuse). Since 2026-11-23 it is the public name: the Yorker 3.6 kW shows"Yorker", and its record also carries"profile": "IP20 3K6/5K", the register map it uses, absent for every other model. Key anything per register map (a cached catalog) byprofilewhen present, else bymodel. See Shown as "Yorker".cadenceis"default"or"watched"— see Not every live reading is written to the database. It describes what the backend does with the reading, not the reading.readingsis one flat object: every decoded register value keyed by its registername(e.g.e_pv_all,grid_voltage), plus a small set of canonical fields shared across models (pv_power_w,pv_energy_today_kwh, ...), plus_-prefixed metadata. This is the same objectget_devicesreturns aslastReadings.
Not every register value is a number. A packed date/time register
(Aotai time and warning_time, catalog dataType datetime) arrives as a
"YYYY-MM-DDTHH:MM:SS" string: the inverter's own wall clock, with no UTC
offset. Before 2026-09-30 these arrived as a meaningless number (e.g.
6665), so historical rows still hold numbers. Use _timestamp or
receivedAt, never time, to order readings.
Units. Each reading is in its register's unit from the catalog
(get_registers), with the scale already applied. Every Aotai power field
is kW, including inverter_power. Before 2026-09-24 inverter_power could
arrive in W on some frames (see below). Take the unit from the catalog;
never infer it from the size of the number.
Rated power. readings.rated_power is the inverter's nameplate rating
in kW, for every model that has a reliable source: the Aotai's register
220, and on Yorker a value decoded from protocol_id_code_b
(see the IP20 protocol page). The key is
absent, never 0, when the rating is unknown: an unrecognised model
code, an IP20 whose ID registers are not filled in yet, or an IP20 3K6/5K
whose rated output current is not 15 A (the 3.6 kW; its rating comes from the
F query's rated_output_current, see IP20 3K6/5K). Show no rating when it is absent. It is also in get_devices'
lastReadings once the device's next reading has been stored.
One definition per name (hardware variant). The Aotai protocol
documents single-phase and three-phase units as overlapping register maps.
Address 57 is inverter_power on a single-phase unit but
inverter_power_a on a three-phase unit, and three-phase inverter_power
is at 60. The server reads the device's variant from register 87 once per
connection and publishes only that variant's registers. _variant is
"1ph" or "3ph", and is absent while the variant is not yet known. In
that state, the names the two maps disagree on (inverter_power,
back_up_power, and a few generator/back-up-2 fields) are left out rather
than published from the wrong address. A single-phase unit's frames
therefore contain no _a/_b/_c phase fields. Previously both maps were
read, and inverter_power alternated between the W and kW definitions from
frame to frame.
Parallel role (Nexus). On a Nexus, readings.parallel_role says where
the inverter sits in a paralleled set: "master", "slave",
"standalone" or "misconfigured". It comes from two installer settings,
sent alongside it under their register names: parallel_address_setting
(register 1162, the unit's number in the set) and
total_number_in_parallel_setting (1163, the set's size). The manual numbers
the units 1 to N and calls No.1 the master, so:
total_number_in_parallel_setting | parallel_address_setting | parallel_role |
|---|---|---|
| 0 or 1 | any | standalone |
| 2 or more | 1 | master |
| 2 or more | 2 to the count | slave |
| 2 or more | 0, or above the count | misconfigured (the set expects addresses 1 to N; expect "Parallel Data Loss" faults) |
The server reads the two settings when the device connects and every 15
minutes after that, and again on the next cycle after either is written
through write. All three keys are absent until the first read, and on
models that do not report a role (Yorker, IP20 3K6/5K). The same values are
stored on the device and returned by get_devices as parallelRole,
parallelAddress and parallelCount
(see Listing devices).
Names documented at several addresses (IP20). Yorker
documents 26 names twice, once on a summary sheet and once on a detail
sheet, e.g. phase_a_grid_voltage at 80 and 432. For such a name the bare
key always holds the lowest-address copy. Every copy is also sent as
<name>_<address> (phase_a_grid_voltage_80,
phase_a_grid_voltage_432). Read the bare key; the suffixed keys exist so
no decoded value is silently dropped.
active_faults/active_warnings are decoded from the connected device's
alarm/warning bit registers against its protocol spec's fault code table —
empty arrays (not null) when nothing is active. Every supported model
reports faults and warnings (Aotai warnings since 2026-10-06, IP20 3K6/5K
since 2026-11-23, from its GWS, GMOD and FAN??? replies) — see each
model's page under Protocols. active_display_codes lists, for the same
cycle, the code of every set status bit exactly as the inverter's screen
prints it ("ALA 56", "Err 18", "W_S1_01"), with no alert thresholds
applied; bits with no known screen code are left out. See
Device alerts. _valid is false if any
register in that cycle failed to decode (a bad read, not a device fault) —
treat a false snapshot as incomplete, not as "the device is fine."
Registers in a range the device has never answered, and has failed three
cycles running, are not requested at all and do not make _valid false;
they are simply absent. Nor does a never-answered range the device refuses
with an explicit Modbus exception (a range it does not implement).
See Suspending batches that always fail.
A separate, dedicated Device Alerts pipeline (stable codes, database
history, per-user read state) is being built alongside this field — see
Device Alerts for what exists
so far. active_faults/active_warnings are unaffected and keep working
exactly as described above regardless of that rollout.