Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arlec Smart 2.1A USB Charger Plug #510

Closed
Diramu opened this issue Sep 30, 2021 · 2 comments
Closed

Arlec Smart 2.1A USB Charger Plug #510

Diramu opened this issue Sep 30, 2021 · 2 comments
Labels
enhancement Request new features help wanted Extra attention is needed

Comments

@Diramu
Copy link

Diramu commented Sep 30, 2021

Device normal info

  • Arlec
  • PC389HA

Device info
{
"active_time": 1629763707,
"biz_type": 0,
"category": "cz",
"create_time": 1629763707,
"icon": "smart/icon/ay1536534747810ekKBj/1565057383d6e8f22e10c.png",
"id": "1032400324a1600d54c7",
"ip": "",
"lat": "
",
"local_key": "",
"lon": "
",
"model": "",
"name": "Office PC389HA",
"online": true,
"owner_id": "7962227",
"product_id": "lulsxh0ifwqjpq3o",
"product_name": "Single Adaptor PC389HA",
"status": [
{
"code": "switch_1",
"value": false
},
{
"code": "countdown_1",
"value": 0
}
],
"sub": false,
"time_zone": "+10:00",
"uid": "***",
"update_time": 1632708820,
"uuid": "1032400324a1600d54c7"
}

Device specifications
2021-09-30 15:28:49 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/31062738483fda4180e4/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': False}]}, t = 1632979729000
2021-09-30 15:28:49 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632979729730
}
2021-09-30 15:28:52 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/31062738483fda4180e4/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': False}]}, t = 1632979732261
2021-09-30 15:28:52 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632979732487
}
2021-09-30 15:28:53 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/31062738483fda4180e4/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': True}]}, t = 1632979733718
2021-09-30 15:28:53 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632979733911
}
2021-09-30 17:03:44 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/iot-03/users/token/91288d2c726b7af058f97a8d40d23814, params = None, body = None, t = 1632985424319
2021-09-30 17:03:45 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": {
"access_token": "",
"expire": 7200,
"refresh_token": "
",
"uid": "***"
},
"success": true,
"t": 1632985425296
}
2021-09-30 17:03:45 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/1032400324a1600d54c7/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': True}]}, t = 1632985425406
2021-09-30 17:03:45 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632985425598
}
2021-09-30 17:03:56 DEBUG (Thread-5) [RFXtrx] Recv: 0x0a 0x52 0x02 0x88 0x6d 0x01 0x00 0xd4 0x39 0x01 0x69
2021-09-30 17:04:44 DEBUG (SyncWorker_1) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/1032400324a1600d54c7/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': True}]}, t = 1632985484460
2021-09-30 17:04:44 DEBUG (SyncWorker_1) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632985484642
}
2021-09-30 17:04:45 DEBUG (SyncWorker_0) [tuya iot] Request: method = POST, url = https://openapi.tuyaeu.com/v1.0/devices/1032400324a1600d54c7/commands, params = None, body = {'commands': [{'code': 'switch_1', 'value': False}]}, t = 1632985485401
2021-09-30 17:04:45 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": true,
"success": true,
"t": 1632985485569
}
Tuya-V2
This device status is show as off, even when on.
If a switch is off, the it can be turned on, but the status returns to off after a second or two:
pc389_on

Then to actually turn it off, you must double click it.

pc389_off

@Diramu Diramu added enhancement Request new features help wanted Extra attention is needed labels Sep 30, 2021
@Diramu
Copy link
Author

Diramu commented Sep 30, 2021

I discover I did not have my Device Status Notification service authorized. Working fine now.

@Diramu Diramu closed this as completed Sep 30, 2021
@Diramu
Copy link
Author

Diramu commented Sep 30, 2021

all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request new features help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant