ExtendedOperationalStateTrait.StartWithDurationCommand.Request

class ExtendedOperationalStateTrait.StartWithDurationCommand.Request : ClusterStruct


The request payload for the StartWithDuration command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(operationZones: List<String>, durationSeconds: UInt)

Creates a request payload for the StartWithDuration command.

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

UInt

Indicates how long the action should run, in seconds.

List<String>

Indicates one or more zones in which to start running.

Public constructors

Request

Request(operationZones: List<String> = emptyList(), durationSeconds: UInt)

Creates a request payload for the StartWithDuration command.

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

durationSeconds

val durationSecondsUInt

Indicates how long the action should run, in seconds. Must be between minimum and maximum operation duration supported by the device.

operationZones

val operationZonesList<String>

Indicates one or more zones in which to start running.