network-link
How a device reaches the network, and how well.
How a device reaches the network, and how well.
NOT connectivity: that cap is an UPSTREAM system's binary view of whether an entity is reachable (a Home Assistant binary_sensor with device_class: connectivity). This one is the device's OWN link — the medium it is on and the signal it sees — the way battery is the device's own charge.
'wifi', 'ethernet' and 'cellular' are links the firmware actually reported. 'unknown' is the ABSENCE of an answer — the provider has registered the capability but has not read the link yet. Consumers skip it rather than draw a wire or a bar.
At a glance
| Capability | network-link |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera, sensor, button, switch, light, lock, siren |
| Source | packages/types/src/capabilities/network-link.cap.ts |
Methods
This capability declares no methods.
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
Runtime-state slice — every provider stores the same shape under device.runtimeState['network-link'], read once by the badge and the Home Assistant projector regardless of the driver.
| Field | Type | Required | Description |
|---|---|---|---|
type | "wifi" | "ethernet" | "cellular" | "unknown" | yes | The link the device is on. 'unknown' = not read yet, not "no link". |
signal | number | null | yes | Link quality, 0..100 inclusive, normalised by the provider from whatever the firmware reports (bars, RSSI, a vendor scale). null means NOT KNOWN or NOT APPLICABLE — a wired link has no signal, and a wireless one whose reading has not landed must not be drawn at 0 %. Consumers SKIP a null rather than coerce it. |
rssi | number | no | Raw received signal strength in dBm, when the firmware reports one. |
ssid | string | no | Network name of a wireless link, when the firmware reports it. |
speedKbps | number | null | no | Negotiated link speed of a wired port, the bitrate quantity in its base unit, kbit/s (a gigabit port is 1 000 000); the display picks the unit. null = the port is down or the speed is not known; absent = the provider never reports one. |
linkUp | boolean | null | no | Whether the link is up. type names the medium, not its state, so a wired port that lost its link is ethernet + linkUp: false. null = not known; absent = the provider never reports it. |
lastUpdated | number | yes | Ms epoch of the last observation. Lets consumers reason about freshness. |
Events
onStatusChanged
Emitted whenever the cached status changes (a link switch, a signal reading that moved). Mirrored on the parent chain by the DeviceEventPropagator like battery.onStatusChanged.
| Field | Type | Required | Description |
|---|---|---|---|
deviceId | number | yes | |
status | { type: "wifi" | "ethernet" | "cellular" | "unknown"; signal: number | null; rssi?: number; ssid?: string; speedKbps?: number | null; linkUp?: boolean | null; lastUpdated: number } | yes |