humidifier
Humidifier / dehumidifier cap.
Humidifier / dehumidifier cap. Models HA humidifier.* entities — an on/off actuator with an optional target-humidity setpoint and an optional vendor mode (auto / normal / baby / …).
A climate-family sibling: the slice carries the on/off state, the current + target relative humidity (0..100), the active mode and its available set, plus HA's free-form action readout (humidifying / drying / idle / off). minHumidity / maxHumidity mirror HA's min_humidity / max_humidity attributes (null → the UI falls back to a 0..100 range).
Providers populate only what the hardware reports — mode and the humidity fields stay null when the device has no such surface.
At a glance
| Capability | humidifier |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | humidifier |
| Source | packages/types/src/capabilities/humidifier.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 |
|---|---|---|---|
setOn | mutation | yes | protected |
setTargetHumidity | mutation | yes | protected |
setMode | mutation | yes | protected |
setOn
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
on | boolean | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
humidifier.on | Humidifier on | on = true |
humidifier.off | Humidifier off | on = false |
setTargetHumidity
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
humidity | number | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
humidifier.target | Set humidity | targetHumidity = undefined |
setMode
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
humidifier.mode | Set mode | mode = undefined |
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
Runtime-state slice — mirrored by the kernel. UI controls watch the slice for live humidity / mode changes.
| Field | Type | Required | Description |
|---|---|---|---|
on | boolean | yes | Whether the humidifier is currently on. |
currentHumidity | number | null | yes | Current measured relative humidity (0..100). Null when not reported. |
targetHumidity | number | null | yes | Target relative humidity (0..100). Null when no setpoint surface. |
mode | string | null | yes | Active mode (auto / normal / baby / vendor). Null when the device has no mode surface. |
availableModes | string[] | yes | Available modes the device accepts. |
action | string | null | yes | HA action attribute, verbatim (humidifying / drying / idle / off). Null when the device doesn't report it. |
minHumidity | number | null | yes | HA min_humidity attribute. Null → UI uses 0. |
maxHumidity | number | null | yes | HA max_humidity attribute. Null → UI uses 100. |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |