handleCommandClassThermostatMode method

  1. @override
void handleCommandClassThermostatMode(
  1. List<int> data
)

Implementation

@override
void handleCommandClassThermostatMode(List<int> data) {
  switch (data[8]) {
    case THERMOSTAT_MODE_REPORT:
      processedResult<ThermostatModeReport>(
          mode = ThermostatModeReport(data));
      return;
    case THERMOSTAT_MODE_SUPPORTED_REPORT:
      processedResult<ThermostatModeSupportedReport>(
          ThermostatModeSupportedReport(data));
      return;
    default:
      return unhandledCommandClass(COMMAND_CLASS_THERMOSTAT_MODE,
          'COMMAND_CLASS_THERMOSTAT_MODE', data);
  }
}