'Load first value from pyhomematic.'

def _load_data_from_hm(self):

    if (not self._connected):
        return False
    for (metadata, funct) in ((self._hmdevice.ATTRIBUTENODE, self._hmdevice.getAttributeData), (self._hmdevice.WRITENODE, self._hmdevice.getWriteData), (self._hmdevice.SENSORNODE, self._hmdevice.getSensorData), (self._hmdevice.BINARYNODE, self._hmdevice.getBinaryData)):
        for node in metadata:
            if (metadata[node] and (node in self._data)):
                self._data[node] = funct(name=node, channel=self._channel)
    return True
