ThermostatTrait.PresetTypeStruct

class ThermostatTrait.PresetTypeStruct


A preset type.

Summary

Public constructors

PresetTypeStruct(
    presetScenario: ThermostatTrait.PresetScenarioEnum,
    numberOfPresets: UByte,
    presetTypeFeatures: ThermostatTrait.PresetTypeFeaturesBitmap
)

Creates the PresetTypeStruct class.

Public properties

UByte

The limit for the number of presets for this PresetScenarioEnum.

ThermostatTrait.PresetScenarioEnum

A PresetScenarioEnum supported by this thermostat.

ThermostatTrait.PresetTypeFeaturesBitmap

A bitmap of features for this preset.

Public constructors

PresetTypeStruct

PresetTypeStruct(
    presetScenario: ThermostatTrait.PresetScenarioEnum = PresetScenarioEnum.Occupied,
    numberOfPresets: UByte,
    presetTypeFeatures: ThermostatTrait.PresetTypeFeaturesBitmap = PresetTypeFeaturesBitmap()
)

Creates the PresetTypeStruct class.

Public properties

numberOfPresets

val numberOfPresetsUByte

The limit for the number of presets for this PresetScenarioEnum.

presetScenario

val presetScenarioThermostatTrait.PresetScenarioEnum

A PresetScenarioEnum supported by this thermostat.

presetTypeFeatures

val presetTypeFeaturesThermostatTrait.PresetTypeFeaturesBitmap

A bitmap of features for this preset.