mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-17 14:26:30 +00:00
Add EntityFeature enum to Climate (#1267)
This commit is contained in:
parent
dc52483b20
commit
695fa2b104
@ -99,26 +99,27 @@ A device's fan can have different states. There are a couple of built-in fan mod
|
|||||||
The device fan can have different swing modes that it wants the user to know about/control.
|
The device fan can have different swing modes that it wants the user to know about/control.
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------------------ | ------------------------------------------------ |
|
| ------------------ | ------------------------------------------------- |
|
||||||
| `SWING_OFF` | The fan is not swinging. |
|
| `SWING_OFF` | The fan is not swinging. |
|
||||||
| `SWING_ON` | The fan is swinging. |
|
| `SWING_ON` | The fan is swinging. |
|
||||||
| `SWING_VERTICAL` | The fan is swinging vertical. |
|
| `SWING_VERTICAL` | The fan is swinging vertical. |
|
||||||
| `SWING_HORIZONTAL` | The fan is swinging horizontal. |
|
| `SWING_HORIZONTAL` | The fan is swinging horizontal. |
|
||||||
| `SWING_BOTH` | The fan is swinging both horizontal and vertical. |
|
| `SWING_BOTH` | The fan is swinging both horizontal and vertical. |
|
||||||
|
|
||||||
### Supported features
|
## Supported Features
|
||||||
|
|
||||||
Supported features constants are combined using the bitwise or (`|`) operator.
|
Supported features are defined by using values in the `ClimateEntityFeature` enum
|
||||||
|
and are combined using the bitwise or (`|`) operator.
|
||||||
|
|
||||||
| Name | Bit value | Description |
|
| Value | Description |
|
||||||
| ---------------------------------- | --- | ------------------------------------------------------------------------------------------- |
|
| -------------------------- | ------------------------------------------------------------------------------------------- |
|
||||||
| `SUPPORT_TARGET_TEMPERATURE` | 1 | The device supports a target temperature. |
|
| `TARGET_TEMPERATURE` | The device supports a target temperature. |
|
||||||
| `SUPPORT_TARGET_TEMPERATURE_RANGE` | 2 | The device supports a ranged target temperature. Used for HVAC modes `heat_cool` and `auto` |
|
| `TARGET_TEMPERATURE_RANGE` | The device supports a ranged target temperature. Used for HVAC modes `heat_cool` and `auto` |
|
||||||
| `SUPPORT_TARGET_HUMIDITY` | 4 | The device supports a target humidity. |
|
| `TARGET_HUMIDITY` | The device supports a target humidity. |
|
||||||
| `SUPPORT_FAN_MODE` | 8 | The device supports fan modes. |
|
| `FAN_MODE` | The device supports fan modes. |
|
||||||
| `SUPPORT_PRESET_MODE` | 16 | The device supports presets. |
|
| `PRESET_MODE` | The device supports presets. |
|
||||||
| `SUPPORT_SWING_MODE` | 32 | The device supports swing modes. |
|
| `SWING_MODE` | The device supports swing modes. |
|
||||||
| `SUPPORT_AUX_HEAT` | 64 | The device supports auxiliary heaters. |
|
| `AUX_HEAT` | The device supports auxiliary heaters. |
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user