Back to Homebridge

Interface ColorControlState

docs/interfaces/ColorControlState.html

2.0.23.0 KB
Original Source
  • ColorControlState

Interface ColorControlState

ColorControl cluster state Based on @matter/main/clusters ColorControl

Note: We use a flexible interface to accommodate both ColorMode and EnhancedColorMode from Matter.js, which are distinct types in the spec but functionally compatible

interface ColorControlState {
colorMode?: number;
colorTemperatureMireds?: number;
colorTempPhysicalMaxMireds?: number;
colorTempPhysicalMinMireds?: number;
colorX?: number;
colorY?: number;
coupleColorTempToLevelMinMireds?: number;
currentHue?: number;
currentSaturation?: number;
currentX?: number;
currentY?: number;
enhancedColorMode?: number;
enhancedCurrentHue?: number;
options?: number;
transitionTime?: number;
}

Index

Properties

colorMode?colorTemperatureMireds?colorTempPhysicalMaxMireds?colorTempPhysicalMinMireds?colorX?colorY?coupleColorTempToLevelMinMireds?currentHue?currentSaturation?currentX?currentY?enhancedColorMode?enhancedCurrentHue?options?transitionTime?

Properties

OptionalcolorMode

colorMode?: number

OptionalcolorTemperatureMireds

colorTemperatureMireds?: number

OptionalcolorTempPhysicalMaxMireds

colorTempPhysicalMaxMireds?: number

OptionalcolorTempPhysicalMinMireds

colorTempPhysicalMinMireds?: number

OptionalcolorX

colorX?: number

OptionalcolorY

colorY?: number

OptionalcoupleColorTempToLevelMinMireds

coupleColorTempToLevelMinMireds?: number

OptionalcurrentHue

currentHue?: number

OptionalcurrentSaturation

currentSaturation?: number

OptionalcurrentX

currentX?: number

OptionalcurrentY

currentY?: number

OptionalenhancedColorMode

enhancedColorMode?: number

OptionalenhancedCurrentHue

enhancedCurrentHue?: number

Optionaloptions

options?: number

OptionaltransitionTime

transitionTime?: number

Settings

Member Visibility

  • Inherited

ThemeOSLightDark

On This Page

Properties colorModecolorTemperatureMiredscolorTempPhysicalMaxMiredscolorTempPhysicalMinMiredscolorXcolorYcoupleColorTempToLevelMinMiredscurrentHuecurrentSaturationcurrentXcurrentYenhancedColorModeenhancedCurrentHueoptionstransitionTime