'Handle all pyhomematic device events.'

def _hm_event_callback(self, device, caller, attribute, value):

    _LOGGER.debug("%s    received    event    '%s'    value:    %s", self._name, attribute, value)
    has_changed = False
    if (attribute in self._data):
        if (self._data[attribute] != value):
            self._data[attribute] = value
            has_changed = True
    if (attribute == 'UNREACH'):
        self._available = bool(value)
        has_changed = True
    if has_changed:
        self.schedule_update_ha_state()
