io.github.zeroone3010.yahueapi.v2.MotionSensor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
The newest version!
package io.github.zeroone3010.yahueapi.v2;
import java.time.ZonedDateTime;
/**
* A physical motion detector.
*/
public interface MotionSensor extends Device {
/**
* Whether motion has been detected.
*
* @return {@code true} if motion detected, {@code false} if not.
*/
boolean isMotion();
/**
* The last time there was any change to the motion status.
* @return Timestamp.
*/
ZonedDateTime getLastChanged();
}