numeric-sensor
Generic numeric sensor — last-resort fallback when no typed numeric cap fits (HA sensor whose device_class we don't have a typed cap for: water flow, distance, weight, frequency, signal strength, …).
Generic numeric sensor — last-resort fallback when no typed numeric cap fits (HA sensor whose device_class we don't have a typed cap for: water flow, distance, weight, frequency, signal strength, …).
The quantity is not on this slice. It is chosen when the device is adopted and stored once on SourceInfo.quantity. value is in that quantity's base unit. null is a refused sample.
Prefer the typed alternatives (temperature-sensor, humidity-sensor, ambient-light-sensor, pressure-sensor, power-meter, air-quality-sensor, battery) when the metric matches — export adapters render those with the right service / category. Generic numeric values land here.
At a glance
| Capability | numeric-sensor |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | sensor |
| Source | packages/types/src/capabilities/numeric-sensor.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.
| Field | Type | Required | Description |
|---|---|---|---|
value | number | null | yes | Reading in the device quantity's base unit. null when refused. |
lastFetchedAt | number | yes | Ms epoch when the slice was last updated. |