code: def set_motion_detect(self, enable):
          
          if enable:
              return api.request_motion_detection_enable(self.sync.blink,
                                                         self.network_id,
                                                         self.camera_id)
          return api.request_motion_detection_disable(self.sync.blink,
                                                      self.network_id,
                                                      self.camera_id)
docs: Set motion detection.