'Retrieve latest state.'

def _update_hub(self, now):

    state = self._homematic.getServiceMessages(self._name)
    self._state = (STATE_UNKNOWN if (state is None) else len(state))
    self.schedule_update_ha_state()
