getDeviceSwitchStatus method
Implementation
Future<Map<String, dynamic>> getDeviceSwitchStatus(
String deviceSerial,
String type, // e.g., "301" for Light flicker switch
) async {
// V3 API - GET request
// Query param `type`
return _client.post('/api/v3/device/switchStatus/get?type=$type', {
'deviceSerial': deviceSerial,
// 'type': type, // Query parameter
});
}