Skip to main content

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.

  • hasBattery on each device: whether it has at least one battery (false for none). batteryCount is how many it has (0 included). The batteries themselves are "battery" items of the same devices array, not nested inside the device (see below): at most 50 per device. When batteryCount is higher, page the rest with list_device_batteries.

  • ratedPowerKw is the nameplate rating set with update_device, absent when none is set. Show it as the device's size. Once set, lastReadings.rated_power carries 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 to lastReadings.rated_power, and show no size when that is missing too.

  • parallelRole is where the inverter sits in a paralleled set: "master", "slave", "standalone" or "misconfigured". parallelAddress and parallelCount are 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 as parallel_role; see Message reference. The stored value is refreshed with lastReadings (about once a minute at most), so it can trail the live reading briefly after an installer change.

  • deviceKey is the device's id: the deviceKey every other message takes. It never changes, even when the device's logger is replaced. loggerId is the logger fitted to the device now: the label to show the user. A completed logger swap changes it (see Updating a device). pendingLoggerId is present while a requested logger swap is waiting for the new logger to connect. (Before the device-id release this list keyed devices by loggerId and showed the fitted logger as currentLoggerId.)

  • plantName and plantTimezone are 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; plantName also while the HTTP server has not sent the plant.

  • openAlertCount is how many alerts are open on the device now, not counting source: "system" device-change events; always sent, 0 included. openAlertTopSeverity is 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.

  • plantId is required: only that plant's devices are returned. Send plantId: "all" for every device the owner has in any plant — one request, for an "All Plants" screen — and group them by each device's own plantId. A device registered before plantId existed has no plantId, so only an all listing includes it, until an operator assigns it a plant (see Device registration).

  • The devices array holds three kinds of item, told apart by itemType: "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 by deviceKey, not by position. A device with no logger fitted (deactivated, revoked) has no logger item. Filter on itemType before 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 separate batteries array. One logger per inverter, so the device's connection is this logger's connection. Battery items carry the battery object plus itemType. A battery is always on a device (deviceKey set): its items come right after that device (and its logger), oldest first, the first 50 of the device's batteryCount. 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.
    • loggerId repeats the top-level loggerId (left out when your grant hides serials); attachedAt is when it was fitted (registration or a completed swap).
    • connected is whether it holds a connection to the server right now (false also when it has never connected). connectedAt and disconnectedAt are the latest connect and disconnect; lastScanAt is the last time a reading was polled over the connection. Each is left out until it has happened once.
    • model and manufacturedOn (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.
  • status is one of pending_connection, active, inactive, unclaimed, deactivated or revoked. A device being deleted shows revoked until 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, so loggerId is "" 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.

  • lastReadings is the same flat object a live telemetry message carries as record.readings, taken from the latest stored reading (so roughly every 5 minutes) — use watch for live values. It is left out for a device where your ticket lacks registersRead VIEW (see Authentication).

  • snVerification is verified, unverified or unsupported (the model has no readable serial register).

  • An owner with no devices gets ok: true with no devices field — treat it as an empty list. ok: false means the request itself failed (missing userId or plantId, a userId that isn't a valid UUID, a malformed plantId, a limit outside 1–50, a cursor this server did not issue or issued for another plantId, 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):

RequestDevices on the page
No limit, no cursor (first load)15
No limit, with cursor (each lazy load after it)10
limit sentlimit (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 devices array is longer than the page size.
  • nextCursor is present when there are more devices. Send it back unchanged as cursor, with the same userId and plantId, to get the next page. It is absent on the last page. It is opaque: don't parse or build one. A cursor from one plantId is refused for another.
  • Ordered most recently registered first (createdAt descending, 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 (no cursor) to see it.
  • The old truncated flag is gone: no page is cut short any more.
  • A client that sends no limit and never sends cursor gets only the first 15 devices. Update the app to read nextCursor before 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.