Listing your devices: get_devices
:::tip Searching every device you can access
get_devices lists only the devices you registered yourself. To search
every device your role, assigned plants and shares reach (the web console's
global search), use
search_devices with a
realtime ticket.
:::
Ask for the devices an owner has registered, one page at a time (see
Paging), each with its complete stored
record — the same row devices holds, minus a handful of superseded
IP-correlation columns (pending_conn_key, last_known_ip) that no
currently-registered device carries meaning in:
// → client
{"type": "get_devices", "userId": "17833b2e-a851-4a17-a764-62524d667959",
"plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0"}
// optional: "limit": 1-50, "cursor": the previous reply's nextCursor
// ← server
{"type": "devices", "ok": true, "plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"nextCursor": "eyJwIjoiMDFKQUJD…", "devices": [
{
"itemType": "device",
"deviceKey": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"loggerId": "i30000252761006466",
"plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"model": "Nexus",
"status": "active",
"lastSeenAt": "2026-09-17T08:12:03Z",
"lastReadings": {"pv_power_w": 2140, "e_pv_all": 4821.6, "_valid": true, "active_faults": []},
"metadata": {},
"lifetimePvGenerationKwh": 4821.6,
"lifetimeSelfUsedKwh": 3012.4,
"lifetimeFeedInKwh": 1809.2,
"lifetimeLoadConsumptionKwh": 3980.1,
"lifetimeElectricityPurchaseKwh": 967.7,
"lifetimeChargeKwh": 620.0,
"lifetimeDischargeKwh": 590.3,
"lifetimeSelfUsedRevenue": 812.33,
"lifetimeFeedInRevenue": 245.10,
"inverterSn": "Y24C16070610",
"snVerification": "verified",
"maxBatchQuantity": 32,
"ratedPowerKw": 6,
"hasBattery": true,
"batteryCount": 2,
"parallelRole": "master",
"parallelAddress": 1,
"parallelCount": 2,
"createdAt": "2026-01-04T10:02:11Z",
"updatedAt": "2026-09-17T08:12:03Z"
},
{
"itemType": "logger",
"deviceKey": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"loggerId": "i30000252761006466",
"attachedAt": "2026-01-04T10:02:11Z",
"connected": true,
"connectedAt": "2026-09-17T06:40:55Z",
"disconnectedAt": "2026-09-16T19:02:10Z",
"lastScanAt": "2026-09-17T08:12:03Z",
"model": "WiFi DTU",
"manufacturedOn": "2025-11-20"
},
{
"itemType": "battery",
"batteryId": "6c1f2a3b-…",
"deviceKey": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"brand": "ELEKTRA_BOOST",
"name": null,
"capacityKwh": 5.12,
"serialNumber": null,
"version": 2,
"createdAt": "2026-11-18T09:00:00Z",
"updatedAt": "2026-11-19T10:15:00Z"
},
{
"itemType": "device",
"deviceKey": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"loggerId": "",
"plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"model": "Aotai 6KU",
"status": "deactivated",
"snVerification": "verified",
"createdAt": "2025-12-01T09:00:00Z",
"updatedAt": "2026-08-02T11:30:00Z"
},
{
"itemType": "battery",
"batteryId": "d41e…",
"deviceKey": null,
"plantId": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"brand": "Pylontech",
"name": null,
"capacityKwh": 10,
"serialNumber": null,
"version": 1,
"createdAt": "2026-11-19T09:00:00Z",
"updatedAt": "2026-11-19T09:00:00Z"
}
]}
A device with no telemetry yet (registered, never connected) has no
model, lastSeenAt, lastReadings, inverterSn (unless you supplied it)
or maxBatchQuantity, and status: "pending_connection" — the same
"waiting for device" state described in
Device registration.
-
hasBatteryon each device: whether it has at least one battery (falsefor none).batteryCountis how many it has (0included). The batteries themselves are"battery"items of the samedevicesarray, not nested inside the device (see below): at most 50 per device. WhenbatteryCountis higher, page the rest withlist_device_batteries. -
ratedPowerKwis the nameplate rating set withupdate_device, absent when none is set. Show it as the device's size. Once set,lastReadings.rated_powercarries the same value from the device's next telemetry cycle; this field has it at once, and while the device is offline. With none set, fall back tolastReadings.rated_power, and show no size when that is missing too. -
parallelRoleis where the inverter sits in a paralleled set:"master","slave","standalone"or"misconfigured".parallelAddressandparallelCountare the two installer settings it is derived from (the master is address 1). All three are absent until the device has reported them, and for models that do not (only the Nexus does). Each live reading carries the same asparallel_role; see Message reference. The stored value is refreshed withlastReadings(about once a minute at most), so it can trail the live reading briefly after an installer change. -
deviceKeyis the device's id: thedeviceKeyevery other message takes. It never changes, even when the device's logger is replaced.loggerIdis the logger fitted to the device now: the label to show the user. A completed logger swap changes it (see Updating a device).pendingLoggerIdis present while a requested logger swap is waiting for the new logger to connect. (Before the device-id release this list keyed devices byloggerIdand showed the fitted logger ascurrentLoggerId.) -
plantNameandplantTimezoneare the device's plant's name (as the HTTP server last sent it) and the IANA zone its local day is counted in, the one analytics uses. Both are absent for a device in no plant;plantNamealso while the HTTP server has not sent the plant. -
openAlertCountis how many alerts are open on the device now, not countingsource: "system"device-change events; always sent,0included.openAlertTopSeverityis the worst of them ("critical","warning"or"info"), absent when there are none. Both hold for one plant and for"all". Added 2026-11-17, so a device list needs no plant lookup or alert fetch to label its rows. -
plantIdis required: only that plant's devices are returned. SendplantId: "all"for every device the owner has in any plant — one request, for an "All Plants" screen — and group them by each device's ownplantId. A device registered beforeplantIdexisted has noplantId, so only analllisting includes it, until an operator assigns it a plant (see Device registration). -
The
devicesarray holds three kinds of item, told apart byitemType:"device"(the device record),"logger"(the logger fitted to that device now) and"battery". Each device is followed by its logger, then its batteries. Link them bydeviceKey, not by position. A device with no logger fitted (deactivated,revoked) has no logger item. Filter onitemTypebefore treating an item as a device: a client that reads every item as a device shows each logger and battery as an extra, empty device. There is no separatebatteriesarray. One logger per inverter, so the device's connection is this logger's connection. Battery items carry the battery object plusitemType. A battery is always on a device (deviceKeyset): its items come right after that device (and its logger), oldest first, the first 50 of the device'sbatteryCount. Since 2026-11-20 there are no batteries "waiting at a plant" (deviceKey: null) any more: a battery is added only after its inverter is registered.No battery items means no battery. Each battery appears once. Edit or remove any of them with
update_battery/remove_battery(see Device batteries). Logger items carry:deviceKey: the device it is fitted to.loggerIdrepeats the top-levelloggerId(left out when your grant hides serials);attachedAtis when it was fitted (registration or a completed swap).connectedis whether it holds a connection to the server right now (falsealso when it has never connected).connectedAtanddisconnectedAtare the latest connect and disconnect;lastScanAtis the last time a reading was polled over the connection. Each is left out until it has happened once.modelandmanufacturedOn(YYYY-MM-DD) come from the factory unit list and are left out for a logger that list does not hold. The logger itself reports only its id, never a model.
-
statusis one ofpending_connection,active,inactive,unclaimed,deactivatedorrevoked. A device being deleted showsrevokeduntil its deletion finishes, then disappears from the list. -
deactivated: the device's logger was registered on another inverter, plugged back into another of your devices, or taken off by an administrator (see Reusing a logger on your own devices). It keeps all of its history and still counts in plant totals, but has no logger, sologgerIdis""and no new data arrives for it. Show it as, for example, No logger. Fitting it a logger makes it live again; plugging the logger it had back into its inverter does that by itself, with no scan. A device whose status changes this way leaves or rejoins its plant's combined view within a minute. -
lastReadingsis the same flat object a livetelemetrymessage carries asrecord.readings, taken from the latest stored reading (so roughly every 5 minutes) — usewatchfor live values. It is left out for a device where your ticket lacks registersReadVIEW(see Authentication). -
snVerificationisverified,unverifiedorunsupported(the model has no readable serial register). -
An owner with no devices gets
ok: truewith nodevicesfield — treat it as an empty list.ok: falsemeans the request itself failed (missinguserIdorplantId, auserIdthat isn't a valid UUID, a malformedplantId, alimitoutside 1–50, acursorthis server did not issue or issued for anotherplantId, database unavailable).
Paging
Since 2026-11-24 get_devices returns one page at a time, for lazy
loading (an "All plants" list reaches thousands of devices for an
installer or an administrator):
| Request | Devices on the page |
|---|---|
No limit, no cursor (first load) | 15 |
No limit, with cursor (each lazy load after it) | 10 |
limit sent | limit (1–50; anything else is refused with ok: false) |
- A page counts devices, not items: each device's logger and battery
items come with it, so the
devicesarray is longer than the page size. nextCursoris present when there are more devices. Send it back unchanged ascursor, with the sameuserIdandplantId, to get the next page. It is absent on the last page. It is opaque: don't parse or build one. A cursor from oneplantIdis refused for another.- Ordered most recently registered first (
createdAtdescending, then by device id), so pages neither skip nor repeat a device that was already there. A device registered after you loaded the first page is not added to later pages; reload from the first page (nocursor) to see it. - The old
truncatedflag is gone: no page is cut short any more. - A client that sends no
limitand never sendscursorgets only the first 15 devices. Update the app to readnextCursorbefore relying on a full list (an older app build shows the first 15).
No ownership verification beyond the userId filter itself — same gap as
every other message here (see Known gaps): userId is
whatever the client claims to be, not cryptographically verified. One
get_devices may be in flight per connection; a second concurrent request on
the same connection is rejected outright rather than queued.