Dominevo
ReferenceDevice capabilities

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

Capabilitynetwork-link
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera, sensor, button, switch, light, lock, siren
Sourcepackages/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.

FieldTypeRequiredDescription
type"wifi" | "ethernet" | "cellular" | "unknown"yesThe link the device is on. 'unknown' = not read yet, not "no link".
signalnumber | nullyesLink 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.
rssinumbernoRaw received signal strength in dBm, when the firmware reports one.
ssidstringnoNetwork name of a wireless link, when the firmware reports it.
speedKbpsnumber | nullnoNegotiated 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.
linkUpboolean | nullnoWhether 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.
lastUpdatednumberyesMs 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.

FieldTypeRequiredDescription
deviceIdnumberyes
status{ type: "wifi" | "ethernet" | "cellular" | "unknown"; signal: number | null; rssi?: number; ssid?: string; speedKbps?: number | null; linkUp?: boolean | null; lastUpdated: number }yes