Skip to content

Commit 747c17a

Browse files
committed
- Fixed manual fan speed going to back to off after a read (#20)
1 parent 651c419 commit 747c17a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

custom_components/systemair/climate.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def __init__(self, coordinator: SystemairDataUpdateCoordinator) -> None:
134134
@property
135135
def hvac_mode(self) -> HVACMode:
136136
"""Return hvac operation ie. heat, cool mode."""
137-
fans_running = self.coordinator.get_modbus_data(parameter_map["REG_SPEED_FANS_RUNNING"])
138-
if not fans_running:
137+
fan_speed = self.coordinator.get_modbus_data(parameter_map["REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF"])
138+
if fan_speed == 0:
139139
return HVACMode.OFF
140140

141141
heater = self.coordinator.get_modbus_data(parameter_map["REG_FUNCTION_ACTIVE_HEATER"])
@@ -236,9 +236,6 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:
236236
@property
237237
def fan_mode(self) -> str | None:
238238
"""Return the current fan mode."""
239-
fans_running = self.coordinator.get_modbus_data(parameter_map["REG_SPEED_FANS_RUNNING"])
240-
if not fans_running:
241-
return FAN_OFF
242239
mode = int(self.coordinator.get_modbus_data(parameter_map["REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF"]))
243240
return VALUE_TO_FAN_MODE_MAP.get(mode, FAN_LOW)
244241

custom_components/systemair/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"aiohttp",
1616
"async-timeout"
1717
],
18-
"version": "1.0.19"
18+
"version": "1.0.20"
1919
}

0 commit comments

Comments
 (0)