MotionDetectionTrait.MotionDetected

interface MotionDetectionTrait.MotionDetected : ClusterStruct


Proactive notification that occurs when the system detects motion.

Summary

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

Long?

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

Long?

The Unix Epoch timestamp in milliseconds at which motion was first detected.

Long?

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

UInt?

The notification level.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

motionDetectionEndTimestampMillis

val motionDetectionEndTimestampMillisLong?

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

motionDetectionStartTimestampMillis

val motionDetectionStartTimestampMillisLong?

The Unix Epoch timestamp in milliseconds at which motion was first detected.

motionDetectionTimestampSeconds

val motionDetectionTimestampSecondsLong?

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

priority

val priorityUInt?

The notification level. The currently supported value is 0, which indicates that the notification should be spoken.