python-kasa 0.6.0.dev2__py3-none-any.whl → 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. kasa/__init__.py +2 -2
  2. kasa/aestransport.py +154 -101
  3. kasa/cli.py +42 -23
  4. kasa/device_factory.py +4 -3
  5. kasa/deviceconfig.py +19 -10
  6. kasa/discover.py +28 -11
  7. kasa/exceptions.py +15 -1
  8. kasa/httpclient.py +113 -0
  9. kasa/iotprotocol.py +30 -26
  10. kasa/json.py +5 -1
  11. kasa/klaptransport.py +60 -75
  12. kasa/modules/emeter.py +1 -1
  13. kasa/protocol.py +61 -16
  14. kasa/smartbulb.py +2 -2
  15. kasa/smartdevice.py +11 -7
  16. kasa/smartdimmer.py +2 -2
  17. kasa/smartlightstrip.py +2 -2
  18. kasa/smartplug.py +2 -2
  19. kasa/smartprotocol.py +16 -38
  20. kasa/smartstrip.py +2 -2
  21. kasa/tapo/tapodevice.py +19 -4
  22. kasa/tapo/tapoplug.py +2 -2
  23. kasa/tests/conftest.py +24 -8
  24. kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +28 -0
  25. kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +3 -3
  26. kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +11 -23
  27. kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +40 -0
  28. kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +90 -0
  29. kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +93 -0
  30. kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +15 -15
  31. kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +59 -0
  32. kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +36 -0
  33. kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +4 -4
  34. kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +9 -9
  35. kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +42 -0
  36. kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +9 -25
  37. kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +414 -0
  38. kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +263 -0
  39. kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +295 -0
  40. kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +267 -0
  41. kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +19 -19
  42. kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +12 -12
  43. kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +439 -0
  44. kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +10 -10
  45. kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +428 -0
  46. kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +98 -20
  47. kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +390 -0
  48. kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +397 -0
  49. kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +415 -0
  50. kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +429 -0
  51. kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +197 -0
  52. kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +28 -19
  53. kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +31 -31
  54. kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +11 -11
  55. kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +317 -0
  56. kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +317 -0
  57. kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +309 -0
  58. kasa/tests/newfakes.py +3 -0
  59. kasa/tests/test_aestransport.py +110 -22
  60. kasa/tests/test_cli.py +49 -2
  61. kasa/tests/test_device_factory.py +6 -4
  62. kasa/tests/test_deviceconfig.py +24 -9
  63. kasa/tests/test_discovery.py +126 -9
  64. kasa/tests/test_httpclient.py +100 -0
  65. kasa/tests/test_klapprotocol.py +70 -23
  66. kasa/tests/test_protocol.py +76 -2
  67. kasa/tests/test_smartprotocol.py +0 -1
  68. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/METADATA +37 -15
  69. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/RECORD +72 -49
  70. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/LICENSE +0 -0
  71. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/WHEEL +0 -0
  72. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/entry_points.txt +0 -0
