Interface MotionSensor
- All Superinterfaces:
Device
- All Known Implementing Classes:
MotionSensorImpl
public interface MotionSensor extends Device
A physical motion detector.
-
Method Summary
Modifier and Type Method Description ZonedDateTimegetLastChanged()The last time there was any change to the motion status.booleanisMotion()Whether motion has been detected.
-
Method Details
-
isMotion
boolean isMotion()Whether motion has been detected.- Returns:
trueif motion detected,falseif not.
-
getLastChanged
ZonedDateTime getLastChanged()The last time there was any change to the motion status.- Returns:
- Timestamp.
-