water-heater
Water heater / boiler cap.
Water heater / boiler cap. Models HA water_heater.* entities — a climate-family actuator with a target temperature, an operation-mode selector (eco / electric / gas / heat_pump / high_demand / performance / off), and an optional away-mode toggle.
The slice carries the current + target temperature, the active operation mode (HA's state) and its available set (HA's operation_list), the away flag (HA away_mode 'on'/'off' → bool, null when unsupported), plus the min_temp / max_temp bounds.
Providers populate only what the hardware reports — temperature and away fields stay null when the device has no such surface.
At a glance
| Capability | water-heater |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | water-heater |
| Source | packages/types/src/capabilities/water-heater.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 |
|---|---|---|---|
setOperationMode | mutation | yes | protected |
setAway | mutation | yes | protected |
setTargetTemp | mutation | yes | protected |
setOperationMode
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
waterHeater.off | Water heater off | operationMode = "off" |
waterHeater.mode | Set mode | operationMode = undefined |
setAway
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
on | boolean | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
waterHeater.awayOn | Water heater away on | away = true |
waterHeater.awayOff | Water heater away off | away = false |
setTargetTemp
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
temp | number | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
waterHeater.target | Set temperature | targetTemp = 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 temperature / mode / away changes.
| Field | Type | Required | Description |
|---|---|---|---|
currentTemp | number | null | yes | Current measured temperature. Null when not reported. |
targetTemp | number | null | yes | Target temperature setpoint. Null when no setpoint surface. |
operationMode | string | null | yes | Active operation mode = HA state (eco / electric / gas / heat_pump / high_demand / performance / off). Null when the device reports an unknown state. |
availableModes | string[] | yes | Available operation modes = HA operation_list. |
away | boolean | null | yes | Away mode (HA away_mode 'on'/'off' → bool). Null when the device has no away surface. |
minTemp | number | null | yes | HA min_temp attribute. Null when not reported. |
maxTemp | number | null | yes | HA max_temp attribute. Null when not reported. |
lastActiveMode | string | no | The last operation mode other than off the device reported. Kept by the device-state mirror on every write (providers never set it), so "turn on" can return to it. |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |