mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add fan mode
This commit is contained in:
parent
d6bff7dcaf
commit
d8d0a7d0b3
@ -252,7 +252,7 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
||||
# Determine fan modes
|
||||
self._fan_mode_dp_code: str | None = None
|
||||
if enum_type := self.find_dpcode(
|
||||
(DPCode.FAN_SPEED_ENUM, DPCode.WINDSPEED),
|
||||
(DPCode.FAN_SPEED_ENUM, DPCode.WINDSPEED, DPCode.LEVEL),
|
||||
dptype=DPType.ENUM,
|
||||
prefer_function=True,
|
||||
):
|
||||
|
@ -80,6 +80,12 @@
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'fan_modes': list([
|
||||
'low',
|
||||
'middle',
|
||||
'high',
|
||||
'auto',
|
||||
]),
|
||||
'hvac_modes': list([
|
||||
<HVACMode.OFF: 'off'>,
|
||||
<HVACMode.COOL: 'cool'>,
|
||||
@ -112,7 +118,7 @@
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': <ClimateEntityFeature: 385>,
|
||||
'supported_features': <ClimateEntityFeature: 393>,
|
||||
'translation_key': None,
|
||||
'unique_id': 'tuya.bf6fc1645146455a2efrex',
|
||||
'unit_of_measurement': None,
|
||||
@ -122,6 +128,13 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'current_temperature': 27.0,
|
||||
'fan_mode': 'auto',
|
||||
'fan_modes': list([
|
||||
'low',
|
||||
'middle',
|
||||
'high',
|
||||
'auto',
|
||||
]),
|
||||
'friendly_name': 'Clima cucina',
|
||||
'hvac_modes': list([
|
||||
<HVACMode.OFF: 'off'>,
|
||||
@ -130,7 +143,7 @@
|
||||
]),
|
||||
'max_temp': 35.0,
|
||||
'min_temp': 5.0,
|
||||
'supported_features': <ClimateEntityFeature: 385>,
|
||||
'supported_features': <ClimateEntityFeature: 393>,
|
||||
'target_temp_step': 1.0,
|
||||
'temperature': 25.0,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user