'Initialize a generic HomeMatic device.'

def __init__(self, hass, config):

    self.hass = hass
    self._homematic = hass.data[DATA_HOMEMATIC]
    self._name = config.get(ATTR_NAME)
    self._address = config.get(ATTR_ADDRESS)
    self._proxy = config.get(ATTR_PROXY)
    self._channel = config.get(ATTR_CHANNEL)
    self._state = config.get(ATTR_PARAM)
    self._data = {}
    self._hmdevice = None
    self._connected = False
    self._available = False
    if self._state:
        self._state = self._state.upper()
