MotionDetection

@Generated(value = ["GoogleHomePlatformCodegen"])
interface MotionDetection : MotionDetectionTrait.Attributes, MatterTrait


API for the MotionDetection trait. This trait supports detecting motion.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public functions

Boolean

Public properties

open TraitFactory<MotionDetection>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.google.MotionDetectionTrait.Attributes
List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

UShort

The revision of the server cluster specification supported by the cluster instance.

MotionDetectionTrait.MotionDetectionFeature

Whether the server supports zero or more optional cluster features.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

Long?

The Unix Epoch timestamp in seconds at which a motion event last ended, which occurs when the MotionDetectionTrait.Feature.supportsMotionDetectionEventInProgress feature flag becomes false.

Long?

The Unix Epoch timestamp in seconds at which a motion event last started, which occurs when the MotionDetectionTrait.Feature.supportsMotionDetectionEventInProgress feature flag becomes true.

Boolean?

Whether or not a motion detection event is in progress.

Long?

The Unix Epoch timestamp in seconds at which motion was last detected.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: MotionDetection.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<MotionDetection>