LightState class abstract

Constructors

LightState([dynamic updates(LightStateBuilder b)])
factory
LightState.fromJson(Map json)
factory

Properties

alert String?
The alert effect, which is a temporary change to the bulb’s state. This can take one of the following values:
no setter
brightness int?
Brightness of the light. This is a scale from the minimum brightness the light is capable of, 1, to the maximum capable brightness, 254.
no setter
colorMode String?
Indicates the color mode in which the light is working, this is the last command type it received. Values are “hs” for Hue and Saturation, “xy” for XY and “ct” for Color Temperature. This parameter is only present when the light supports at least one of the values.
no setter
ct int?
The Mired Color temperature of the light. 2012 connected lights are capable of 153 (6500K) to 500 (2000K).
no setter
effect String?
The dynamic effect of the light, can either be “none” or “colorloop”. If set to colorloop, the light will cycle through all hues using the current brightness and saturation settings.
no setter
hashCode int
The hash code for this object.
no setterinherited
hue int?
Hue of the light. This is a wrapping value between 0 and 65535. Both 0 and 65535 are red, 25500 is green and 46920 is blue.
no setter
mode String?
no setter
on bool?
On/Off state of the light. On=true, Off=false.
no setter
reachable bool?
Indicates if a light can be reached by the bridge.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturation int?
Saturation of the light. 254 is the most saturated (colored) and 0 is the least saturated (white).
no setter
xy → BuiltList<num>?
The x,y coordinate of a color in CIE color space.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(LightStateBuilder)) LightState
Rebuilds the instance.
inherited
toBridgeObject({String? action}) Map
toBuilder() LightStateBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<LightState>
no setter