main.js
function AddDetectorToSubEnvironmentOnly (detector, force = false, subEnvironment) {
  return em.AddDetectorToSubEnvironmentOnly(detector, force, subEnvironment)
}
function AddDetectorToSubEnvironmentOnly (detector, force = false, subEnvironment) {
  return em.AddDetectorToSubEnvironmentOnly(detector, force, subEnvironment)
}
function AddDetectorToSubEnvironmentOnly ( detector , force = false , subEnvironment ) { return em . AddDetectorToSubEnvironmentOnly ( detector , force , subEnvironment ) }
Adds a detector to a SubEnvironment. Assumes that the main Environment is a MultiEnvironment.
@param {object} detector is the MotionDetector object to add.
@param {boolean} force can be set to true to push the detector even if not of {MotionDetector} instance
@param {string} subEnvironment is the Environment to add  to, within the MultiEnvironment
@returns {Boolean} true if the detector is successfully created.
@public
Adds a detector to a SubEnvironment . Assumes that the main Environment is a MultiEnvironment .