Closed antonioGabrielGomes closed 1 year ago
发件人:antonio gabriel @.> 发送时间:2023年8月24日(星期四) 05:49 收件人:coolkit-carl/ewelink-api-next @.> 抄 送:Subscribed @.> 主 题:[coolkit-carl/ewelink-api-next] Erro 4002 (Issue #4) Hello we have the following problem, I can log in to the platform normally, I can see the devices, but when I go to activate a channel after a few hours of inactivity, I get the error 4002: doc: 4002 " the equipment is offline (the old error code is not changed temporarily to avoid affecting customers who have used the updated equipment status interface), which will appear in the updated equipment status " Could you explain to me what you mean? App print: <https://user-images.githubusercontent.com/47016177/262806749-7baedbc6-716c-4775-adfa-f97c558574e7.jpg > — Reply to this email directly, view it on GitHub <https://github.com/coolkit-carl/ewelink-api-next/issues/4 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMDDIXSNAAEJABCSL7S7IR3XWZ3FXANCNFSM6AAAAAA34C5LVA >. You are receiving this because you are subscribed to this thread.Message ID: @.>
I understood that it is offline, it is written, but that is not the point. The device is online, when the command is executed after a few hours it goes offline! It harms usability! Do you know anything about it?
What is the instruction you sent? Do you mean that the device goes offline after sending instructions? If so, such issues should also occur when controlling on the app.
What is the instruction you sent? Do you mean that the device goes offline after sending instructions? If so, such issues should also occur when controlling on the app.
That's it, the device is online and when the command is executed it goes offline. After it comes back I can send commands, but this is a problem because it takes a few minutes to get back to normal.
That's it, the device is online and when the command is executed it goes offline. After it comes back I can send commands, but this is a problem because it takes a few minutes to get back to normal.
Please ensure that the control instructions are correct, just like a single channel device, it is generally not possible to send switches instructions, as sending them may cause the device to fail to parse and crash and become disconnected. You can tell me your device ID, and I will send you the correct instructions. If you control it on the APP, it will also be the same. This is due to hardware and network reasons, and has nothing to do with this project.
That's it, the device is online and when the command is executed it goes offline. After it comes back I can send commands, but this is a problem because it takes a few minutes to get back to normal.
Please ensure that the control instructions are correct, just like a single channel device, it is generally not possible to send switches instructions, as sending them may cause the device to fail to parse and crash and become disconnected. You can tell me your device ID, and I will send you the correct instructions. If you control it on the APP, it will also be the same. This is due to hardware and network reasons, and has nothing to do with this project.
That's it, the device is online and when the command is executed it goes offline. After it comes back I can send commands, but this is a problem because it takes a few minutes to get back to normal. https://coolkit-technologies.github.io/eWeLink-API/#/en/OAuth2.0?id=update-the-status-of-a-device-or-group
Please ensure that the control instructions are correct, just like a single channel device, it is generally not possible to send switches instructions, as sending them may cause the device to fail to parse and crash and become disconnected. You can tell me your device ID, and I will send you the correct instructions. If you control it on the APP, it will also be the same. This is due to hardware and network reasons, and has nothing to do with this project.
100165b0bb
Unable to send "switches instructions" ? I didn't understand; I'm doing as in your code, sending a post request;
request({ url:
${url}/v2/device/thing/status, method: 'POST', headers: { Authorization:
Bearer ${at}, 'content-type': 'application/json', }, data: { "type": 1, "id": deviceid, "params": { "switches": [ { "switch": "on", "outlet": 0 }, { "switch": "on", "outlet": 1 }, { "switch": "on", "outlet": 2 }, { "switch": "on", "outlet": 3 } ] }, } });
Unable to send "switches instructions" ? I didn't understand; I'm doing as in your code, sending a post request;
There is no problem with the command
I can only judge that the unstable network of your device caused the control failure.
curl --location 'https://us-apia.coolkit.cc/v2/device/thing/status' \
--header 'X-CK-Nonce: L8KtsB4e' \
--header 'Authorization: Bearer xxxx' \
--header 'Content-Type: application/json' \
--data '{
"type": 1,
"id": "xxxxx",
"params": {"switches": [
{
"outlet": 0,
"switch": "on"
},
{
"outlet": 1,
"switch": "on"
},
{
"outlet": 2,
"switch": "on"
},
{
"outlet": 3,
"switch": "on"
}
]}
}'
Probably, I'm doing a search for the device before sending the commands to see if it's online;
An important question, is every request we make deducted from the monthly fee? Is there somewhere we can see it?
An important question, is every request we make deducted from the monthly fee? Is there somewhere we can see it?
At present, there is no place to display this content. You need to make your own statistics before sending the request.
An important question, is every request we make deducted from the monthly fee? Is there somewhere we can see it?
At present, there is no place to display this content. You need to make your own statistics before sending the request.
Hello we have the following problem, I can log in to the platform normally, I can see the devices, but when I go to activate a channel after a few hours of inactivity, I get the error 4002:
doc: 4002 " the equipment is offline (the old error code is not changed temporarily to avoid affecting customers who have used the updated equipment status interface), which will appear in the updated equipment status "
Could you explain to me what you mean?
App print: