handleCommandClassSwitchBinary method
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);
}
}