sendOnOffCommand method
Implementation
@override
Future<void> sendOnOffCommand(int address, bool isOn) async {
try {
await methodChannel.invokeMethod<void>('sendOnOffCommand', {
'address': address,
'isOn': isOn,
});
} on PlatformException catch (e) {
debugPrint('Failed to send on/off command: ${e.message}');
rethrow;
}
}