Closed amacymind closed 4 years ago
Can you provide the devId?
Here's one for my devId: 33730035807d3a478136
The device history function needs to have statistical authority, and now it has been opened for you. You can try it.
No its not still works.
TuyaSmartRequest *request = [[TuyaSmartRequest alloc] init];
[request requestWithApiName:@"m.smart.dp.his.stat.get.all" postData:@{@"devId":@"33730035807d3a478136", @"dpId":@"101"} version:@"1.0" success:^(id result) {
NSLog(@"result:%@",result);
}failure:^(NSError *error) {
NSLog(@"error:%@",error);
}];
Parameter dpId:101 for 33730035807d3a478136 is a switch dp and its not supported in this interface. i guess you can try dpId:103 for the data you want.
Yes I want battery status thats why i used 103. But its gives result like,
{
sum = "0.00";
thisDay = "0.0";
years = {
2019 = {
10 = "0.00";
};
};
}
What this means?
The result is the electricity you used.
I want device battery status. Just tell me why 'm.smart.dp.his.stat.get.all' & 'm.smart.dp.his.stat.get.month'method not works? Also where is document for that methods previously its shows in tuya doc.
Hi dear, thanks for contacting Tuya, as for your issue, we believe that you may get further support in https://iot.tuya.com/council/chat/ , where you can raise an issue to solve all your problems.
sendVerifyCode failure: Error Domain=com.tuya.www Code=1501 "Permission Verification Failed" UserInfo={NSLocalizedDescription=Permission Verification Failed, NSLocalizedFailureReason=SING_VALIDATE_FALED}
How can i solve this issue
Hello, I used TuyaSmartRequest api 'm.smart.dp.his.stat.get.all' & 'm.smart.dp.his.stat.get.month' for get dpId data. But now its not works. Are you changed anything in it?
Its gives error like, Error Domain=com.tuya.www Code=1501 "Parameter or Data Error" UserInfo={NSLocalizedDescription=Parameter or Data Error, NSLocalizedFailureReason=PARAMS_ILLEGAL_OR_DATA_ILLEGAL}