weather
Weather provider cap.
Weather provider cap. Models HA weather.* entities — a read-only snapshot of the CURRENT conditions a weather integration reports.
Read-only: there are no setters. The slice is populated from upstream pushes (the HA weather entity's state + attributes) and rendered by the UI as a sky scene + readouts.
condition is the verbatim HA state string (sunny / cloudy / rainy / snowy / partlycloudy / pouring / lightning / lightning-rainy / fog / windy / windy-variant / hail / clear-night / exceptional / …). The UI maps it to a glyph + tint; unknown strings fall back to a neutral cloud.
Every numeric reading is nullable — a given weather integration only populates the metrics it actually provides.
Forecast deferred — current conditions only for v1.
At a glance
| Capability | weather |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | weather |
| Source | packages/types/src/capabilities/weather.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 — mirrored by the kernel. The UI reads the current conditions directly from the slice on each weather push.
| Field | Type | Required | Description |
|---|---|---|---|
condition | string | null | yes | Verbatim condition state (sunny, cloudy, rainy, …). Null when none yet. |
temperature | number | null | yes | Current temperature in Celsius. Null when not provided or refused. |
humidity | number | null | yes | Relative humidity (0..100). Null when not provided. |
pressure | number | null | yes | Barometric pressure in hPa. Null when not provided or refused. |
windSpeed | number | null | yes | Wind speed in metres per second. Null when not provided or refused. |
windBearing | number | null | yes | Wind bearing in degrees (0..360, meteorological). Null when not provided. |
lastFetchedAt | number | yes | Ms epoch when the slice was last updated. |