EnergyEvseTrait.EnableChargingCommand.Request

class EnergyEvseTrait.EnableChargingCommand.Request : ClusterStruct


The request payload for the EnableCharging command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    chargingEnabledUntil: UInt?,
    minimumChargeCurrent: Long,
    maximumChargeCurrent: Long
)

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

The time, in UTC, when charging becomes disabled.

Long

The maximum current, in milliamps, that the EVSE can deliver to the electric vehicle.

Long

The minimum current, in milliamps, that the EVSE can deliver to the electric vehicle.

Public constructors

Request

Request(
    chargingEnabledUntil: UInt? = null,
    minimumChargeCurrent: Long = 0,
    maximumChargeCurrent: Long = 0
)

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

chargingEnabledUntil

val chargingEnabledUntilUInt?

The time, in UTC, when charging becomes disabled. If the value is in the past, charging is disabled. If the value is null, charging is permanently enabled.

maximumChargeCurrent

val maximumChargeCurrentLong

The maximum current, in milliamps, that the EVSE can deliver to the electric vehicle.

minimumChargeCurrent

val minimumChargeCurrentLong

The minimum current, in milliamps, that the EVSE can deliver to the electric vehicle.