def METHOD_NAME(self, value):
    """System mode change."""
    if value == 0:
        mode = self.SystemMode.Off
    else:
        mode = self.SystemMode.Heat
    self._update_attribute(self.attributes_by_name["system_mode"].id, mode)