Dominevo
ReferenceDevice capabilities

climate-control

HVAC / climate control cap.

HVAC / climate control cap. Models the full surface of a HA climate.* entity (thermostat, A/C, heat pump, dehumidifier) with a single coherent slice — mode + fan + preset + target + dual-setpoint range + humidity + read-only current readings.

Operation modes (HvacMode) follow HA's canonical set; not every device supports every mode — the provider rejects unsupported values at runtime. Min/max/step bounds for the setpoint are surfaced via getOptions on the provider — they are static per-device hardware properties persisted in the device config blob.

fanMode / preset are free-form strings because device vendors use vastly different vocabularies (auto/low/high vs quiet/normal/turbo; eco/away/sleep vs home/night). The provider populates availableFanModes / availablePresets on the slice so the UI renders a closed-list picker.

Sub-surface gating paired with DeviceFeature flags:

  • ClimateDualSetpoint — heat_cool dual-target range support
  • ClimateHumidity — currentHumidity / targetHumidity surfaces
  • ClimateFanMode — fan-mode selector
  • ClimatePreset — preset selector
  • ClimateSwingVertical — vertical louver swing toggle
  • ClimateSwingHorizontal — horizontal louver swing toggle

Swing is modelled as two INDEPENDENT booleans (vertical / horizontal), each actionable on its own and each gated by its own DeviceFeature so the UI shows only the axes a given device supports. This is generic — any climate device (not just Gree) can advertise either / both axes.

At a glance

Capabilityclimate-control
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesclimate
Sourcepackages/types/src/capabilities/climate-control.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
setModemutationyesprotected
setTargetmutationyesprotected
setTargetRangemutationnoprotected
setTargetHumiditymutationnoprotected
setFanModemutationnoprotected
setPresetmutationnoprotected
setSwingVerticalmutationnoprotected
setSwingHorizontalmutationnoprotected

setMode

mutation

Input

FieldTypeRequiredDescription
mode"off" | "heat" | "cool" | "auto" | "heat_cool" | "fan_only" | "dry"yes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.offClimate offmode = "off"
climate.heatHeatmode = "heat"
climate.coolCoolmode = "cool"
climate.autoClimate automode = "auto"
climate.modeSet modemode = undefined

setTarget

mutation

Input

FieldTypeRequiredDescription
targetnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.targetSet temperaturetarget = undefined

setTargetRange

mutation · optional for a provider

Input

FieldTypeRequiredDescription
targetLownumberyes
targetHighnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.targetRangeSet temperature rangetargetLow = undefined

setTargetHumidity

mutation · optional for a provider

Input

FieldTypeRequiredDescription
targetHumiditynumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.targetHumiditySet humiditytargetHumidity = undefined

setFanMode

mutation · optional for a provider

Input

FieldTypeRequiredDescription
fanModestringyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.fanModeSet fan modefanMode = undefined

setPreset

mutation · optional for a provider

Input

FieldTypeRequiredDescription
presetstringyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.presetSet presetpreset = undefined

setSwingVertical

mutation · optional for a provider

Input

FieldTypeRequiredDescription
onbooleanyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.swingVerticalOnVertical swing onswingVertical = true
climate.swingVerticalOffVertical swing offswingVertical = false

setSwingHorizontal

mutation · optional for a provider

Input

FieldTypeRequiredDescription
onbooleanyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
climate.swingHorizontalOnHorizontal swing onswingHorizontal = true
climate.swingHorizontalOffHorizontal swing offswingHorizontal = false

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 thermostats read the full slice via device.state.climate-control.value and refresh on every push without re-querying the provider.

FieldTypeRequiredDescription
mode"off" | "heat" | "cool" | "auto" | "heat_cool" | "fan_only" | "dry"yesActive HVAC mode.
action"heating" | "cooling" | "drying" | "fan" | "idle" | "off" | nullnoWhat the device is doing now (heating while the valve is open, idle at setpoint). Absent or null = the device does not say; never a guess.
availableModes("off" | "heat" | "cool" | "auto" | "heat_cool" | "fan_only" | "dry")[]yesAvailable HVAC modes the device accepts. Subset of HvacMode.
fanModestringyesActive fan mode (auto / low / medium / high / on / off / vendor-specific) — empty string when the device has no fan surface.
availableFanModesstring[]yesAvailable fan modes the device accepts.
presetstringyesActive preset (eco / away / sleep / vendor-specific) — empty string when no preset is active or the device has no preset surface.
availablePresetsstring[]yesAvailable presets the device accepts.
targetnumber | nullyesSingle setpoint in Celsius. Used by single-target modes (heat / cool / dry). Null when the device is in a range mode (heat_cool) or has no setpoint at all (fan_only/off).
targetHighnumber | nullyesUpper bound of the dual setpoint in Celsius. Populated only in heat_cool mode.
targetLownumber | nullyesLower bound of the dual setpoint in Celsius. Populated only in heat_cool mode.
targetHumiditynumber | nullyesTarget relative humidity (0..100). Null when the device has no humidity control.
currentTempnumber | nullyesCurrent measured temperature in Celsius. Read-only — pushed by the device's internal sensor.
currentHumiditynumber | nullyesCurrent measured relative humidity (0..100). Read-only.
swingVerticalboolean | nullyesVertical louver swing on/off. Null when the device has no vertical swing surface (gate with DeviceFeature.ClimateSwingVertical).
swingHorizontalboolean | nullyesHorizontal louver swing on/off. Null when the device has no horizontal swing surface (gate with DeviceFeature.ClimateSwingHorizontal).
minTempnumber | nullnoLowest setpoint the device accepts, Celsius. Absent / null = not reported.
maxTempnumber | nullnoHighest setpoint the device accepts, Celsius. Absent / null = not reported.
tempStepnumber | nullnoSetpoint granularity, Celsius (0.5, 1). Absent / null = not reported.
lastActiveMode"heat" | "cool" | "auto" | "heat_cool" | "fan_only" | "dry"noThe last non-off mode the device reported. Kept by the device-state mirror on every write (providers never set it), so "turn on" can return to it. Absent until the device has reported a running mode.
lastFetchedAtnumberyesMs epoch when the slice was last updated (push or command).