requestFanState method

Future<ThermostatFanStateReport> requestFanState()

Implementation

Future<ThermostatFanStateReport> requestFanState() {
  return commandHandler!.request(ZwRequest(
      logger,
      id,
      buildSendDataRequest(id, [
        COMMAND_CLASS_THERMOSTAT_FAN_STATE,
        THERMOSTAT_FAN_STATE_GET,
      ]),
      processResponse: (data) => fanState = ThermostatFanStateReport(data),
      resultKey: ThermostatFanStateReport));
}