return None
set_point_mode = self._data.get("SET_POINT_MODE", -1)
control_mode = self._data.get("CONTROL_MODE", -1)
boost_mode = self._data.get("BOOST_MODE", False)
// boost mode is active
if boost_mode:
return STATE_BOOST
// HM ip etrv 2 uses the set_point_mode to say if its
// auto or manual
elif not set_point_mode == -1:
code = set_point_mode
// Other devices use the control_mode
else:
code = control_mode
// get the name of the mode
name = HM_ATTRIBUTE_SUPPORT[HM_CONTROL_MODE][1][code]
return name.lower()