'Return the value to a given named attribute.'

def value(self, name):

    from knxip.core import KNXException
    addr = None
    for (attributeaddress, attributename) in self.names.items():
        if (attributename == name):
            addr = attributeaddress
    if (addr is None):
        _LOGGER.error("%s:    attribute    '%s'    undefined", self.name, name)
        _LOGGER.debug('%s:    defined    attributes:    %s', self.name, str(self.names))
        return False
    try:
        res = KNXTUNNEL.group_read(addr, use_cache=self.cache)
    except KNXException:
        _LOGGER.exception('%s:    unable    to    read    from    KNX    address:    %s', self.name, addr)
        return False
    return res
