code: def setEventCallback(self, callback, bequeath=True, channel=0):
          
          if hasattr(callback, '__call__'):
              if channel == 0:
                  self._eventcallbacks.append(callback)
              elif not bequeath and channel > 0 and channel in self._hmchannels:
                  self._hmchannels[channel]._eventcallbacks.append(callback)
              if bequeath:
                  for channel, device in self._hmchannels.items():
                      device._eventcallbacks.append(callback)
docs: Set additional event callbacks for the device.
          Set the callback for specific channels or use the device itself and let
          it bequeath the callback to all of its children.
          Signature for callback-functions: foo(address, interface_id, key, value)