python-kasa 0.6.2__py3-none-any.whl → 0.7.0.dev0__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 (168) hide show
  1. kasa/__init__.py +88 -27
  2. kasa/aestransport.py +51 -34
  3. kasa/cli.py +326 -130
  4. kasa/device.py +406 -0
  5. kasa/device_factory.py +83 -44
  6. kasa/device_type.py +7 -3
  7. kasa/deviceconfig.py +16 -9
  8. kasa/discover.py +100 -81
  9. kasa/emeterstatus.py +12 -7
  10. kasa/exceptions.py +41 -26
  11. kasa/feature.py +201 -0
  12. kasa/httpclient.py +21 -14
  13. kasa/interfaces/__init__.py +16 -0
  14. kasa/interfaces/fan.py +20 -0
  15. kasa/interfaces/led.py +38 -0
  16. kasa/interfaces/light.py +133 -0
  17. kasa/interfaces/lighteffect.py +80 -0
  18. kasa/interfaces/lightpreset.py +76 -0
  19. kasa/iot/__init__.py +18 -0
  20. kasa/{effects.py → iot/effects.py} +4 -2
  21. kasa/{smartbulb.py → iot/iotbulb.py} +100 -147
  22. kasa/{smartdevice.py → iot/iotdevice.py} +157 -286
  23. kasa/{smartdimmer.py → iot/iotdimmer.py} +42 -33
  24. kasa/iot/iotlightstrip.py +71 -0
  25. kasa/{modules/module.py → iot/iotmodule.py} +22 -42
  26. kasa/iot/iotplug.py +94 -0
  27. kasa/{smartstrip.py → iot/iotstrip.py} +57 -75
  28. kasa/{modules → iot/modules}/__init__.py +10 -2
  29. kasa/{modules → iot/modules}/ambientlight.py +31 -3
  30. kasa/{modules → iot/modules}/antitheft.py +1 -0
  31. kasa/{modules → iot/modules}/cloud.py +25 -6
  32. kasa/{modules → iot/modules}/countdown.py +1 -0
  33. kasa/iot/modules/emeter.py +210 -0
  34. kasa/iot/modules/led.py +32 -0
  35. kasa/iot/modules/light.py +221 -0
  36. kasa/iot/modules/lighteffect.py +122 -0
  37. kasa/iot/modules/lightpreset.py +151 -0
  38. kasa/{modules → iot/modules}/motion.py +8 -8
  39. kasa/{modules → iot/modules}/rulemodule.py +11 -12
  40. kasa/{modules → iot/modules}/schedule.py +1 -0
  41. kasa/{modules → iot/modules}/time.py +5 -4
  42. kasa/{modules → iot/modules}/usage.py +10 -8
  43. kasa/iotprotocol.py +22 -20
  44. kasa/klaptransport.py +25 -15
  45. kasa/module.py +136 -0
  46. kasa/modulemapping.py +25 -0
  47. kasa/modulemapping.pyi +96 -0
  48. kasa/protocol.py +6 -4
  49. kasa/smart/__init__.py +6 -0
  50. kasa/smart/effects.py +429 -0
  51. kasa/smart/modules/__init__.py +57 -0
  52. kasa/smart/modules/alarm.py +142 -0
  53. kasa/smart/modules/autooff.py +96 -0
  54. kasa/smart/modules/batterysensor.py +54 -0
  55. kasa/smart/modules/brightness.py +66 -0
  56. kasa/smart/modules/childdevice.py +10 -0
  57. kasa/smart/modules/cloud.py +42 -0
  58. kasa/smart/modules/color.py +96 -0
  59. kasa/smart/modules/colortemperature.py +78 -0
  60. kasa/smart/modules/contactsensor.py +42 -0
  61. kasa/smart/modules/devicemodule.py +22 -0
  62. kasa/smart/modules/energy.py +101 -0
  63. kasa/smart/modules/fan.py +80 -0
  64. kasa/smart/modules/firmware.py +216 -0
  65. kasa/smart/modules/frostprotection.py +59 -0
  66. kasa/smart/modules/humiditysensor.py +55 -0
  67. kasa/smart/modules/led.py +49 -0
  68. kasa/smart/modules/light.py +139 -0
  69. kasa/smart/modules/lighteffect.py +115 -0
  70. kasa/smart/modules/lightpreset.py +142 -0
  71. kasa/smart/modules/lightstripeffect.py +135 -0
  72. kasa/smart/modules/lighttransition.py +183 -0
  73. kasa/smart/modules/reportmode.py +36 -0
  74. kasa/smart/modules/temperaturecontrol.py +177 -0
  75. kasa/smart/modules/temperaturesensor.py +77 -0
  76. kasa/smart/modules/time.py +57 -0
  77. kasa/smart/modules/waterleaksensor.py +66 -0
  78. kasa/smart/smartchilddevice.py +65 -0
  79. kasa/smart/smartdevice.py +653 -0
  80. kasa/smart/smartmodule.py +112 -0
  81. kasa/smartprotocol.py +107 -41
  82. kasa/tests/conftest.py +27 -551
  83. kasa/tests/device_fixtures.py +427 -0
  84. kasa/tests/discovery_fixtures.py +197 -0
  85. kasa/tests/{newfakes.py → fakeprotocol_iot.py} +61 -291
  86. kasa/tests/fakeprotocol_smart.py +318 -0
  87. kasa/tests/fixtureinfo.py +154 -0
  88. kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +221 -0
  89. kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +547 -0
  90. kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +391 -0
  91. kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +1557 -0
  92. kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +899 -0
  93. kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +479 -0
  94. kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +449 -0
  95. kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +173 -0
  96. kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +204 -0
  97. kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +566 -0
  98. kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +13 -23
  99. kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +6 -6
  100. kasa/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +295 -0
  101. kasa/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +423 -0
  102. kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +170 -0
  103. kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +171 -0
  104. kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +171 -0
  105. kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +526 -0
  106. kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +533 -0
  107. kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +530 -0
  108. kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
  109. kasa/tests/smart/__init__.py +0 -0
  110. kasa/tests/smart/features/__init__.py +0 -0
  111. kasa/tests/smart/features/test_brightness.py +55 -0
  112. kasa/tests/smart/features/test_colortemp.py +30 -0
  113. kasa/tests/smart/modules/__init__.py +0 -0
  114. kasa/tests/smart/modules/test_contact.py +28 -0
  115. kasa/tests/smart/modules/test_fan.py +79 -0
  116. kasa/tests/smart/modules/test_firmware.py +108 -0
  117. kasa/tests/smart/modules/test_humidity.py +28 -0
  118. kasa/tests/smart/modules/test_light_effect.py +41 -0
  119. kasa/tests/smart/modules/test_temperature.py +47 -0
  120. kasa/tests/smart/modules/test_temperaturecontrol.py +137 -0
  121. kasa/tests/smart/modules/test_waterleak.py +42 -0
  122. kasa/tests/test_aestransport.py +115 -25
  123. kasa/tests/test_bulb.py +169 -86
  124. kasa/tests/test_childdevice.py +84 -0
  125. kasa/tests/test_cli.py +452 -100
  126. kasa/tests/test_common_modules.py +216 -0
  127. kasa/tests/test_device.py +268 -0
  128. kasa/tests/test_device_factory.py +61 -41
  129. kasa/tests/test_device_type.py +1 -1
  130. kasa/tests/test_deviceconfig.py +2 -5
  131. kasa/tests/test_dimmer.py +33 -24
  132. kasa/tests/test_discovery.py +112 -69
  133. kasa/tests/test_emeter.py +39 -12
  134. kasa/tests/test_feature.py +205 -0
  135. kasa/tests/test_httpclient.py +9 -9
  136. kasa/tests/test_iotdevice.py +286 -0
  137. kasa/tests/test_klapprotocol.py +94 -41
  138. kasa/tests/test_lightstrip.py +24 -19
  139. kasa/tests/test_plug.py +51 -9
  140. kasa/tests/test_protocol.py +8 -12
  141. kasa/tests/test_readme_examples.py +86 -27
  142. kasa/tests/test_smartdevice.py +211 -247
  143. kasa/tests/test_smartprotocol.py +129 -26
  144. kasa/tests/test_strip.py +15 -6
  145. kasa/tests/test_usage.py +1 -3
  146. kasa/xortransport.py +15 -12
  147. {python_kasa-0.6.2.dist-info → python_kasa-0.7.0.dev0.dist-info}/METADATA +45 -141
  148. python_kasa-0.7.0.dev0.dist-info/RECORD +239 -0
  149. {python_kasa-0.6.2.dist-info → python_kasa-0.7.0.dev0.dist-info}/WHEEL +1 -1
  150. kasa/modules/emeter.py +0 -111
  151. kasa/smartlightstrip.py +0 -143
  152. kasa/smartplug.py +0 -91
  153. kasa/tapo/__init__.py +0 -7
  154. kasa/tapo/childdevice.py +0 -44
  155. kasa/tapo/tapobulb.py +0 -262
  156. kasa/tapo/tapodevice.py +0 -383
  157. kasa/tapo/tapoplug.py +0 -45
  158. kasa/tests/fixtures/HS105(US)_1.0_mocked.json +0 -47
  159. kasa/tests/fixtures/HS110(EU)_2.0_mocked.json +0 -50
  160. kasa/tests/fixtures/HS110(US)_1.0_mocked.json +0 -50
  161. kasa/tests/fixtures/HS200(US)_1.0_mocked.json +0 -47
  162. kasa/tests/fixtures/HS220(US)_1.0_mocked.json +0 -75
  163. kasa/tests/fixtures/LB100(US)_1.0_mocked.json +0 -103
  164. kasa/tests/fixtures/LB120(US)_1.0_mocked.json +0 -103
  165. kasa/tests/fixtures/LB130(US)_1.0_mocked.json +0 -104
  166. python_kasa-0.6.2.dist-info/RECORD +0 -163
  167. {python_kasa-0.6.2.dist-info → python_kasa-0.7.0.dev0.dist-info}/LICENSE +0 -0
  168. {python_kasa-0.6.2.dist-info → python_kasa-0.7.0.dev0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,566 @@
1
+ {
2
+ "component_nego": {
3
+ "component_list": [
4
+ {
5
+ "id": "device",
6
+ "ver_code": 2
7
+ },
8
+ {
9
+ "id": "firmware",
10
+ "ver_code": 2
11
+ },
12
+ {
13
+ "id": "quick_setup",
14
+ "ver_code": 3
15
+ },
16
+ {
17
+ "id": "time",
18
+ "ver_code": 1
19
+ },
20
+ {
21
+ "id": "wireless",
22
+ "ver_code": 1
23
+ },
24
+ {
25
+ "id": "schedule",
26
+ "ver_code": 2
27
+ },
28
+ {
29
+ "id": "countdown",
30
+ "ver_code": 2
31
+ },
32
+ {
33
+ "id": "antitheft",
34
+ "ver_code": 1
35
+ },
36
+ {
37
+ "id": "account",
38
+ "ver_code": 1
39
+ },
40
+ {
41
+ "id": "synchronize",
42
+ "ver_code": 1
43
+ },
44
+ {
45
+ "id": "sunrise_sunset",
46
+ "ver_code": 1
47
+ },
48
+ {
49
+ "id": "led",
50
+ "ver_code": 1
51
+ },
52
+ {
53
+ "id": "cloud_connect",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "iot_cloud",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "device_local_time",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "default_states",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "energy_monitoring",
70
+ "ver_code": 1
71
+ }
72
+ ]
73
+ },
74
+ "discovery_result": {
75
+ "device_id": "00000000000000000000000000000000",
76
+ "device_model": "P110(EU)",
77
+ "device_type": "SMART.TAPOPLUG",
78
+ "factory_default": false,
79
+ "ip": "127.0.0.123",
80
+ "is_support_iot_cloud": true,
81
+ "mac": "34-60-F9-00-00-00",
82
+ "mgt_encrypt_schm": {
83
+ "encrypt_type": "AES",
84
+ "http_port": 80,
85
+ "is_support_https": false
86
+ },
87
+ "owner": "00000000000000000000000000000000"
88
+ },
89
+ "get_antitheft_rules": {
90
+ "antitheft_rule_max_count": 1,
91
+ "enable": false,
92
+ "rule_list": []
93
+ },
94
+ "get_auto_update_info": {
95
+ "enable": false,
96
+ "random_range": 120,
97
+ "time": 180
98
+ },
99
+ "get_connect_cloud_state": {
100
+ "status": 0
101
+ },
102
+ "get_countdown_rules": {
103
+ "countdown_rule_max_count": 1,
104
+ "enable": false,
105
+ "rule_list": []
106
+ },
107
+ "get_device_info": {
108
+ "avatar": "plug",
109
+ "default_states": {
110
+ "state": {},
111
+ "type": "last_states"
112
+ },
113
+ "device_id": "0000000000000000000000000000000000000000",
114
+ "device_on": false,
115
+ "fw_id": "00000000000000000000000000000000",
116
+ "fw_ver": "1.0.7 Build 210629 Rel.174901",
117
+ "has_set_location_info": false,
118
+ "hw_id": "00000000000000000000000000000000",
119
+ "hw_ver": "1.0",
120
+ "ip": "127.0.0.123",
121
+ "lang": "en_US",
122
+ "latitude": 0,
123
+ "longitude": 0,
124
+ "mac": "34-60-F9-00-00-00",
125
+ "model": "P110",
126
+ "nickname": "I01BU0tFRF9OQU1FIw==",
127
+ "oem_id": "00000000000000000000000000000000",
128
+ "on_time": 0,
129
+ "overheated": false,
130
+ "region": "Europe/Lisbon",
131
+ "rssi": -55,
132
+ "signal_level": 2,
133
+ "specs": "",
134
+ "ssid": "I01BU0tFRF9TU0lEIw==",
135
+ "time_diff": 0,
136
+ "type": "SMART.TAPOPLUG"
137
+ },
138
+ "get_device_time": {
139
+ "region": "Europe/Lisbon",
140
+ "time_diff": 0,
141
+ "timestamp": 1708990159
142
+ },
143
+ "get_device_usage": {
144
+ "power_usage": {
145
+ "past30": 0,
146
+ "past7": 0,
147
+ "today": 0
148
+ },
149
+ "saved_power": {
150
+ "past30": 0,
151
+ "past7": 0,
152
+ "today": 0
153
+ },
154
+ "time_usage": {
155
+ "past30": 0,
156
+ "past7": 0,
157
+ "today": 0
158
+ }
159
+ },
160
+ "get_energy_usage": {
161
+ "current_power": 0,
162
+ "local_time": "2024-02-26 23:29:21",
163
+ "month_energy": 0,
164
+ "month_runtime": 0,
165
+ "past1y": [
166
+ 0,
167
+ 55,
168
+ 416,
169
+ 440,
170
+ 146,
171
+ 204,
172
+ 95,
173
+ 101,
174
+ 0,
175
+ 0,
176
+ 0,
177
+ 0
178
+ ],
179
+ "past24h": [
180
+ 0,
181
+ 0,
182
+ 0,
183
+ 0,
184
+ 0,
185
+ 0,
186
+ 0,
187
+ 0,
188
+ 0,
189
+ 0,
190
+ 0,
191
+ 0,
192
+ 0,
193
+ 0,
194
+ 0,
195
+ 0,
196
+ 0,
197
+ 0,
198
+ 0,
199
+ 0,
200
+ 0,
201
+ 0,
202
+ 0,
203
+ 0
204
+ ],
205
+ "past30d": [
206
+ 0,
207
+ 0,
208
+ 0,
209
+ 0,
210
+ 0,
211
+ 0,
212
+ 0,
213
+ 0,
214
+ 0,
215
+ 0,
216
+ 0,
217
+ 0,
218
+ 0,
219
+ 0,
220
+ 0,
221
+ 0,
222
+ 0,
223
+ 0,
224
+ 0,
225
+ 0,
226
+ 0,
227
+ 0,
228
+ 0,
229
+ 0,
230
+ 0,
231
+ 0,
232
+ 0,
233
+ 0,
234
+ 0,
235
+ 0
236
+ ],
237
+ "past7d": [
238
+ [
239
+ 0,
240
+ 0,
241
+ 0,
242
+ 0,
243
+ 0,
244
+ 0,
245
+ 0,
246
+ 0,
247
+ 0,
248
+ 0,
249
+ 0,
250
+ 0,
251
+ 0,
252
+ 0,
253
+ 0,
254
+ 0,
255
+ 0,
256
+ 0,
257
+ 0,
258
+ 0,
259
+ 0,
260
+ 0,
261
+ 0,
262
+ 0
263
+ ],
264
+ [
265
+ 0,
266
+ 0,
267
+ 0,
268
+ 0,
269
+ 0,
270
+ 0,
271
+ 0,
272
+ 0,
273
+ 0,
274
+ 0,
275
+ 0,
276
+ 0,
277
+ 0,
278
+ 0,
279
+ 0,
280
+ 0,
281
+ 0,
282
+ 0,
283
+ 0,
284
+ 0,
285
+ 0,
286
+ 0,
287
+ 0,
288
+ 0
289
+ ],
290
+ [
291
+ 0,
292
+ 0,
293
+ 0,
294
+ 0,
295
+ 0,
296
+ 0,
297
+ 0,
298
+ 0,
299
+ 0,
300
+ 0,
301
+ 0,
302
+ 0,
303
+ 0,
304
+ 0,
305
+ 0,
306
+ 0,
307
+ 0,
308
+ 0,
309
+ 0,
310
+ 0,
311
+ 0,
312
+ 0,
313
+ 0,
314
+ 0
315
+ ],
316
+ [
317
+ 0,
318
+ 0,
319
+ 0,
320
+ 0,
321
+ 0,
322
+ 0,
323
+ 0,
324
+ 0,
325
+ 0,
326
+ 0,
327
+ 0,
328
+ 0,
329
+ 0,
330
+ 0,
331
+ 0,
332
+ 0,
333
+ 0,
334
+ 0,
335
+ 0,
336
+ 0,
337
+ 0,
338
+ 0,
339
+ 0,
340
+ 0
341
+ ],
342
+ [
343
+ 0,
344
+ 0,
345
+ 0,
346
+ 0,
347
+ 0,
348
+ 0,
349
+ 0,
350
+ 0,
351
+ 0,
352
+ 0,
353
+ 0,
354
+ 0,
355
+ 0,
356
+ 0,
357
+ 0,
358
+ 0,
359
+ 0,
360
+ 0,
361
+ 0,
362
+ 0,
363
+ 0,
364
+ 0,
365
+ 0,
366
+ 0
367
+ ],
368
+ [
369
+ 0,
370
+ 0,
371
+ 0,
372
+ 0,
373
+ 0,
374
+ 0,
375
+ 0,
376
+ 0,
377
+ 0,
378
+ 0,
379
+ 0,
380
+ 0,
381
+ 0,
382
+ 0,
383
+ 0,
384
+ 0,
385
+ 0,
386
+ 0,
387
+ 0,
388
+ 0,
389
+ 0,
390
+ 0,
391
+ 0,
392
+ 0
393
+ ],
394
+ [
395
+ 0,
396
+ 0,
397
+ 0,
398
+ 0,
399
+ 0,
400
+ 0,
401
+ 0,
402
+ 0,
403
+ 0,
404
+ 0,
405
+ 0,
406
+ 0,
407
+ 0,
408
+ 0,
409
+ 0,
410
+ 0,
411
+ 0,
412
+ 0,
413
+ 0,
414
+ 0,
415
+ 0,
416
+ 0,
417
+ 0,
418
+ 0
419
+ ]
420
+ ],
421
+ "today_energy": 0,
422
+ "today_runtime": 0
423
+ },
424
+ "get_fw_download_state": {
425
+ "download_progress": 0,
426
+ "reboot_time": 5,
427
+ "status": 0,
428
+ "upgrade_time": 5
429
+ },
430
+ "get_latest_fw": {
431
+ "fw_size": 786432,
432
+ "fw_ver": "1.3.0 Build 230905 Rel.152200",
433
+ "hw_id": "00000000000000000000000000000000",
434
+ "need_to_upgrade": true,
435
+ "oem_id": "00000000000000000000000000000000",
436
+ "release_date": "2023-10-31",
437
+ "release_note": "Modifications and Bug Fixes:\n1. Improved stability and performance.\n2. Enhanced local communication security.",
438
+ "type": 2
439
+ },
440
+ "get_led_info": {
441
+ "led_rule": "always",
442
+ "led_status": false,
443
+ "night_mode": {
444
+ "end_time": 420,
445
+ "night_mode_type": "sunrise_sunset",
446
+ "start_time": 1140,
447
+ "sunrise_offset": 0,
448
+ "sunset_offset": 0
449
+ }
450
+ },
451
+ "get_next_event": {},
452
+ "get_schedule_rules": {
453
+ "enable": false,
454
+ "rule_list": [],
455
+ "schedule_rule_max_count": 32,
456
+ "start_index": 0,
457
+ "sum": 0
458
+ },
459
+ "get_wireless_scan_info": {
460
+ "ap_list": [
461
+ {
462
+ "bssid": "000000000000",
463
+ "channel": 0,
464
+ "cipher_type": 2,
465
+ "key_type": "wpa2_psk",
466
+ "signal_level": 2,
467
+ "ssid": "I01BU0tFRF9TU0lEIw=="
468
+ },
469
+ {
470
+ "bssid": "000000000000",
471
+ "channel": 0,
472
+ "cipher_type": 2,
473
+ "key_type": "wpa2_psk",
474
+ "signal_level": 2,
475
+ "ssid": "I01BU0tFRF9TU0lEIw=="
476
+ },
477
+ {
478
+ "bssid": "000000000000",
479
+ "channel": 0,
480
+ "cipher_type": 2,
481
+ "key_type": "wpa2_psk",
482
+ "signal_level": 2,
483
+ "ssid": "I01BU0tFRF9TU0lEIw=="
484
+ },
485
+ {
486
+ "bssid": "000000000000",
487
+ "channel": 0,
488
+ "cipher_type": 0,
489
+ "key_type": "none",
490
+ "signal_level": 2,
491
+ "ssid": "I01BU0tFRF9TU0lEIw=="
492
+ },
493
+ {
494
+ "bssid": "000000000000",
495
+ "channel": 0,
496
+ "cipher_type": 2,
497
+ "key_type": "wpa2_psk",
498
+ "signal_level": 1,
499
+ "ssid": "I01BU0tFRF9TU0lEIw=="
500
+ },
501
+ {
502
+ "bssid": "000000000000",
503
+ "channel": 0,
504
+ "cipher_type": 0,
505
+ "key_type": "none",
506
+ "signal_level": 1,
507
+ "ssid": "I01BU0tFRF9TU0lEIw=="
508
+ },
509
+ {
510
+ "bssid": "000000000000",
511
+ "channel": 0,
512
+ "cipher_type": 0,
513
+ "key_type": "none",
514
+ "signal_level": 1,
515
+ "ssid": "I01BU0tFRF9TU0lEIw=="
516
+ },
517
+ {
518
+ "bssid": "000000000000",
519
+ "channel": 0,
520
+ "cipher_type": 2,
521
+ "key_type": "wpa2_psk",
522
+ "signal_level": 1,
523
+ "ssid": "I01BU0tFRF9TU0lEIw=="
524
+ },
525
+ {
526
+ "bssid": "000000000000",
527
+ "channel": 0,
528
+ "cipher_type": 0,
529
+ "key_type": "none",
530
+ "signal_level": 1,
531
+ "ssid": "I01BU0tFRF9TU0lEIw=="
532
+ }
533
+ ],
534
+ "start_index": 0,
535
+ "sum": 9,
536
+ "wep_supported": false
537
+ },
538
+ "qs_component_nego": {
539
+ "component_list": [
540
+ {
541
+ "id": "quick_setup",
542
+ "ver_code": 3
543
+ },
544
+ {
545
+ "id": "sunrise_sunset",
546
+ "ver_code": 1
547
+ },
548
+ {
549
+ "id": "iot_cloud",
550
+ "ver_code": 1
551
+ },
552
+ {
553
+ "id": "inherit",
554
+ "ver_code": 1
555
+ },
556
+ {
557
+ "id": "firmware",
558
+ "ver_code": 2
559
+ }
560
+ ],
561
+ "extra_info": {
562
+ "device_model": "P110",
563
+ "device_type": "SMART.TAPOPLUG"
564
+ }
565
+ }
566
+ }
@@ -170,7 +170,7 @@
170
170
  "ver_code": 1
171
171
  }
172
172
  ],
173
- "device_id": "000000000000000000000000000000000000000000"
173
+ "device_id": "000000000000000000000000000000000000000002"
174
174
  },
175
175
  {
176
176
  "component_list": [
@@ -235,7 +235,7 @@
235
235
  "ver_code": 1
236
236
  }
237
237
  ],
238
- "device_id": "000000000000000000000000000000000000000000"
238
+ "device_id": "000000000000000000000000000000000000000001"
239
239
  },
240
240
  {
241
241
  "component_list": [
@@ -318,7 +318,7 @@
318
318
  },
319
319
  "type": "custom"
320
320
  },
321
- "device_id": "000000000000000000000000000000000000000000",
321
+ "device_id": "000000000000000000000000000000000000000002",
322
322
  "device_on": false,
323
323
  "fw_id": "00000000000000000000000000000000",
324
324
  "fw_ver": "1.0.13 Build 230925 Rel.150200",
@@ -332,7 +332,7 @@
332
332
  "nickname": "I01BU0tFRF9OQU1FIw==",
333
333
  "oem_id": "00000000000000000000000000000000",
334
334
  "on_time": 0,
335
- "original_device_id": "8022852468EC205A8178C7CBE81FC119213BC020",
335
+ "original_device_id": "0000000000000000000000000000000000000000",
336
336
  "overheat_status": "normal",
