setMode static method

Future<void> setMode(
  1. Request request,
  2. String id,
  3. GThermostatMode mode
)

Implementation

static Future<void> setMode(
    Request request, String id, GThermostatMode mode) async {
  final req = GmakeSetModeRequest((b) {
    b..vars.deviceId = id;
    b..vars.mode = mode;
  });
  Repository().mutate(request, req.operation, req.vars.toJson());
}