SmartGare
API referenceEndpoints

Read devices' live status

Asks the station's hardware bridge about each address and answers one status per address, in the order asked: IN_SERVICE, OUT_OF_ORDER, OFFLINE, UNKNOWN_TO_BRIDGE, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. The bridge never fails this read. **Required permission:** `referential.device-status:read`

GET/referential/v1/device-statuses

Asks the station's hardware bridge about each address and answers one status per address, in the order asked: IN_SERVICE, OUT_OF_ORDER, OFFLINE, UNKNOWN_TO_BRIDGE, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. The bridge never fails this read.

Required permission: referential.device-status:read

AuthorizationBearer <token>

In: header

Query Parameters

address?array<>

A bridge address, capability@place or capability[role]@place. Repeat the parameter for each device, 1 to 50; they are answered in this order.

Items0 <= items <= 50

Response Body

*/*

curl -X GET "https://example.com/referential/v1/device-statuses"
{  "data": [    {      "address": "string",      "checked_at": "2019-08-24T14:15:22Z",      "condition": "HEALTHY",      "health": "AVAILABLE",      "last_confirmed_at": "2019-08-24T14:15:22Z",      "reason": "PARTIAL_FUNCTION",      "stale": true,      "status": "IN_SERVICE"    }  ]}