Fix fibaro danfoss
This commit is contained in:
@@ -237,7 +237,7 @@ class FibaroThermostat(FibaroDevice, ClimateEntity):
|
|||||||
def fibaro_op_mode(self):
|
def fibaro_op_mode(self):
|
||||||
"""Return the operating mode of the device."""
|
"""Return the operating mode of the device."""
|
||||||
if not self._op_mode_device:
|
if not self._op_mode_device:
|
||||||
return 3 # Default to AUTO
|
return 1 # Default to HEAT
|
||||||
|
|
||||||
if "operatingMode" in self._op_mode_device.fibaro_device.properties:
|
if "operatingMode" in self._op_mode_device.fibaro_device.properties:
|
||||||
return int(self._op_mode_device.fibaro_device.properties.operatingMode)
|
return int(self._op_mode_device.fibaro_device.properties.operatingMode)
|
||||||
@@ -253,7 +253,7 @@ class FibaroThermostat(FibaroDevice, ClimateEntity):
|
|||||||
def hvac_modes(self):
|
def hvac_modes(self):
|
||||||
"""Return the list of available operation modes."""
|
"""Return the list of available operation modes."""
|
||||||
if not self._op_mode_device:
|
if not self._op_mode_device:
|
||||||
return [HVAC_MODE_AUTO] # Default to this
|
return [HVAC_MODE_HEAT] # Default to this
|
||||||
return self._hvac_support
|
return self._hvac_support
|
||||||
|
|
||||||
def set_hvac_mode(self, hvac_mode):
|
def set_hvac_mode(self, hvac_mode):
|
||||||
@@ -325,7 +325,8 @@ class FibaroThermostat(FibaroDevice, ClimateEntity):
|
|||||||
"""Return the temperature we try to reach."""
|
"""Return the temperature we try to reach."""
|
||||||
if self._target_temp_device:
|
if self._target_temp_device:
|
||||||
device = self._target_temp_device.fibaro_device
|
device = self._target_temp_device.fibaro_device
|
||||||
return float(device.properties.targetLevel)
|
return float(device.properties.value)
|
||||||
|
#return float(device.properties.targetLevel)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def set_temperature(self, **kwargs):
|
def set_temperature(self, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user