EnergyEvseTrait.SetTargetsCommand.Request

class EnergyEvseTrait.SetTargetsCommand.Request : ClusterStruct


The request payload for the SetTargets command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct>
)

Creates a request payload for the SetTargets 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

List<EnergyEvseTrait.ChargingTargetScheduleStruct>

A list of up to seven sets of daily charging targets and their associated days of the week.

Public constructors

Request

Request(
    chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct> = emptyList()
)

Creates a request payload for the SetTargets command.

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

chargingTargetSchedules

val chargingTargetSchedulesList<EnergyEvseTrait.ChargingTargetScheduleStruct>

A list of up to seven sets of daily charging targets and their associated days of the week. Each day of the week can be included in only a single chargingTargetSchedule in this field.