Movement

data class Movement(val movementSensitivityThreshold: Int, val noMovementSensitivityThreshold: Int, val movementConsecutiveMeasurementPeriods: Int, val noMovementConsecutiveMeasurementPeriods: Int, val isLogicReversed: Boolean, val isOutputLogicReversed: Boolean, val debounceTime: Int?) : CalibrationParameters

Represents calibration parameters for a SensorModel.MOTION_SENSOR sensor.

Constructors

Link copied to clipboard
constructor(movementSensitivityThreshold: Int, noMovementSensitivityThreshold: Int, movementConsecutiveMeasurementPeriods: Int, noMovementConsecutiveMeasurementPeriods: Int, isLogicReversed: Boolean, isOutputLogicReversed: Boolean, debounceTime: Int?)

Properties

Link copied to clipboard

The debounce time in ms or null if not available. State changes of shorter duration are ignored. 0 if disabled. Range 1 : 65535.

Link copied to clipboard

Indicates if the pulse logic is reversed for the motion sensor.

Link copied to clipboard

Indicates if the output logic is reversed.

Link copied to clipboard

TThe minimum number of consecutive periods of movement to return 'movement' state. Range 1 : 65535

Link copied to clipboard

The minimum number of detections to mark the interval as 'movement detected'. Range 1 : 65535 Must be greater than noMovementSensitivityThreshold.

Link copied to clipboard

The minimum number of consecutive periods of movement to return 'no movement' state. Range 1 : 65535

Link copied to clipboard

The minimum number of detections to mark the interval as 'no movement detected'. Range 1 : 65535 Must be less than movementSensitivityThreshold.