Command.setHSV constructor
Command.setHSV({})
Command to set color of the device (main light).
hue
- the target hue value. It should be in range from 0 to 359.saturation
- the target saturation value. It should be in range from 0 to 100.effect
- same as in Command.setColorTemperature.duration
- same as in Command.setColorTemperature.
This command is accepted only if the device is in 'ON' state.
Implementation
Command.setHSV({
this.id,
required int hue,
required int saturation,
required String effect,
required int duration,
}) : method = CommandMethods.setHSV,
parameters = <dynamic>[hue, saturation, effect, duration];