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
    ZonedDateTime getLastChanged()
    The last time there was any change to the motion status.
    boolean isMotion()
    Whether motion has been detected.

    Methods inherited from interface io.github.zeroone3010.yahueapi.v2.Device

    getId, getName
  • Method Details

    • isMotion

      boolean isMotion()
      Whether motion has been detected.
      Returns:
      true if motion detected, false if not.
    • getLastChanged

      ZonedDateTime getLastChanged()
      The last time there was any change to the motion status.
      Returns:
      Timestamp.