python-kasa 0.6.2.1__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 (164) 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 +7 -5
  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 -562
  83. kasa/tests/device_fixtures.py +427 -0
  84. kasa/tests/discovery_fixtures.py +197 -0
  85. kasa/tests/fakeprotocol_iot.py +64 -6
  86. kasa/tests/fakeprotocol_smart.py +215 -22
  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/child/KE100(EU)_1.0_2.4.0.json +170 -0
  99. kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +171 -0
  100. kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +171 -0
  101. kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +526 -0
  102. kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +533 -0
  103. kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +530 -0
  104. kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
  105. kasa/tests/smart/__init__.py +0 -0
  106. kasa/tests/smart/features/__init__.py +0 -0
  107. kasa/tests/smart/features/test_brightness.py +55 -0
  108. kasa/tests/smart/features/test_colortemp.py +30 -0
  109. kasa/tests/smart/modules/__init__.py +0 -0
  110. kasa/tests/smart/modules/test_contact.py +28 -0
  111. kasa/tests/smart/modules/test_fan.py +79 -0
  112. kasa/tests/smart/modules/test_firmware.py +108 -0
  113. kasa/tests/smart/modules/test_humidity.py +28 -0
  114. kasa/tests/smart/modules/test_light_effect.py +41 -0
  115. kasa/tests/smart/modules/test_temperature.py +47 -0
  116. kasa/tests/smart/modules/test_temperaturecontrol.py +137 -0
  117. kasa/tests/smart/modules/test_waterleak.py +42 -0
  118. kasa/tests/test_aestransport.py +115 -23
  119. kasa/tests/test_bulb.py +115 -85
  120. kasa/tests/test_childdevice.py +19 -7
  121. kasa/tests/test_cli.py +453 -99
  122. kasa/tests/test_common_modules.py +216 -0
  123. kasa/tests/test_device.py +268 -0
  124. kasa/tests/test_device_factory.py +61 -35
  125. kasa/tests/test_device_type.py +1 -1
  126. kasa/tests/test_deviceconfig.py +2 -2
  127. kasa/tests/test_dimmer.py +33 -24
  128. kasa/tests/test_discovery.py +112 -63
  129. kasa/tests/test_emeter.py +14 -10
  130. kasa/tests/test_feature.py +205 -0
  131. kasa/tests/test_httpclient.py +9 -9
  132. kasa/tests/test_iotdevice.py +286 -0
  133. kasa/tests/test_klapprotocol.py +94 -37
  134. kasa/tests/test_lightstrip.py +24 -19
  135. kasa/tests/test_plug.py +46 -8
  136. kasa/tests/test_protocol.py +8 -10
  137. kasa/tests/test_readme_examples.py +87 -26
  138. kasa/tests/test_smartdevice.py +203 -311
  139. kasa/tests/test_smartprotocol.py +130 -25
  140. kasa/tests/test_strip.py +15 -6
  141. kasa/tests/test_usage.py +1 -1
  142. kasa/xortransport.py +15 -12
  143. {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev0.dist-info}/METADATA +45 -143
  144. python_kasa-0.7.0.dev0.dist-info/RECORD +239 -0
  145. kasa/modules/emeter.py +0 -111
  146. kasa/smartlightstrip.py +0 -143
  147. kasa/smartplug.py +0 -91
  148. kasa/tapo/__init__.py +0 -7
  149. kasa/tapo/childdevice.py +0 -41
  150. kasa/tapo/tapobulb.py +0 -262
  151. kasa/tapo/tapodevice.py +0 -409
  152. kasa/tapo/tapoplug.py +0 -45
  153. kasa/tests/fixtures/HS105(US)_1.0_mocked.json +0 -47
  154. kasa/tests/fixtures/HS110(EU)_2.0_mocked.json +0 -50
  155. kasa/tests/fixtures/HS110(US)_1.0_mocked.json +0 -50
  156. kasa/tests/fixtures/HS200(US)_1.0_mocked.json +0 -47
  157. kasa/tests/fixtures/HS220(US)_1.0_mocked.json +0 -75
  158. kasa/tests/fixtures/LB100(US)_1.0_mocked.json +0 -103
  159. kasa/tests/fixtures/LB120(US)_1.0_mocked.json +0 -103
  160. kasa/tests/fixtures/LB130(US)_1.0_mocked.json +0 -104
  161. python_kasa-0.6.2.1.dist-info/RECORD +0 -167
  162. {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev0.dist-info}/LICENSE +0 -0
  163. {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev0.dist-info}/WHEEL +0 -0
  164. {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,449 @@
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": "inherit",
18
+ "ver_code": 1
19
+ },
20
+ {
21
+ "id": "time",
22
+ "ver_code": 1
23
+ },
24
+ {
25
+ "id": "wireless",
26
+ "ver_code": 1
27
+ },
28
+ {
29
+ "id": "schedule",
30
+ "ver_code": 2
31
+ },
32
+ {
33
+ "id": "countdown",
34
+ "ver_code": 2
35
+ },
36
+ {
37
+ "id": "antitheft",
38
+ "ver_code": 1
39
+ },
40
+ {
41
+ "id": "account",
42
+ "ver_code": 1
43
+ },
44
+ {
45
+ "id": "synchronize",
46
+ "ver_code": 1
47
+ },
48
+ {
49
+ "id": "sunrise_sunset",
50
+ "ver_code": 1
51
+ },
52
+ {
53
+ "id": "cloud_connect",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "default_states",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "preset",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "brightness",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "color",
70
+ "ver_code": 1
71
+ },
72
+ {
73
+ "id": "color_temperature",
74
+ "ver_code": 1
75
+ },
76
+ {
77
+ "id": "auto_light",
78
+ "ver_code": 1
79
+ },
80
+ {
81
+ "id": "on_off_gradually",
82
+ "ver_code": 3
83
+ },
84
+ {
85
+ "id": "device_local_time",
86
+ "ver_code": 1
87
+ },
88
+ {
89
+ "id": "light_effect",
90
+ "ver_code": 1
91
+ },
92
+ {
93
+ "id": "iot_cloud",
94
+ "ver_code": 1
95
+ },
96
+ {
97
+ "id": "bulb_quick_control",
98
+ "ver_code": 1
99
+ },
100
+ {
101
+ "id": "localSmart",
102
+ "ver_code": 1
103
+ }
104
+ ]
105
+ },
106
+ "discovery_result": {
107
+ "device_id": "00000000000000000000000000000000",
108
+ "device_model": "L530E(EU)",
109
+ "device_type": "SMART.TAPOBULB",
110
+ "factory_default": false,
111
+ "ip": "127.0.0.123",
112
+ "is_support_iot_cloud": true,
113
+ "mac": "5C-E9-31-00-00-00",
114
+ "mgt_encrypt_schm": {
115
+ "encrypt_type": "KLAP",
116
+ "http_port": 80,
117
+ "is_support_https": false,
118
+ "lv": 2
119
+ },
120
+ "obd_src": "tplink",
121
+ "owner": "00000000000000000000000000000000"
122
+ },
123
+ "get_antitheft_rules": {
124
+ "antitheft_rule_max_count": 1,
125
+ "enable": false,
126
+ "rule_list": []
127
+ },
128
+ "get_auto_light_info": {
129
+ "enable": false,
130
+ "mode": "light_track"
131
+ },
132
+ "get_auto_update_info": {
133
+ "enable": false,
134
+ "random_range": 120,
135
+ "time": 180
136
+ },
137
+ "get_connect_cloud_state": {
138
+ "status": 0
139
+ },
140
+ "get_countdown_rules": {
141
+ "countdown_rule_max_count": 1,
142
+ "enable": false,
143
+ "rule_list": []
144
+ },
145
+ "get_device_info": {
146
+ "avatar": "bulb",
147
+ "brightness": 100,
148
+ "color_temp": 2700,
149
+ "color_temp_range": [
150
+ 2500,
151
+ 6500
152
+ ],
153
+ "default_states": {
154
+ "re_power_type": "always_on",
155
+ "state": {
156
+ "brightness": 100,
157
+ "color_temp": 2700,
158
+ "hue": 0,
159
+ "saturation": 100
160
+ },
161
+ "type": "last_states"
162
+ },
163
+ "device_id": "0000000000000000000000000000000000000000",
164
+ "device_on": true,
165
+ "dynamic_light_effect_enable": false,
166
+ "fw_id": "00000000000000000000000000000000",
167
+ "fw_ver": "1.1.6 Build 240130 Rel.173828",
168
+ "has_set_location_info": true,
169
+ "hue": 0,
170
+ "hw_id": "00000000000000000000000000000000",
171
+ "hw_ver": "3.0",
172
+ "ip": "127.0.0.123",
173
+ "lang": "de_DE",
174
+ "latitude": 0,
175
+ "longitude": 0,
176
+ "mac": "5C-E9-31-00-00-00",
177
+ "model": "L530",
178
+ "nickname": "TGl2aW5nIFJvb20=",
179
+ "oem_id": "00000000000000000000000000000000",
180
+ "overheated": false,
181
+ "region": "Europe/Berlin",
182
+ "rssi": -52,
183
+ "saturation": 100,
184
+ "signal_level": 2,
185
+ "specs": "",
186
+ "ssid": "I01BU0tFRF9TU0lEIw==",
187
+ "time_diff": 60,
188
+ "type": "SMART.TAPOBULB"
189
+ },
190
+ "get_device_time": {
191
+ "region": "Europe/Berlin",
192
+ "time_diff": 60,
193
+ "timestamp": 1708652415
194
+ },
195
+ "get_device_usage": {
196
+ "power_usage": {
197
+ "past30": 21,
198
+ "past7": 21,
199
+ "today": 21
200
+ },
201
+ "saved_power": {
202
+ "past30": 100,
203
+ "past7": 99,
204
+ "today": 99
205
+ },
206
+ "time_usage": {
207
+ "past30": 121,
208
+ "past7": 120,
209
+ "today": 120
210
+ }
211
+ },
212
+ "get_dynamic_light_effect_rules": {
213
+ "enable": false,
214
+ "max_count": 2,
215
+ "rule_list": [
216
+ {
217
+ "change_mode": "direct",
218
+ "change_time": 1000,
219
+ "color_status_list": [
220
+ [
221
+ 100,
222
+ 0,
223
+ 0,
224
+ 2700
225
+ ],
226
+ [
227
+ 100,
228
+ 321,
229
+ 99,
230
+ 0
231
+ ],
232
+ [
233
+ 100,
234
+ 196,
235
+ 99,
236
+ 0
237
+ ],
238
+ [
239
+ 100,
240
+ 6,
241
+ 97,
242
+ 0
243
+ ],
244
+ [
245
+ 100,
246
+ 160,
247
+ 100,
248
+ 0
249
+ ],
250
+ [
251
+ 100,
252
+ 274,
253
+ 95,
254
+ 0
255
+ ],
256
+ [
257
+ 100,
258
+ 48,
259
+ 100,
260
+ 0
261
+ ],
262
+ [
263
+ 100,
264
+ 242,
265
+ 99,
266
+ 0
267
+ ]
268
+ ],
269
+ "id": "L1",
270
+ "scene_name": ""
271
+ },
272
+ {
273
+ "change_mode": "bln",
274
+ "change_time": 2000,
275
+ "color_status_list": [
276
+ [
277
+ 100,
278
+ 54,
279
+ 6,
280
+ 0
281
+ ],
282
+ [
283
+ 100,
284
+ 19,
285
+ 39,
286
+ 0
287
+ ],
288
+ [
289
+ 100,
290
+ 194,
291
+ 52,
292
+ 0
293
+ ],
294
+ [
295
+ 100,
296
+ 324,
297
+ 24,
298
+ 0
299
+ ],
300
+ [
301
+ 100,
302
+ 170,
303
+ 34,
304
+ 0
305
+ ],
306
+ [
307
+ 100,
308
+ 276,
309
+ 27,
310
+ 0
311
+ ],
312
+ [
313
+ 100,
314
+ 56,
315
+ 46,
316
+ 0
317
+ ],
318
+ [
319
+ 100,
320
+ 221,
321
+ 36,
322
+ 0
323
+ ]
324
+ ],
325
+ "id": "L2",
326
+ "scene_name": ""
327
+ }
328
+ ],
329
+ "start_index": 0,
330
+ "sum": 2
331
+ },
332
+ "get_fw_download_state": {
333
+ "auto_upgrade": false,
334
+ "download_progress": 0,
335
+ "reboot_time": 5,
336
+ "status": 0,
337
+ "upgrade_time": 5
338
+ },
339
+ "get_inherit_info": null,
340
+ "get_latest_fw": {
341
+ "fw_size": 0,
342
+ "fw_ver": "1.1.6 Build 240130 Rel.173828",
343
+ "hw_id": "",
344
+ "need_to_upgrade": false,
345
+ "oem_id": "",
346
+ "release_date": "",
347
+ "release_note": "",
348
+ "type": 0
349
+ },
350
+ "get_next_event": {},
351
+ "get_on_off_gradually_info": {
352
+ "off_state": {
353
+ "duration": 2,
354
+ "enable": true,
355
+ "max_duration": 60
356
+ },
357
+ "on_state": {
358
+ "duration": 2,
359
+ "enable": true,
360
+ "max_duration": 60
361
+ }
362
+ },
363
+ "get_preset_rules": {
364
+ "states": [
365
+ {
366
+ "brightness": 50,
367
+ "color_temp": 2700,
368
+ "hue": 0,
369
+ "saturation": 100
370
+ },
371
+ {
372
+ "brightness": 100,
373
+ "color_temp": 0,
374
+ "hue": 240,
375
+ "saturation": 100
376
+ },
377
+ {
378
+ "brightness": 100,
379
+ "color_temp": 0,
380
+ "hue": 0,
381
+ "saturation": 100
382
+ },
383
+ {
384
+ "brightness": 100,
385
+ "color_temp": 0,
386
+ "hue": 120,
387
+ "saturation": 100
388
+ },
389
+ {
390
+ "brightness": 100,
391
+ "color_temp": 0,
392
+ "hue": 277,
393
+ "saturation": 86
394
+ },
395
+ {
396
+ "brightness": 100,
397
+ "color_temp": 0,
398
+ "hue": 60,
399
+ "saturation": 100
400
+ },
401
+ {
402
+ "brightness": 100,
403
+ "color_temp": 0,
404
+ "hue": 300,
405
+ "saturation": 100
406
+ }
407
+ ]
408
+ },
409
+ "get_schedule_rules": {
410
+ "enable": false,
411
+ "rule_list": [],
412
+ "schedule_rule_max_count": 32,
413
+ "start_index": 0,
414
+ "sum": 0
415
+ },
416
+ "get_wireless_scan_info": {
417
+ "ap_list": [],
418
+ "wep_supported": false
419
+ },
420
+ "qs_component_nego": {
421
+ "component_list": [
422
+ {
423
+ "id": "quick_setup",
424
+ "ver_code": 3
425
+ },
426
+ {
427
+ "id": "sunrise_sunset",
428
+ "ver_code": 1
429
+ },
430
+ {
431
+ "id": "inherit",
432
+ "ver_code": 1
433
+ },
434
+ {
435
+ "id": "iot_cloud",
436
+ "ver_code": 1
437
+ },
438
+ {
439
+ "id": "firmware",
440
+ "ver_code": 2
441
+ }
442
+ ],
443
+ "extra_info": {
444
+ "device_model": "L530",
445
+ "device_type": "SMART.TAPOBULB",
446
+ "is_klap": true
447
+ }
448
+ }
449
+ }
@@ -0,0 +1,173 @@
1
+ {
2
+ "component_nego": {
3
+ "component_list": [
4
+ {
5
+ "id": "device",
6
+ "ver_code": 1
7
+ },
8
+ {
9
+ "id": "firmware",
10
+ "ver_code": 1
11
+ },
12
+ {
13
+ "id": "quick_setup",
14
+ "ver_code": 1
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": 1
27
+ },
28
+ {
29
+ "id": "countdown",
30
+ "ver_code": 1
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
+ },
58
+ "discovery_result": {
59
+ "device_id": "00000000000000000000000000000000",
60
+ "device_model": "P100",
61
+ "device_type": "SMART.TAPOPLUG",
62
+ "factory_default": false,
63
+ "ip": "127.0.0.123",
64
+ "mac": "1C-3B-F3-00-00-00",
65
+ "mgt_encrypt_schm": {
66
+ "encrypt_type": "AES",
67
+ "http_port": 80,
68
+ "is_support_https": false
69
+ },
70
+ "owner": "00000000000000000000000000000000"
71
+ },
72
+ "get_antitheft_rules": {
73
+ "antitheft_rule_max_count": 1,
74
+ "enable": false,
75
+ "rule_list": []
76
+ },
77
+ "get_connect_cloud_state": {
78
+ "status": -1001
79
+ },
80
+ "get_countdown_rules": {
81
+ "countdown_rule_max_count": 1,
82
+ "enable": false,
83
+ "rule_list": []
84
+ },
85
+ "get_device_info": {
86
+ "avatar": "plug",
87
+ "device_id": "0000000000000000000000000000000000000000",
88
+ "device_on": true,
89
+ "fw_id": "00000000000000000000000000000000",
90
+ "fw_ver": "1.1.3 Build 20191017 Rel. 57937",
91
+ "has_set_location_info": true,
92
+ "hw_id": "00000000000000000000000000000000",
93
+ "hw_ver": "1.0.0",
94
+ "ip": "127.0.0.123",
95
+ "latitude": 0,
96
+ "location": "hallway",
97
+ "longitude": 0,
98
+ "mac": "1C-3B-F3-00-00-00",
99
+ "model": "P100",
100
+ "nickname": "I01BU0tFRF9OQU1FIw==",
101
+ "oem_id": "00000000000000000000000000000000",
102
+ "on_time": 6868,
103
+ "overheated": false,
104
+ "signal_level": 2,
105
+ "specs": "US",
106
+ "ssid": "I01BU0tFRF9TU0lEIw==",
107
+ "time_usage_past30": 114,
108
+ "time_usage_past7": 114,
109
+ "time_usage_today": 114,
110
+ "type": "SMART.TAPOPLUG"
111
+ },
112
+ "get_device_time": {
113
+ "region": "Europe/London",
114
+ "time_diff": 0,
115
+ "timestamp": 1707905077
116
+ },
117
+ "get_fw_download_state": {
118
+ "download_progress": 0,
119
+ "reboot_time": 10,
120
+ "status": 0,
121
+ "upgrade_time": 0
122
+ },
123
+ "get_latest_fw": {
124
+ "fw_size": 786432,
125
+ "fw_ver": "1.3.7 Build 20230711 Rel.61904",
126
+ "hw_id": "00000000000000000000000000000000",
127
+ "need_to_upgrade": true,
128
+ "oem_id": "00000000000000000000000000000000",
129
+ "release_date": "2023-07-26",
130
+ "release_note": "Modifications and Bug fixes:\nEnhanced device security.",
131
+ "type": 3
132
+ },
133
+ "get_led_info": {
134
+ "led_rule": "always",
135
+ "led_status": true
136
+ },
137
+ "get_next_event": {
138
+ "action": -1,
139
+ "e_time": 0,
140
+ "id": "0",
141
+ "s_time": 0,
142
+ "type": 0
143
+ },
144
+ "get_schedule_rules": {
145
+ "enable": false,
146
+ "rule_list": [],
147
+ "schedule_rule_max_count": 20,
148
+ "start_index": 0,
149
+ "sum": 0
150
+ },
151
+ "get_wireless_scan_info": {
152
+ "ap_list": [],
153
+ "start_index": 0,
154
+ "sum": 0,
155
+ "wep_supported": false
156
+ },
157
+ "qs_component_nego": {
158
+ "component_list": [
159
+ {
160
+ "id": "quick_setup",
161
+ "ver_code": 1
162
+ },
163
+ {
164
+ "id": "sunrise_sunset",
165
+ "ver_code": 1
166
+ }
167
+ ],
168
+ "extra_info": {
169
+ "device_model": "P100",
170
+ "device_type": "SMART.TAPOPLUG"
171
+ }
172
+ }
173
+ }