dispatchApplicationCommand method

T? dispatchApplicationCommand(
  1. List<int> data
)
inherited

Implementation

T? dispatchApplicationCommand(List<int> data) {
  switch (data[7]) {
    case /* 0x00 */ COMMAND_CLASS_NO_OPERATION:
      return handleCommandClassNoOperation(data);
    case /* 0x20 */ COMMAND_CLASS_BASIC:
      return handleCommandClassBasic(data);
    case /* 0x21 */ COMMAND_CLASS_CONTROLLER_REPLICATION:
      return handleCommandClassControllerReplication(data);
    case /* 0x22 */ COMMAND_CLASS_APPLICATION_STATUS:
      return handleCommandClassApplicationStatus(data);
    case /* 0x23 */ COMMAND_CLASS_ZIP:
      return handleCommandClassZip(data);
    case /* 0x25 */ COMMAND_CLASS_SWITCH_BINARY:
      return handleCommandClassSwitchBinary(data);
    case /* 0x26 */ COMMAND_CLASS_SWITCH_MULTILEVEL:
      return handleCommandClassSwitchMultilevel(data);
    case /* 0x27 */ COMMAND_CLASS_SWITCH_ALL:
      return handleCommandClassSwitchAll(data);
    case /* 0x28 */ COMMAND_CLASS_SWITCH_TOGGLE_BINARY:
      return handleCommandClassSwitchToggleBinary(data);
    case /* 0x29 */ COMMAND_CLASS_SWITCH_TOGGLE_MULTILEVEL:
      return handleCommandClassSwitchToggleMultilevel(data);
    case /* 0x2B */ COMMAND_CLASS_SCENE_ACTIVATION:
      return handleCommandClassSceneActivation(data);
    case /* 0x2C */ COMMAND_CLASS_SCENE_ACTUATOR_CONF:
      return handleCommandClassSceneActuatorConf(data);
    case /* 0x2D */ COMMAND_CLASS_SCENE_CONTROLLER_CONF:
      return handleCommandClassSceneControllerConf(data);
    case /* 0x30 */ COMMAND_CLASS_SENSOR_BINARY:
      return handleCommandClassSensorBinary(data);
    case /* 0x31 */ COMMAND_CLASS_SENSOR_MULTILEVEL:
      return handleCommandClassSensorMultilevel(data);
    case /* 0x32 */ COMMAND_CLASS_METER:
      return handleCommandClassMeter(data);
    case /* 0x33 */ COMMAND_CLASS_SWITCH_COLOR:
      return handleCommandClassSwitchColor(data);
    case /* 0x34 */ COMMAND_CLASS_NETWORK_MANAGEMENT_INCLUSION:
      return handleCommandClassNetworkManagementInclusion(data);
    case /* 0x35 */ COMMAND_CLASS_METER_PULSE:
      return handleCommandClassMeterPulse(data);
    case /* 0x36 */ COMMAND_CLASS_BASIC_TARIFF_INFO:
      return handleCommandClassBasicTariffInfo(data);
    case /* 0x37 */ COMMAND_CLASS_HRV_STATUS:
      return handleCommandClassHrvStatus(data);
    case /* 0x39 */ COMMAND_CLASS_HRV_CONTROL:
      return handleCommandClassHrvControl(data);
    case /* 0x3A */ COMMAND_CLASS_DCP_CONFIG:
      return handleCommandClassDcpConfig(data);
    case /* 0x3B */ COMMAND_CLASS_DCP_MONITOR:
      return handleCommandClassDcpMonitor(data);
    case /* 0x3C */ COMMAND_CLASS_METER_TBL_CONFIG:
      return handleCommandClassMeterTblConfig(data);
    case /* 0x3D */ COMMAND_CLASS_METER_TBL_MONITOR:
      return handleCommandClassMeterTblMonitor(data);
    case /* 0x3E */ COMMAND_CLASS_METER_TBL_PUSH:
      return handleCommandClassMeterTblPush(data);
    case /* 0x3F */ COMMAND_CLASS_PREPAYMENT:
      return handleCommandClassPrepayment(data);
    case /* 0x40 */ COMMAND_CLASS_THERMOSTAT_MODE:
      return handleCommandClassThermostatMode(data);
    case /* 0x41 */ COMMAND_CLASS_PREPAYMENT_ENCAPSULATION:
      return handleCommandClassPrepaymentEncapsulation(data);
    case /* 0x42 */ COMMAND_CLASS_THERMOSTAT_OPERATING_STATE:
      return handleCommandClassThermostatOperatingState(data);
    case /* 0x43 */ COMMAND_CLASS_THERMOSTAT_SETPOINT:
      return handleCommandClassThermostatSetpoint(data);
    case /* 0x44 */ COMMAND_CLASS_THERMOSTAT_FAN_MODE:
      return handleCommandClassThermostatFanMode(data);
    case /* 0x45 */ COMMAND_CLASS_THERMOSTAT_FAN_STATE:
      return handleCommandClassThermostatFanState(data);
    case /* 0x46 */ COMMAND_CLASS_CLIMATE_CONTROL_SCHEDULE:
      return handleCommandClassClimateControlSchedule(data);
    case /* 0x47 */ COMMAND_CLASS_THERMOSTAT_SETBACK:
      return handleCommandClassThermostatSetback(data);
    case /* 0x48 */ COMMAND_CLASS_RATE_TBL_CONFIG:
      return handleCommandClassRateTblConfig(data);
    case /* 0x49 */ COMMAND_CLASS_RATE_TBL_MONITOR:
      return handleCommandClassRateTblMonitor(data);
    case /* 0x4A */ COMMAND_CLASS_TARIFF_CONFIG:
      return handleCommandClassTariffConfig(data);
    case /* 0x4B */ COMMAND_CLASS_TARIFF_TBL_MONITOR:
      return handleCommandClassTariffTblMonitor(data);
    case /* 0x4C */ COMMAND_CLASS_DOOR_LOCK_LOGGING:
      return handleCommandClassDoorLockLogging(data);
    case /* 0x4D */ COMMAND_CLASS_NETWORK_MANAGEMENT_BASIC:
      return handleCommandClassNetworkManagementBasic(data);
    case /* 0x4E */ COMMAND_CLASS_SCHEDULE_ENTRY_LOCK:
      return handleCommandClassScheduleEntryLock(data);
    case /* 0x4F */ COMMAND_CLASS_ZIP_6LOWPAN:
      return handleCommandClassZip6lowpan(data);
    case /* 0x50 */ COMMAND_CLASS_BASIC_WINDOW_COVERING:
      return handleCommandClassBasicWindowCovering(data);
    case /* 0x51 */ COMMAND_CLASS_MTP_WINDOW_COVERING:
      return handleCommandClassMtpWindowCovering(data);
    case /* 0x52 */ COMMAND_CLASS_NETWORK_MANAGEMENT_PROXY:
      return handleCommandClassNetworkManagementProxy(data);
    case /* 0x53 */ COMMAND_CLASS_SCHEDULE:
      return handleCommandClassSchedule(data);
    case /* 0x54 */ COMMAND_CLASS_NETWORK_MANAGEMENT_PRIMARY:
      return handleCommandClassNetworkManagementPrimary(data);
    case /* 0x55 */ COMMAND_CLASS_TRANSPORT_SERVICE:
      return handleCommandClassTransportService(data);
    case /* 0x56 */ COMMAND_CLASS_CRC_16_ENCAP:
      return handleCommandClassCrc16Encap(data);
    case /* 0x57 */ COMMAND_CLASS_APPLICATION_CAPABILITY:
      return handleCommandClassApplicationCapability(data);
    case /* 0x58 */ COMMAND_CLASS_ZIP_ND:
      return handleCommandClassZipNd(data);
    case /* 0x59 */ COMMAND_CLASS_ASSOCIATION_GRP_INFO:
      return handleCommandClassAssociationGrpInfo(data);
    case /* 0x5A */ COMMAND_CLASS_DEVICE_RESET_LOCALLY:
      return handleCommandClassDeviceResetLocally(data);
    case /* 0x5B */ COMMAND_CLASS_CENTRAL_SCENE:
      return handleCommandClassCentralScene(data);
    case /* 0x5C */ COMMAND_CLASS_IP_ASSOCIATION:
      return handleCommandClassIpAssociation(data);
    case /* 0x5D */ COMMAND_CLASS_ANTITHEFT:
      return handleCommandClassAntitheft(data);
    case /* 0x5E */ COMMAND_CLASS_ZWAVEPLUS_INFO:
      return handleCommandClassZwaveplusInfo(data);
    case /* 0x5F */ COMMAND_CLASS_ZIP_GATEWAY:
      return handleCommandClassZipGateway(data);
    case /* 0x60 */ COMMAND_CLASS_MULTI_CHANNEL:
      return handleCommandClassMultiChannel(data);
    case /* 0x61 */ COMMAND_CLASS_ZIP_PORTAL:
      return handleCommandClassZipPortal(data);
    case /* 0x62 */ COMMAND_CLASS_DOOR_LOCK:
      return handleCommandClassDoorLock(data);
    case /* 0x63 */ COMMAND_CLASS_USER_CODE:
      return handleCommandClassUserCode(data);
    case /* 0x64 */ COMMAND_CLASS_HUMIDITY_CONTROL_SETPOINT:
      return handleCommandClassHumidityControlSetpoint(data);
    case /* 0x66 */ COMMAND_CLASS_BARRIER_OPERATOR:
      return handleCommandClassBarrierOperator(data);
    case /* 0x67 */ NETWORK_MANAGEMENT_INSTALLATION_MAINTENANCE:
      return handleNetworkManagementInstallationMaintenance(data);
    case /* 0x68 */ COMMAND_CLASS_ZIP_NAMING:
      return handleCommandClassZipNaming(data);
    case /* 0x69 */ COMMAND_CLASS_MAILBOX:
      return handleCommandClassMailbox(data);
    case /* 0x6A */ COMMAND_CLASS_WINDOW_COVERING:
      return handleCommandClassWindowCovering(data);
    case /* 0x6B */ COMMAND_CLASS_IRRIGATION:
      return handleCommandClassIrrigation(data);
    case /* 0x6C */ COMMAND_CLASS_SUPERVISION:
      return handleCommandClassSupervision(data);
    case /* 0x6D */ COMMAND_CLASS_HUMIDITY_CONTROL_MODE:
      return handleCommandClassHumidityControlMode(data);
    case /* 0x6E */ COMMAND_CLASS_HUMIDITY_CONTROL_OPERATING_STATE:
      return handleCommandClassHumidityControlOperatingState(data);
    case /* 0x6F */ COMMAND_CLASS_ENTRY_CONTROL:
      return handleCommandClassEntryControl(data);
    case /* 0x70 */ COMMAND_CLASS_CONFIGURATION:
      return handleCommandClassConfiguration(data);
    case /* 0x71 */ COMMAND_CLASS_NOTIFICATION:
      return handleCommandClassNotification(data);
    case /* 0x72 */ COMMAND_CLASS_MANUFACTURER_SPECIFIC:
      return handleCommandClassManufacturerSpecific(data);
    case /* 0x73 */ COMMAND_CLASS_POWERLEVEL:
      return handleCommandClassPowerlevel(data);
    case /* 0x74 */ COMMAND_CLASS_INCLUSION_CONTROLLER:
      return handleCommandClassInclusionController(data);
    case /* 0x75 */ COMMAND_CLASS_PROTECTION:
      return handleCommandClassProtection(data);
    case /* 0x76 */ COMMAND_CLASS_LOCK:
      return handleCommandClassLock(data);
    case /* 0x77 */ COMMAND_CLASS_NODE_NAMING:
      return handleCommandClassNodeNaming(data);
    case /* 0x78 */ COMMAND_CLASS_NODE_PROVISIONING:
      return handleCommandClassNodeProvisioning(data);
    case /* 0x79 */ COMMAND_CLASS_SOUND_SWITCH:
      return handleCommandClassSoundSwitch(data);
    case /* 0x7A */ COMMAND_CLASS_FIRMWARE_UPDATE_MD:
      return handleCommandClassFirmwareUpdateMd(data);
    case /* 0x7B */ COMMAND_CLASS_GROUPING_NAME:
      return handleCommandClassGroupingName(data);
    case /* 0x7C */ COMMAND_CLASS_REMOTE_ASSOCIATION_ACTIVATE:
      return handleCommandClassRemoteAssociationActivate(data);
    case /* 0x7D */ COMMAND_CLASS_REMOTE_ASSOCIATION:
      return handleCommandClassRemoteAssociation(data);
    case /* 0x7E */ COMMAND_CLASS_ANTITHEFT_UNLOCK:
      return handleCommandClassAntitheftUnlock(data);
    case /* 0x80 */ COMMAND_CLASS_BATTERY:
      return handleCommandClassBattery(data);
    case /* 0x81 */ COMMAND_CLASS_CLOCK:
      return handleCommandClassClock(data);
    case /* 0x82 */ COMMAND_CLASS_HAIL:
      return handleCommandClassHail(data);
    case /* 0x84 */ COMMAND_CLASS_WAKE_UP:
      return handleCommandClassWakeUp(data);
    case /* 0x85 */ COMMAND_CLASS_ASSOCIATION:
      return handleCommandClassAssociation(data);
    case /* 0x86 */ COMMAND_CLASS_VERSION:
      return handleCommandClassVersion(data);
    case /* 0x87 */ COMMAND_CLASS_INDICATOR:
      return handleCommandClassIndicator(data);
    case /* 0x88 */ COMMAND_CLASS_PROPRIETARY:
      return handleCommandClassProprietary(data);
    case /* 0x89 */ COMMAND_CLASS_LANGUAGE:
      return handleCommandClassLanguage(data);
    case /* 0x8A */ COMMAND_CLASS_TIME:
      return handleCommandClassTime(data);
    case /* 0x8B */ COMMAND_CLASS_TIME_PARAMETERS:
      return handleCommandClassTimeParameters(data);
    case /* 0x8C */ COMMAND_CLASS_GEOGRAPHIC_LOCATION:
      return handleCommandClassGeographicLocation(data);
    case /* 0x8E */ COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION:
      return handleCommandClassMultiChannelAssociation(data);
    case /* 0x8F */ COMMAND_CLASS_MULTI_CMD:
      return handleCommandClassMultiCmd(data);
    case /* 0x90 */ COMMAND_CLASS_ENERGY_PRODUCTION:
      return handleCommandClassEnergyProduction(data);
    case /* 0x91 */ COMMAND_CLASS_MANUFACTURER_PROPRIETARY:
      return handleCommandClassManufacturerProprietary(data);
    case /* 0x92 */ COMMAND_CLASS_SCREEN_MD:
      return handleCommandClassScreenMd(data);
    case /* 0x93 */ COMMAND_CLASS_SCREEN_ATTRIBUTES:
      return handleCommandClassScreenAttributes(data);
    case /* 0x94 */ COMMAND_CLASS_SIMPLE_AV_CONTROL:
      return handleCommandClassSimpleAvControl(data);
    case /* 0x98 */ COMMAND_CLASS_SECURITY:
      return handleCommandClassSecurity(data);
    case /* 0x9A */ COMMAND_CLASS_IP_CONFIGURATION:
      return handleCommandClassIpConfiguration(data);
    case /* 0x9B */ COMMAND_CLASS_ASSOCIATION_COMMAND_CONFIGURATION:
      return handleCommandClassAssociationCommandConfiguration(data);
    case /* 0x9C */ COMMAND_CLASS_SENSOR_ALARM:
      return handleCommandClassSensorAlarm(data);
    case /* 0x9D */ COMMAND_CLASS_SILENCE_ALARM:
      return handleCommandClassSilenceAlarm(data);
    case /* 0x9E */ COMMAND_CLASS_SENSOR_CONFIGURATION:
      return handleCommandClassSensorConfiguration(data);
    case /* 0x9F */ COMMAND_CLASS_SECURITY_2:
      return handleCommandClassSecurity2(data);
    case /* 0xA0 */ COMMAND_CLASS_IR_REPEATER:
      return handleCommandClassIrRepeater(data);
    case /* 0xA1 */ COMMAND_CLASS_AUTHENTICATION:
      return handleCommandClassAuthentication(data);
    case /* 0xA2 */ COMMAND_CLASS_AUTHENTICATION_MEDIA_WRITE:
      return handleCommandClassAuthenticationMediaWrite(data);
    case /* 0xA3 */ COMMAND_CLASS_GENERIC_SCHEDULE:
      return handleCommandClassGenericSchedule(data);
    case /* 0xEF */ COMMAND_CLASS_MARK:
      return handleCommandClassMark(data);
    case 0xF1:
      switch (data[8]) {
        case 0x00: // COMMAND_CLASS_SECURITY_SCHEME0_MARK
          return handleCommandClassSecurityScheme0Mark(data);
      }
      return handleUnknownCommandClassId(data[7] * 256 + data[8], data);
    default:
      return handleUnknownCommandClassId(data[7], data);
  }
}