OpenCloseTrait.DirectionOpenState

class OpenCloseTrait.DirectionOpenState : ClusterStruct


Current state for the given open direction.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

DirectionOpenState(
    openPercent: Double,
    openDirection: OpenCloseTrait.Direction,
    targetOpenPercent: Double
)

Creates the DirectionOpenState class.

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

OpenCloseTrait.Direction

The direction in which the device is opened.

Double

Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open.

Double

Public constructors

DirectionOpenState

DirectionOpenState(
    openPercent: Double = 0.0,
    openDirection: OpenCloseTrait.Direction = Direction.Unspecified,
    targetOpenPercent: Double = 0.0
)

Creates the DirectionOpenState class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

openDirection

val openDirectionOpenCloseTrait.Direction

The direction in which the device is opened.

openPercent

val openPercentDouble

Indicates the percentage that a device is opened, where 0 is closed and 100 is fully open.

targetOpenPercent

val targetOpenPercentDouble