'Connect to HomeMatic.'

def link_homematic(self):

    if self._connected:
        return True
    self._hmdevice = self._homematic.devices[self._proxy][self._address]
    self._connected = True
    try:
        self._init_data()
        if self.hass.data[DATA_DELAY]:
            time.sleep(self.hass.data[DATA_DELAY])
        self._load_data_from_hm()
        self._subscribe_homematic_events()
        self._available = (not self._hmdevice.UNREACH)
    except Exception as err:
        self._connected = False
        _LOGGER.error('Exception    while    linking    %s:    %s', self._address, str(err))
