ThermostatTrait.WeeklyScheduleTransitionStruct

class ThermostatTrait.WeeklyScheduleTransitionStruct : ClusterStruct


A single transition in a thermostat schedule.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

WeeklyScheduleTransitionStruct(
    transitionTime: UShort,
    heatSetpoint: Short?,
    coolSetpoint: Short?
)

Creates the WeeklyScheduleTransitionStruct 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

Short?

The cooling setpoint applied at the transition time.

Short?

The heating setpoint applied at the transition time.

UShort

The start time of the schedule transition, expressed as the minutes since midnight.

Public constructors

WeeklyScheduleTransitionStruct

WeeklyScheduleTransitionStruct(
    transitionTime: UShort,
    heatSetpoint: Short? = null,
    coolSetpoint: Short? = null
)

Creates the WeeklyScheduleTransitionStruct class.

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

coolSetpoint

val coolSetpointShort?

The cooling setpoint applied at the transition time.

heatSetpoint

val heatSetpointShort?

The heating setpoint applied at the transition time.

transitionTime

val transitionTimeUShort

The start time of the schedule transition, expressed as the minutes since midnight. For example, 360 means 6:00am, and 1410 means 11:30pm.