bwarden
(Brett T. Warden)
June 4, 2019, 8:07pm
1
The upstream module for Honeywell (US) Climate support, somecomfort
, includes the ability to set fan_mode. I trivially enabled (and successfully tested) it by adding this to components/honeywell/climate.py
, in class HoneywellUSThermostat
:
def set_fan_mode(self, fan_mode: str) -> None:
"""Set fan mode."""
if hasattr(self._device, ATTR_FAN_MODE):
self._device.fan_mode = fan_mode
bwarden
(Brett T. Warden)
June 10, 2019, 6:39pm
2
As a patch, with some additional required changes:
--- homeassistant/components/honeywell/climate.py 2019-06-07 23:47:09.000000000 -0700
+++ /usr/local/lib/python3.6/dist-packages/homeassistant/components/honeywell/climate.py 2019-06-10 11:24:55.198405091 -0700
@@ -10,7 +10,7 @@ from homeassistant.components.climate im
from homeassistant.components.climate.const import (
ATTR_FAN_MODE, ATTR_FAN_LIST,
ATTR_OPERATION_MODE, ATTR_OPERATION_LIST, SUPPORT_TARGET_TEMPERATURE,
- SUPPORT_AWAY_MODE, SUPPORT_OPERATION_MODE)
+ SUPPORT_AWAY_MODE, SUPPORT_FAN_MODE, SUPPORT_OPERATION_MODE)
from homeassistant.const import (
CONF_PASSWORD, CONF_USERNAME, TEMP_CELSIUS, TEMP_FAHRENHEIT,
ATTR_TEMPERATURE, CONF_REGION)
@@ -249,6 +249,8 @@ class HoneywellUSThermostat(ClimateDevic
supported = (SUPPORT_TARGET_TEMPERATURE | SUPPORT_AWAY_MODE)
if hasattr(self._device, ATTR_SYSTEM_MODE):
supported |= SUPPORT_OPERATION_MODE
+ if hasattr(self._device, ATTR_FAN_MODE):
+ supported |= SUPPORT_FAN_MODE
return supported
@property
@@ -383,6 +385,11 @@ class HoneywellUSThermostat(ClimateDevic
if hasattr(self._device, ATTR_SYSTEM_MODE):
self._device.system_mode = operation_mode
+ def set_fan_mode(self, fan_mode: str) -> None:
+ """Set the fan mode."""
+ if hasattr(self._device, ATTR_FAN_MODE):
+ self._device.fan_mode = fan_mode
+
def update(self):
"""Update the state."""
import somecomfort
bwarden
(Brett T. Warden)
July 18, 2019, 8:47pm
3
Looks like this was accomplished (with a better implementation) in:
home-assistant:climate-1.0
← zxdavb:migrate_honeywell
opened 04:38PM - 02 Jun 19 UTC