code: def initialize(self):
          
          device_info = self.get_device_info()
  
          if device_info is None:
              self.name = None
              self.cam_id = None
              self.event_states = None
              return
  
          for key in device_info:
              if key == 'deviceName':
                  self.name = device_info[key]
              elif key == 'deviceID':
                  if len(device_info[key]) > 10:
                      self.cam_id = device_info[key]
                  else:
                      self.cam_id = uuid.uuid4()
  
          events_available = self.get_event_triggers()
          if events_available:
              for event, channel_list in events_available.items():
                  for channel in channel_list:
                      try:
                          self.event_states.setdefault(
                              SENSOR_MAP[event.lower()], []).append(
                                  [False, channel, 0, datetime.datetime.now()])
                      except KeyError:
                          # Sensor type doesn't have a known friendly name
                          # We can't reliably handle it at this time...
                          _LOGGING.warning(
                              'Sensor type "%s" is unsupported.', event)
  
              _LOGGING.debug('Initialized Dictionary: %s', self.event_states)
          else:
              _LOGGING.debug('No Events available in dictionary.')
  
          self.get_motion_detection()
docs: Initialize deviceInfo and available events.