Table of Contents

Method ColorTemperature

Namespace
Yeelight
Assembly
YeelightClient.dll

ColorTemperature(int, TimeSpan, int?)

Makes a step that changes the colour temperature.

public static ColorFlowStep ColorTemperature(int kelvin, TimeSpan duration, int? brightness = null)

Parameters

kelvin int

The colour temperature, 1700 to 6500.

duration TimeSpan

How long the change takes, at least MinFlowStep.

brightness int?

The brightness to change to, 1 to 100, or null to leave it as it is.

Returns

ColorFlowStep

The step.

Exceptions

ArgumentOutOfRangeException

An argument is out of the range that the protocol allows.