device-admin-link
device-admin-link — 'this device has a management page of its own, and here is its address'.
device-admin-link — "this device has a management page of its own, and here is its address".
At a glance
| Capability | device-admin-link |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | any (no device type declared) |
| Source | packages/types/src/capabilities/device-admin-link.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
getAdminLink | query | yes | admin |
getAdminLink
query
The device's management page, or null when this device has none.
auth: 'admin' deliberately. This is administration, not actuation — the same bucket as reboot and camera-credentials, and explicitly NOT the actuation set scripts/check-actuation-not-admin.ts protects. The URL is also a statement about the LAN, which a household member with a view grant on a light has no reason to be handed.
The surfaces gate on the QUERY, never on a role they guessed: a caller without the right loses the query and draws nothing, which is the same thing a device with no page draws.
Input
No fields besides deviceId.
Output
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | |
label | string | yes | |
target | "device" | "integration" | yes | |
host | string | yes |