code: def motionDetected(self, home=None, camera=None):
          
          try:
              cam_id = self.cameraByName(camera=camera, home=home)['id']
          except TypeError:
              logger.warning("personSeenByCamera: Camera name or home is unknown")
              return False
          if self.lastEvent[cam_id]['type'] == 'movement':
              return True
          return False
docs: Return True if movement has been detected