Class LightState
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Represents normalized light state for bulbs and light strips.
public sealed class LightState
- Inheritance
-
LightState
- Inherited Members
Properties
ActivePreset
Gets the active light preset name when the current state matches one.
public string? ActivePreset { get; }
Property Value
AvailablePresets
Gets the named light presets reported by the device.
public IReadOnlyList<LightPresetDefinition> AvailablePresets { get; }
Property Value
Brightness
Gets the brightness percentage.
public int? Brightness { get; }
Property Value
- int?
ColorTemperature
Gets the color temperature in kelvin.
public int? ColorTemperature { get; }
Property Value
- int?
Effect
Gets the normalized light effect state when the device exposes one.
public LightEffectState? Effect { get; }
Property Value
Hsv
Gets the normalized HSV color when color information is available.
public HsvColor? Hsv { get; }
Property Value
Hue
Gets the hue component.
public int? Hue { get; }
Property Value
- int?
IsOn
Gets a value indicating whether the light is on.
public bool? IsOn { get; }
Property Value
- bool?
RawJson
Gets the raw JSON payload returned by the device.
public string RawJson { get; }
Property Value
Saturation
Gets the saturation component.
public int? Saturation { get; }
Property Value
- int?
SupportsEffects
Gets a value indicating whether the device reports light-effect capability.
public bool SupportsEffects { get; }