337
337
  "position": 3,
338
338
  "region": "Europe/Berlin",
@@ -347,7 +347,7 @@
347
347
  "default_states": {
348
348
  "type": "last_states"
349
349
  },
350
- "device_id": "000000000000000000000000000000000000000000",
350
+ "device_id": "000000000000000000000000000000000000000001",
351
351
  "device_on": false,
352
352
  "fw_id": "00000000000000000000000000000000",
353
353
  "fw_ver": "1.0.13 Build 230925 Rel.150200",
@@ -361,7 +361,7 @@
361
361
  "nickname": "I01BU0tFRF9OQU1FIw==",
362
362
  "oem_id": "00000000000000000000000000000000",
363
363
  "on_time": 0,
364
- "original_device_id": "8022852468EC205A8178C7CBE81FC119213BC020",
364
+ "original_device_id": "0000000000000000000000000000000000000000",
365
365
  "overheat_status": "normal",
366
366
  "position": 2,
367
367
  "region": "Europe/Berlin",
@@ -393,7 +393,7 @@
393
393
  "nickname": "I01BU0tFRF9OQU1FIw==",
394
394
  "oem_id": "00000000000000000000000000000000",
395
395
  "on_time": 0,
396
- "original_device_id": "8022852468EC205A8178C7CBE81FC119213BC020",
396
+ "original_device_id": "0000000000000000000000000000000000000000",
397
397
  "overheat_status": "normal",
398
398
  "position": 1,
399
399
  "region": "Europe/Berlin",
@@ -406,7 +406,7 @@
406
406
  "sum": 3
407
407
  },
408
408
  "get_connect_cloud_state": {
409
- "status": 0
409
+ "status": 2
410
410
  },
411
411
  "get_device_info": {
412
412
  "avatar": "",
@@ -435,12 +435,12 @@
435
435
  "get_device_time": {
436
436
  "region": "Europe/Berlin",
437
437
  "time_diff": 60,
438
- "timestamp": 1706320181
438
+ "timestamp": 1706810351
439
439
  },
440
440
  "get_device_usage": {
441
441
  "time_usage": {
442
- "past30": 0,
443
- "past7": 0,
442
+ "past30": 134,
443
+ "past7": 134,
444
444
  "today": 0
445
445
  }
446
446
  },
@@ -451,23 +451,13 @@
451
451
  "status": 0,
452
452
  "upgrade_time": 5
453
453
  },
454
- "get_latest_fw": {
455
- "fw_size": 0,
456
- "fw_ver": "1.0.13 Build 230925 Rel.150200",
457
- "hw_id": "",
458
- "need_to_upgrade": false,
459
- "oem_id": "",
460
- "release_date": "",
461
- "release_note": "",
462
- "type": 0
463
- },
464
454
  "get_led_info": {
465
455
  "led_rule": "night_mode",
466
456
  "led_status": false,
467
457
  "night_mode": {
468
- "end_time": 496,
458
+ "end_time": 489,
469
459
  "night_mode_type": "sunrise_sunset",
470
- "start_time": 1034,
460
+ "start_time": 1043,
471
461
  "sunrise_offset": 0,
472
462
  "sunset_offset": 0
473
463
  }