Command.setAdjust constructor

Command.setAdjust({
  1. int? id,
  2. required String action,
  3. required String property,
})

Command to change brightness, color temperature or color without knowing current value (main light).

  • action

    • 'increase' - increase the specified property
    • 'decrease' - decrease the specified property
    • 'circle' - increase the specified property, after it reaches the max value go back to minimum value.
  • property

    • 'bright' - adjust brightness
    • 'ct' - adjust color temperature
    • 'color' - adjust color

When property is 'color', the action can be only 'circle'.

Implementation

Command.setAdjust({
  this.id,
  required String action,
  required String property,
})  : method = CommandMethods.setAdjust,
      parameters = <String>[action, property];