@@ -1,44 +1,32 @@
1
1
  {
2
2
  "emeter": {
3
3
  "get_realtime": {
4
- "current": 0.015342,
4
+ "current": 0.014937,
5
5
  "err_code": 0,
6
- "power": 0.983971,
7
- "total": 32.448,
8
- "voltage": 235.595234
6
+ "power": 0.928511,
7
+ "total": 55.139,
8
+ "voltage": 231.067823
9
9
  }
10
10
  },
11
- "smartlife.iot.common.emeter": {
12
- "err_code": -1,
13
- "err_msg": "module not support"
14
- },
15
- "smartlife.iot.dimmer": {
16
- "err_code": -1,
17
- "err_msg": "module not support"
18
- },
19
- "smartlife.iot.smartbulb.lightingservice": {
20
- "err_code": -1,
21
- "err_msg": "module not support"
22
- },
23
11
  "system": {
24
12
  "get_sysinfo": {
25
13
  "active_mode": "schedule",
26
14
  "alias": "Kitchen",
27
15
  "dev_name": "Wi-Fi Smart Plug With Energy Monitoring",
28
- "deviceId": "8006588E50AD389303FF31AB6302907A17442F16",
16
+ "deviceId": "0000000000000000000000000000000000000000",
29
17
  "err_code": 0,
30
18
  "feature": "TIM:ENE",
31
19
  "fwId": "00000000000000000000000000000000",
32
- "hwId": "45E29DA8382494D2E82688B52A0B2EB5",
20
+ "hwId": "00000000000000000000000000000000",
33
21
  "hw_ver": "1.0",
34
22
  "icon_hash": "",
35
- "latitude": 51.476938,
23
+ "latitude": 0,
36
24
  "led_off": 1,
37
- "longitude": 7.216849,
38
- "mac": "50:C7:BF:01:F8:CD",
25
+ "longitude": 0,
26
+ "mac": "50:C7:BF:00:00:00",
39
27
  "model": "HS110(EU)",
40
- "oemId": "3D341ECE302C0642C99E31CE2430544B",
41
- "on_time": 512874,
28
+ "oemId": "00000000000000000000000000000000",
29
+ "on_time": 6023162,
42
30
  "relay_state": 1,
43
31
  "rssi": -71,
44
32
  "sw_ver": "1.2.5 Build 171213 Rel.101523",
@@ -0,0 +1,40 @@
1
+ {
2
+ "emeter": {
3
+ "get_realtime": {
4
+ "current_ma": 451,
5
+ "err_code": 0,
6
+ "power_mw": 61753,
7
+ "total_wh": 16323,
8
+ "voltage_mv": 230837
9
+ }
10
+ },
11
+ "system": {
12
+ "get_sysinfo": {
13
+ "active_mode": "none",
14
+ "alias": "#MASKED_NAME#",
15
+ "dev_name": "Smart Wi-Fi Plug With Energy Monitoring",
16
+ "deviceId": "0000000000000000000000000000000000000000",
17
+ "err_code": 0,
18
+ "feature": "TIM:ENE",
19
+ "hwId": "00000000000000000000000000000000",
20
+ "hw_ver": "4.0",
21
+ "icon_hash": "",
22
+ "latitude_i": 0,
23
+ "led_off": 1,
24
+ "longitude_i": 0,
25
+ "mac": "B0:95:75:00:00:00",
26
+ "mic_type": "IOT.SMARTPLUGSWITCH",
27
+ "model": "HS110(EU)",
28
+ "next_action": {
29
+ "type": -1
30
+ },
31
+ "oemId": "00000000000000000000000000000000",
32
+ "on_time": 1484778,
33
+ "relay_state": 1,
34
+ "rssi": -60,
35
+ "status": "new",
36
+ "sw_ver": "1.0.4 Build 191111 Rel.143500",
37
+ "updating": 0
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "emeter": {
3
+ "get_realtime": {
4
+ "current_ma": 6,
5
+ "err_code": 0,
6
+ "power_mw": 277,
7
+ "slot_id": 0,
8
+ "total_wh": 62,
9
+ "voltage_mv": 120110
10
+ }
11
+ },
12
+ "system": {
13
+ "get_sysinfo": {
14
+ "alias": "#MASKED_NAME#",
15
+ "child_num": 6,
16
+ "children": [
17
+ {
18
+ "alias": "#MASKED_NAME#",
19
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D00",
20
+ "next_action": {
21
+ "type": -1
22
+ },
23
+ "on_time": 710216,
24
+ "state": 1
25
+ },
26
+ {
27
+ "alias": "#MASKED_NAME#",
28
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D01",
29
+ "next_action": {
30
+ "type": -1
31
+ },
32
+ "on_time": 710216,
33
+ "state": 1
34
+ },
35
+ {
36
+ "alias": "#MASKED_NAME#",
37
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D02",
38
+ "next_action": {
39
+ "type": -1
40
+ },
41
+ "on_time": 710216,
42
+ "state": 1
43
+ },
44
+ {
45
+ "alias": "#MASKED_NAME#",
46
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D03",
47
+ "next_action": {
48
+ "type": -1
49
+ },
50
+ "on_time": 710216,
51
+ "state": 1
52
+ },
53
+ {
54
+ "alias": "#MASKED_NAME#",
55
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D04",
56
+ "next_action": {
57
+ "type": -1
58
+ },
59
+ "on_time": 710216,
60
+ "state": 1
61
+ },
62
+ {
63
+ "alias": "#MASKED_NAME#",
64
+ "id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D05",
65
+ "next_action": {
66
+ "type": -1
67
+ },
68
+ "on_time": 710216,
69
+ "state": 1
70
+ }
71
+ ],
72
+ "deviceId": "0000000000000000000000000000000000000000",
73
+ "err_code": 0,
74
+ "feature": "TIM:ENE",
75
+ "hwId": "00000000000000000000000000000000",
76
+ "hw_ver": "2.0",
77
+ "latitude_i": 0,
78
+ "led_off": 0,
79
+ "longitude_i": 0,
80
+ "mac": "C0:06:C3:00:00:00",
81
+ "mic_type": "IOT.SMARTPLUGSWITCH",
82
+ "model": "HS300(US)",
83
+ "oemId": "00000000000000000000000000000000",
84
+ "rssi": -44,
85
+ "status": "new",
86
+ "sw_ver": "1.0.12 Build 220121 Rel.175814",
87
+ "updating": 0
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "smartlife.iot.common.emeter": {
3
+ "get_realtime": {
4
+ "err_code": 0,
5
+ "power_mw": 0,
6
+ "total_wh": 0
7
+ }
8
+ },
9
+ "smartlife.iot.smartbulb.lightingservice": {
10
+ "get_light_state": {
11
+ "dft_on_state": {
12
+ "brightness": 84,
13
+ "color_temp": 0,
14
+ "hue": 9,
15
+ "mode": "normal",
16
+ "saturation": 67
17
+ },
18
+ "err_code": 0,
19
+ "on_off": 0
20
+ }
21
+ },
22
+ "system": {
23
+ "get_sysinfo": {
24
+ "active_mode": "none",
25
+ "alias": "#MASKED_NAME#",
26
+ "ctrl_protocols": {
27
+ "name": "Linkie",
28
+ "version": "1.0"
29
+ },
30
+ "description": "Smart Wi-Fi LED Bulb with Color Changing",
31
+ "dev_state": "normal",
32
+ "deviceId": "0000000000000000000000000000000000000000",
33
+ "disco_ver": "1.0",
34
+ "err_code": 0,
35
+ "hwId": "00000000000000000000000000000000",
36
+ "hw_ver": "4.0",
37
+ "is_color": 1,
38
+ "is_dimmable": 1,
39
+ "is_factory": false,
40
+ "is_variable_color_temp": 1,
41
+ "latitude_i": 0,
42
+ "light_state": {
43
+ "dft_on_state": {
44
+ "brightness": 84,
45
+ "color_temp": 0,
46
+ "hue": 9,
47
+ "mode": "normal",
48
+ "saturation": 67
49
+ },
50
+ "on_off": 0
51
+ },
52
+ "longitude_i": 0,
53
+ "mic_mac": "5091E3000000",
54
+ "mic_type": "IOT.SMARTBULB",
55
+ "model": "KL125(US)",
56
+ "obd_src": "tplink",
57
+ "oemId": "00000000000000000000000000000000",
58
+ "preferred_state": [
59
+ {
60
+ "brightness": 50,
61
+ "color_temp": 2700,
62
+ "hue": 0,
63
+ "index": 0,
64
+ "saturation": 0
65
+ },
66
+ {
67
+ "brightness": 100,
68
+ "color_temp": 0,
69
+ "hue": 0,
70
+ "index": 1,
71
+ "saturation": 100
72
+ },
73
+ {
74
+ "brightness": 100,
75
+ "color_temp": 0,
76
+ "hue": 120,
77
+ "index": 2,
78
+ "saturation": 100
79
+ },
80
+ {
81
+ "brightness": 100,
82
+ "color_temp": 0,
83
+ "hue": 240,
84
+ "index": 3,
85
+ "saturation": 100
86
+ }
87
+ ],
88
+ "rssi": -37,
89
+ "status": "new",
90
+ "sw_ver": "1.0.5 Build 230613 Rel.151643"
91
+ }
92
+ }
93
+ }
@@ -2,24 +2,24 @@
2
2
  "smartlife.iot.common.emeter": {
3
3
  "get_realtime": {
4
4
  "err_code": 0,
5
- "power_mw": 1300
5
+ "power_mw": 2500
6
6
  }
7
7
  },
8
8
  "smartlife.iot.smartbulb.lightingservice": {
9
9
  "get_light_state": {
10
- "brightness": 5,
11
- "color_temp": 2700,
10
+ "brightness": 17,
11
+ "color_temp": 2500,
12
12
  "err_code": 0,
13
- "hue": 1,
13
+ "hue": 0,
14
14
  "mode": "normal",
15
15
  "on_off": 1,
16
- "saturation": 1
16
+ "saturation": 0
17
17
  }
18
18
  },
19
19
  "system": {
20
20
  "get_sysinfo": {
21
- "active_mode": "schedule",
22
- "alias": "bedroom",
21
+ "active_mode": "none",
22
+ "alias": "#MASKED_NAME#",
23
23
  "ctrl_protocols": {
24
24
  "name": "Linkie",
25
25
  "version": "1.0"
@@ -29,7 +29,7 @@
29
29
  "deviceId": "0000000000000000000000000000000000000000",
30
30
  "disco_ver": "1.0",
31
31
  "err_code": 0,
32
- "heapsize": 332316,
32
+ "heapsize": 334708,
33
33
  "hwId": "00000000000000000000000000000000",
34
34
  "hw_ver": "1.0",
35
35
  "is_color": 1,
@@ -37,20 +37,20 @@
37
37
  "is_factory": false,
38
38
  "is_variable_color_temp": 1,
39
39
  "light_state": {
40
- "brightness": 5,
41
- "color_temp": 2700,
42
- "hue": 1,
40
+ "brightness": 17,
41
+ "color_temp": 2500,
42
+ "hue": 0,
43
43
  "mode": "normal",
44
44
  "on_off": 1,
45
- "saturation": 1
45
+ "saturation": 0
46
46
  },
47
- "mic_mac": "000000000000",
47
+ "mic_mac": "1C3BF3000000",
48
48
  "mic_type": "IOT.SMARTBULB",
49
49
  "model": "KL130(EU)",
50
50
  "oemId": "00000000000000000000000000000000",
51
51
  "preferred_state": [
52
52
  {
53
- "brightness": 10,
53
+ "brightness": 50,
54
54
  "color_temp": 2500,
55
55
  "hue": 0,
56
56
  "index": 0,
@@ -78,7 +78,7 @@
78
78
  "saturation": 75
79
79
  }
80
80
  ],
81
- "rssi": -62,
81
+ "rssi": -60,
82
82
  "sw_ver": "1.8.8 Build 190613 Rel.123436"
83
83
  }
84
84
  }
@@ -0,0 +1,59 @@
1
+ {
2
+ "smartlife.iot.common.emeter": {
3
+ "get_realtime": {
4
+ "err_code": 0,
5
+ "power_mw": 600,
6
+ "total_wh": 0
7
+ }
8
+ },
9
+ "system": {
10
+ "get_sysinfo": {
11
+ "LEF": 1,
12
+ "active_mode": "none",
13
+ "alias": "#MASKED_NAME#",
14
+ "ctrl_protocols": {
15
+ "name": "Linkie",
16
+ "version": "1.0"
17
+ },
18
+ "description": "Kasa Smart Light Strip, Multicolor",
19
+ "dev_state": "normal",
20
+ "deviceId": "0000000000000000000000000000000000000000",
21
+ "disco_ver": "1.0",
22
+ "err_code": 0,
23
+ "hwId": "00000000000000000000000000000000",
24
+ "hw_ver": "2.0",
25
+ "is_color": 1,
26
+ "is_dimmable": 1,
27
+ "is_factory": false,
28
+ "is_variable_color_temp": 1,
29
+ "latitude_i": 0,
30
+ "length": 16,
31
+ "light_state": {
32
+ "dft_on_state": {
33
+ "brightness": 100,
34
+ "color_temp": 9000,
35
+ "hue": 9,
36
+ "mode": "normal",
37
+ "saturation": 67
38
+ },
39
+ "on_off": 0
40
+ },
41
+ "lighting_effect_state": {
42
+ "brightness": 70,
43
+ "custom": 0,
44
+ "enable": 0,
45
+ "id": "joqVjlaTsgzmuQQBAlHRkkPAqkBUiqeb",
46
+ "name": "Icicle"
47
+ },
48
+ "longitude_i": 0,
49
+ "mic_mac": "E8:48:B8:00:00:00",
50
+ "mic_type": "IOT.SMARTBULB",
51
+ "model": "KL430(US)",
52
+ "oemId": "00000000000000000000000000000000",
53
+ "preferred_state": [],
54
+ "rssi": -43,
55
+ "status": "new",
56
+ "sw_ver": "1.0.11 Build 220812 Rel.153345"
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "system": {
3
+ "get_sysinfo": {
4
+ "active_mode": "schedule",
5
+ "alias": "#MASKED_NAME#",
6
+ "dev_name": "Smart Wi-Fi Plug",
7
+ "deviceId": "0000000000000000000000000000000000000000",
8
+ "err_code": 0,
9
+ "feature": "TIM",
10
+ "hwId": "00000000000000000000000000000000",
11
+ "hw_ver": "1.0",
12
+ "icon_hash": "",
13
+ "latitude_i": 0,
14
+ "led_off": 0,
15
+ "longitude_i": 0,
16
+ "mac": "D8:47:32:00:00:00",
17
+ "mic_type": "IOT.SMARTPLUGSWITCH",
18
+ "model": "KP105(UK)",
19
+ "next_action": {
20
+ "action": 1,
21
+ "id": "8AA75A50A8440B17941D192BD9E01FFA",
22
+ "schd_sec": 59160,
23
+ "type": 1
24
+ },
25
+ "ntc_state": 0,
26
+ "obd_src": "tplink",
27
+ "oemId": "00000000000000000000000000000000",
28
+ "on_time": 0,
29
+ "relay_state": 0,
30
+ "rssi": -66,
31
+ "status": "configured",
32
+ "sw_ver": "1.0.5 Build 191209 Rel.094735",
33
+ "updating": 0
34
+ }
35
+ }
36
+ }
@@ -2,7 +2,7 @@
2
2
  "system": {
3
3
  "get_sysinfo": {
4
4
  "active_mode": "none",
5
- "alias": "Uk plug",
5
+ "alias": "#MASKED_NAME#",
6
6
  "dev_name": "Smart Wi-Fi Plug",
7
7
  "deviceId": "0000000000000000000000000000000000000000",
8
8
  "err_code": 0,
@@ -13,7 +13,7 @@
13
13
  "latitude_i": 0,
14
14
  "led_off": 0,
15
15
  "longitude_i": 0,
16
- "mac": "00:00:00:00:00:00",
16
+ "mac": "D8:47:32:00:00:00",
17
17
  "mic_type": "IOT.SMARTPLUGSWITCH",
18
18
  "model": "KP105(UK)",
19
19
  "next_action": {
@@ -24,8 +24,8 @@
24
24
  "oemId": "00000000000000000000000000000000",
25
25
  "on_time": 0,
26
26
  "relay_state": 0,
27
- "rssi": -48,
28
- "status": "new",
27
+ "rssi": -67,
28
+ "status": "configured",
29
29
  "sw_ver": "1.0.7 Build 210506 Rel.153510",
30
30
  "updating": 0
31
31
  }
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "emeter": {
3
3
  "get_realtime": {
4
- "current_ma": 0,
4
+ "current_ma": 296,
5
5
  "err_code": 0,
6
- "power_mw": 0,
7
- "total_wh": 0,
8
- "voltage_mv": 231561
6
+ "power_mw": 63499,
7
+ "total_wh": 12068,
8
+ "voltage_mv": 230577
9
9
  }
10
10
  },
11
11
  "system": {
12
12
  "get_sysinfo": {
13
13
  "active_mode": "none",
14
- "alias": "TP-LINK_Smart Plug_330B",
14
+ "alias": "#MASKED_NAME#",
15
15
  "dev_name": "Smart Wi-Fi Plug Mini",
16
16
  "deviceId": "0000000000000000000000000000000000000000",
17
17
  "err_code": 0,
@@ -20,9 +20,9 @@
20
20
  "hw_ver": "1.0",
21
21
  "icon_hash": "",
22
22
  "latitude_i": 0,
23
- "led_off": 0,
23
+ "led_off": 1,
24
24
  "longitude_i": 0,
25
- "mac": "00:00:00:00:00:00",
25
+ "mac": "C0:06:C3:00:00:00",
26
26
  "mic_type": "IOT.SMARTPLUGSWITCH",
27
27
  "model": "KP115(EU)",
28
28
  "next_action": {
@@ -31,9 +31,9 @@
31
31
  "ntc_state": 0,
32
32
  "obd_src": "tplink",
33
33
  "oemId": "00000000000000000000000000000000",
34
- "on_time": 197,
34
+ "on_time": 2078998,
35
35
  "relay_state": 1,
36
- "rssi": -70,
36
+ "rssi": -49,
37
37
  "status": "new",
38
38
  "sw_ver": "1.0.16 Build 210205 Rel.163735",
39
39
  "updating": 0
@@ -0,0 +1,42 @@
1
+ {
2
+ "emeter": {
3
+ "get_realtime": {
4
+ "current_ma": 0,
5
+ "err_code": 0,
6
+ "power_mw": 0,
7
+ "total_wh": 0,
8
+ "voltage_mv": 120652
9
+ }
10
+ },
11
+ "system": {
12
+ "get_sysinfo": {
13
+ "active_mode": "none",
14
+ "alias": "#MASKED_NAME#",
15
+ "dev_name": "Smart Wi-Fi Plug Mini",
16
+ "deviceId": "0000000000000000000000000000000000000000",
17
+ "err_code": 0,
18
+ "feature": "TIM:ENE",
19
+ "hwId": "00000000000000000000000000000000",
20
+ "hw_ver": "1.0",
21
+ "icon_hash": "",
22
+ "latitude_i": 0,
23
+ "led_off": 0,
24
+ "longitude_i": 0,
25
+ "mac": "54:AF:97:00:00:00",
26
+ "mic_type": "IOT.SMARTPLUGSWITCH",
27
+ "model": "KP115(US)",
28
+ "next_action": {
29
+ "type": -1
30
+ },
31
+ "ntc_state": 0,
32
+ "obd_src": "tplink",
33
+ "oemId": "00000000000000000000000000000000",
34
+ "on_time": 0,
35
+ "relay_state": 0,
36
+ "rssi": -60,
37
+ "status": "new",
38
+ "sw_ver": "1.0.21 Build 231129 Rel.171238",
39
+ "updating": 0
40
+ }
41
+ }
42
+ }
@@ -1,20 +1,4 @@
1
1
  {
2
- "emeter": {
3
- "err_code": -1,
4
- "err_msg": "module not support"
5
- },
6
- "smartlife.iot.common.emeter": {
7
- "err_code": -1,
8
- "err_msg": "module not support"
9
- },
10
- "smartlife.iot.dimmer": {
11
- "err_code": -1,
12
- "err_msg": "module not support"
13
- },
14
- "smartlife.iot.smartbulb.lightingservice": {
15
- "err_code": -1,
16
- "err_msg": "module not support"
17
- },
18
2
  "system": {
19
3
  "get_sysinfo": {
20
4
  "alias": "TP-LINK_Power Strip_CF69",
@@ -22,29 +6,29 @@
22
6
  "children": [
23
7
  {
24
8
  "alias": "Plug 1",
25
- "id": "00",
9
+ "id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7700",
26
10
  "next_action": {
27
11
  "type": -1
28
12
  },
29
- "on_time": 302,
13
+ "on_time": 79701,
30
14
  "state": 1
31
15
  },
32
16
  {
33
17
  "alias": "Plug 2",
34
- "id": "01",
18
+ "id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7701",
35
19
  "next_action": {
36
20
  "type": -1
37
21
  },
38
- "on_time": 0,
22
+ "on_time": 79700,
39
23
  "state": 0
40
24
  },
41
25
  {
42
26
  "alias": "Plug 3",
43
- "id": "02",
27
+ "id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7702",
44
28
  "next_action": {
45
29
  "type": -1
46
30
  },
47
- "on_time": 0,
31
+ "on_time": 1484408,
48
32
  "state": 0
49
33
  }
50
34
  ],
@@ -54,14 +38,14 @@
54
38
  "hwId": "00000000000000000000000000000000",
55
39
  "hw_ver": "1.0",
56
40
  "latitude_i": 0,
57
- "led_off": 0,
41
+ "led_off": 1,
58
42
  "longitude_i": 0,
59
- "mac": "00:00:00:00:00:00",
43
+ "mac": "1C:3B:F3:00:00:00",
60
44
  "mic_type": "IOT.SMARTPLUGSWITCH",
61
45
  "model": "KP303(UK)",
62
46
  "ntc_state": 0,
63
47
  "oemId": "00000000000000000000000000000000",
64
- "rssi": -63,
48
+ "rssi": -68,
65
49
  "status": "new",
66
50
  "sw_ver": "1.0.3 Build 191105 Rel.113122",
67
51
  "updating": 0