OpenCloseTrait.GoToOpenPercentageCommand.Request

class OpenCloseTrait.GoToOpenPercentageCommand.Request


The request payload for the GoToOpenPercentage command.

Summary

Public constructors

Request(openPercent: Double, openDirection: OpenCloseTrait.Direction)

Creates a request payload for the GoToOpenPercentage command.

Public properties

OpenCloseTrait.Direction

The direction in which to open.

Double

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

Public constructors

Request

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

Creates a request payload for the GoToOpenPercentage command.

Public properties

openDirection

val openDirectionOpenCloseTrait.Direction

The direction in which to open. Only present if the device supports multiple directions, as indicated by the OpenCloseTrait.Attributes.openDirection attribute, and a direction is specified by the user.

openPercent

val openPercentDouble

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