View Source
Yeelight.FlowExpression.ColorTemperature
(yeelight v0.2.0)
color_flow = [
%Yeelight.FlowExpression.ColorTemperature{
duration: 1000,
temperature: 6500,
brightness: 100
},
%Yeelight.FlowExpression.ColorTemperature{
duration: 1000,
temperature: 1800,
brightness: 100
}
]
Yeelight.Command.start_color_flow(6, 0, color_flow)
|> Yeelight.Command.send_to(hd(devices))
@type t() :: %Yeelight.FlowExpression.ColorTemperature{
brightness: integer(),
duration: integer(),
temperature: integer()
}