handleCommandClassSwitchBinary method

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

Implementation

@override
void handleCommandClassSwitchBinary(List<int> data) {
  switch (data[8]) {
    case SWITCH_BINARY_REPORT:
      final report = SwitchBinaryReport(data);
      stateValue = report.value;
      state = stateValue! > 0;
      processedResult<SwitchBinaryReport>(report);
      return;
    default:
      return unhandledCommandClass(
          COMMAND_CLASS_SWITCH_BINARY, 'COMMAND_CLASS_SWITCH_BINARY', data);
  }
}