Class ColorFlow
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
A colour flow: a series of changes of colour, colour temperature and brightness (and pauses) that a light runs by itself.
public sealed class ColorFlow
- Inheritance
-
ColorFlow
- Inherited Members
Remarks
This is the most powerful command of a Yeelight light: with the steps of a flow a light can be "programmed". The steps run in a circle, and the flow ends after Count visible state changes (never, when that is zero), and then does what Action says. Start a flow with StartColorFlowAsync(ColorFlow, CancellationToken).
Constructors
- ColorFlow(IEnumerable<ColorFlowStep>, int, ColorFlowAction)
Initializes a new instance of the ColorFlow class.
Properties
- Action
Gets what the light does when the flow has ended.
- Count
Gets the number of visible state changes before the flow ends, or
0for a flow that never ends.
- Steps
Gets the steps of the flow.
Methods
- ToString()
Gets the flow as text, in the form that TryParse(string?, out ColorFlow?) reads.
- TryParse(string?, out ColorFlow?)
Reads a flow as a light reports it in FlowParameters: the count, the action, and the four numbers of every step.