docs: def set_motion_detection(self, enabled=1):
          '''
          Get the current config and set the motion detection on or off
          '''
          result, current_config = self.get_motion_detect_config()
          if result != FOSCAM_SUCCESS:
              return result
          current_config['isEnable'] = enabled
          self.set_motion_detect_config(current_config)
          return FOSCAM_SUCCESS