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
@@ -0,0 +1,414 @@
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": "auto_off",
70
+ "ver_code": 2
71
+ },
72
+ {
73
+ "id": "energy_monitoring",
74
+ "ver_code": 2
75
+ },
76
+ {
77
+ "id": "power_protection",
78
+ "ver_code": 1
79
+ },
80
+ {
81
+ "id": "homekit",
82
+ "ver_code": 2
83
+ },
84
+ {
85
+ "id": "current_protection",
86
+ "ver_code": 1
87
+ }
88
+ ]
89
+ },
90
+ "discovery_result": {
91
+ "device_id": "00000000000000000000000000000000",
92
+ "device_model": "EP25(US)",
93
+ "device_type": "SMART.KASAPLUG",
94
+ "factory_default": false,
95
+ "ip": "127.0.0.123",
96
+ "is_support_iot_cloud": true,
97
+ "mac": "3C-52-A1-00-00-00",
98
+ "mgt_encrypt_schm": {
99
+ "encrypt_type": "AES",
100
+ "http_port": 80,
101
+ "is_support_https": false,
102
+ "lv": 2
103
+ },
104
+ "obd_src": "tplink",
105
+ "owner": "00000000000000000000000000000000"
106
+ },
107
+ "get_antitheft_rules": {
108
+ "antitheft_rule_max_count": 1,
109
+ "enable": false,
110
+ "rule_list": []
111
+ },
112
+ "get_auto_off_config": {
113
+ "delay_min": 120,
114
+ "enable": false
115
+ },
116
+ "get_auto_update_info": {
117
+ "enable": true,
118
+ "random_range": 120,
119
+ "time": 180
120
+ },
121
+ "get_connect_cloud_state": {
122
+ "status": 0
123
+ },
124
+ "get_countdown_rules": {
125
+ "countdown_rule_max_count": 1,
126
+ "enable": false,
127
+ "rule_list": []
128
+ },
129
+ "get_current_power": {
130
+ "current_power": 0
131
+ },
132
+ "get_device_info": {
133
+ "auto_off_remain_time": 0,
134
+ "auto_off_status": "off",
135
+ "avatar": "plug",
136
+ "default_states": {
137
+ "state": {},
138
+ "type": "last_states"
139
+ },
140
+ "device_id": "0000000000000000000000000000000000000000",
141
+ "device_on": true,
142
+ "fw_id": "00000000000000000000000000000000",
143
+ "fw_ver": "1.0.2 Build 231108 Rel.163012",
144
+ "has_set_location_info": true,
145
+ "hw_id": "00000000000000000000000000000000",
146
+ "hw_ver": "2.6",
147
+ "ip": "127.0.0.123",
148
+ "lang": "en_US",
149
+ "latitude": 0,
150
+ "longitude": 0,
151
+ "mac": "3C-52-A1-00-00-00",
152
+ "model": "EP25",
153
+ "nickname": "I01BU0tFRF9OQU1FIw==",
154
+ "oem_id": "00000000000000000000000000000000",
155
+ "on_time": 155838,
156
+ "overcurrent_status": "normal",
157
+ "overheated": false,
158
+ "power_protection_status": "normal",
159
+ "region": "America/Chicago",
160
+ "rssi": -56,
161
+ "signal_level": 2,
162
+ "specs": "",
163
+ "ssid": "I01BU0tFRF9TU0lEIw==",
164
+ "time_diff": -360,
165
+ "type": "SMART.KASAPLUG"
166
+ },
167
+ "get_device_time": {
168
+ "region": "America/Chicago",
169
+ "time_diff": -360,
170
+ "timestamp": 1705991903
171
+ },
172
+ "get_device_usage": {
173
+ "power_usage": {
174
+ "past30": 0,
175
+ "past7": 0,
176
+ "today": 0
177
+ },
178
+ "saved_power": {
179
+ "past30": 41789,
180
+ "past7": 8678,
181
+ "today": 38
182
+ },
183
+ "time_usage": {
184
+ "past30": 41789,
185
+ "past7": 8678,
186
+ "today": 38
187
+ }
188
+ },
189
+ "get_electricity_price_config": {
190
+ "constant_price": 0,
191
+ "time_of_use_config": {
192
+ "summer": {
193
+ "midpeak": 0,
194
+ "offpeak": 0,
195
+ "onpeak": 0,
196
+ "period": [
197
+ 0,
198
+ 0,
199
+ 0,
200
+ 0
201
+ ],
202
+ "weekday_config": [
203
+ 1,
204
+ 1,
205
+ 1,
206
+ 1,
207
+ 1,
208
+ 1,
209
+ 1,
210
+ 1,
211
+ 1,
212
+ 1,
213
+ 1,
214
+ 1,
215
+ 1,
216
+ 1,
217
+ 1,
218
+ 1,
219
+ 1,
220
+ 1,
221
+ 1,
222
+ 1,
223
+ 1,
224
+ 1,
225
+ 1,
226
+ 1
227
+ ],
228
+ "weekend_config": [
229
+ 1,
230
+ 1,
231
+ 1,
232
+ 1,
233
+ 1,
234
+ 1,
235
+ 1,
236
+ 1,
237
+ 1,
238
+ 1,
239
+ 1,
240
+ 1,
241
+ 1,
242
+ 1,
243
+ 1,
244
+ 1,
245
+ 1,
246
+ 1,
247
+ 1,
248
+ 1,
249
+ 1,
250
+ 1,
251
+ 1,
252
+ 1
253
+ ]
254
+ },
255
+ "winter": {
256
+ "midpeak": 0,
257
+ "offpeak": 0,
258
+ "onpeak": 0,
259
+ "period": [
260
+ 0,
261
+ 0,
262
+ 0,
263
+ 0
264
+ ],
265
+ "weekday_config": [
266
+ 1,
267
+ 1,
268
+ 1,
269
+ 1,
270
+ 1,
271
+ 1,
272
+ 1,
273
+ 1,
274
+ 1,
275
+ 1,
276
+ 1,
277
+ 1,
278
+ 1,
279
+ 1,
280
+ 1,
281
+ 1,
282
+ 1,
283
+ 1,
284
+ 1,
285
+ 1,
286
+ 1,
287
+ 1,
288
+ 1,
289
+ 1
290
+ ],
291
+ "weekend_config": [
292
+ 1,
293
+ 1,
294
+ 1,
295
+ 1,
296
+ 1,
297
+ 1,
298
+ 1,
299
+ 1,
300
+ 1,
301
+ 1,
302
+ 1,
303
+ 1,
304
+ 1,
305
+ 1,
306
+ 1,
307
+ 1,
308
+ 1,
309
+ 1,
310
+ 1,
311
+ 1,
312
+ 1,
313
+ 1,
314
+ 1,
315
+ 1
316
+ ]
317
+ }
318
+ },
319
+ "type": "constant"
320
+ },
321
+ "get_energy_usage": {
322
+ "current_power": 0,
323
+ "electricity_charge": [
324
+ 0,
325
+ 0,
326
+ 0
327
+ ],
328
+ "local_time": "2024-01-23 00:38:23",
329
+ "month_energy": 0,
330
+ "month_runtime": 31709,
331
+ "today_energy": 0,
332
+ "today_runtime": 38
333
+ },
334
+ "get_fw_download_state": {
335
+ "auto_upgrade": false,
336
+ "download_progress": 0,
337
+ "reboot_time": 5,
338
+ "status": 0,
339
+ "upgrade_time": 5
340
+ },
341
+ "get_latest_fw": {
342
+ "fw_size": 0,
343
+ "fw_ver": "1.0.2 Build 231108 Rel.163012",
344
+ "hw_id": "",
345
+ "need_to_upgrade": false,
346
+ "oem_id": "",
347
+ "release_date": "",
348
+ "release_note": "",
349
+ "type": 0
350
+ },
351
+ "get_led_info": {
352
+ "led_rule": "always",
353
+ "led_status": true,
354
+ "night_mode": {
355
+ "end_time": 436,
356
+ "night_mode_type": "sunrise_sunset",
357
+ "start_time": 1072,
358
+ "sunrise_offset": 0,
359
+ "sunset_offset": 0
360
+ }
361
+ },
362
+ "get_max_power": {
363
+ "max_power": 1885
364
+ },
365
+ "get_next_event": {},
366
+ "get_protection_power": {
367
+ "enabled": false,
368
+ "protection_power": 0
369
+ },
370
+ "get_schedule_rules": {
371
+ "enable": false,
372
+ "rule_list": [],
373
+ "schedule_rule_max_count": 32,
374
+ "start_index": 0,
375
+ "sum": 0
376
+ },
377
+ "get_wireless_scan_info": {
378
+ "ap_list": [],
379
+ "wep_supported": false
380
+ },
381
+ "qs_component_nego": {
382
+ "component_list": [
383
+ {
384
+ "id": "quick_setup",
385
+ "ver_code": 3
386
+ },
387
+ {
388
+ "id": "sunrise_sunset",
389
+ "ver_code": 1
390
+ },
391
+ {
392
+ "id": "ble_whole_setup",
393
+ "ver_code": 1
394
+ },
395
+ {
396
+ "id": "iot_cloud",
397
+ "ver_code": 1
398
+ },
399
+ {
400
+ "id": "inherit",
401
+ "ver_code": 1
402
+ },
403
+ {
404
+ "id": "firmware",
405
+ "ver_code": 2
406
+ }
407
+ ],
408
+ "extra_info": {
409
+ "device_model": "EP25",
410
+ "device_type": "SMART.KASAPLUG",
411
+ "is_klap": false
412
+ }
413
+ }
414
+ }
@@ -0,0 +1,263 @@
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": "brightness",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "cloud_connect",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "default_states",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "preset",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "device_local_time",
70
+ "ver_code": 1
71
+ },
72
+ {
73
+ "id": "iot_cloud",
74
+ "ver_code": 1
75
+ },
76
+ {
77
+ "id": "bulb_quick_control",
78
+ "ver_code": 1
79
+ }
80
+ ]
81
+ },
82
+ "discovery_result": {
83
+ "device_id": "00000000000000000000000000000000",
84
+ "device_model": "L510B(EU)",
85
+ "device_type": "SMART.TAPOBULB",
86
+ "factory_default": false,
87
+ "ip": "127.0.0.123",
88
+ "is_support_iot_cloud": true,
89
+ "mac": "5C-E9-31-00-00-00",
90
+ "mgt_encrypt_schm": {
91
+ "encrypt_type": "AES",
92
+ "http_port": 80,
93
+ "is_support_https": false,
94
+ "lv": 2
95
+ },
96
+ "obd_src": "tplink",
97
+ "owner": "00000000000000000000000000000000"
98
+ },
99
+ "get_antitheft_rules": {
100
+ "antitheft_rule_max_count": 1,
101
+ "enable": false,
102
+ "rule_list": []
103
+ },
104
+ "get_auto_update_info": {
105
+ "enable": false,
106
+ "random_range": 120,
107
+ "time": 180
108
+ },
109
+ "get_connect_cloud_state": {
110
+ "status": 0
111
+ },
112
+ "get_countdown_rules": {
113
+ "countdown_rule_max_count": 1,
114
+ "enable": false,
115
+ "rule_list": []
116
+ },
117
+ "get_device_info": {
118
+ "avatar": "bulb",
119
+ "brightness": 100,
120
+ "color_temp_range": [
121
+ 2700,
122
+ 2700
123
+ ],
124
+ "default_states": {
125
+ "brightness": {
126
+ "type": "last_states",
127
+ "value": 100
128
+ },
129
+ "re_power_type": "always_on"
130
+ },
131
+ "device_id": "0000000000000000000000000000000000000000",
132
+ "device_on": false,
133
+ "fw_id": "00000000000000000000000000000000",
134
+ "fw_ver": "1.0.5 Build 230529 Rel.113426",
135
+ "has_set_location_info": true,
136
+ "hw_id": "00000000000000000000000000000000",
137
+ "hw_ver": "3.0",
138
+ "ip": "127.0.0.123",
139
+ "lang": "en_US",
140
+ "latitude": 0,
141
+ "longitude": 0,
142
+ "mac": "5C-E9-31-00-00-00",
143
+ "model": "L510",
144
+ "music_rhythm_enable": false,
145
+ "music_rhythm_mode": "single_lamp",
146
+ "nickname": "I01BU0tFRF9OQU1FIw==",
147
+ "oem_id": "00000000000000000000000000000000",
148
+ "overheated": false,
149
+ "region": "Europe/London",
150
+ "rssi": -72,
151
+ "signal_level": 1,
152
+ "specs": "",
153
+ "ssid": "I01BU0tFRF9TU0lEIw==",
154
+ "time_diff": 0,
155
+ "type": "SMART.TAPOBULB"
156
+ },
157
+ "get_device_time": {
158
+ "region": "Europe/London",
159
+ "time_diff": 0,
160
+ "timestamp": 1705744435
161
+ },
162
+ "get_device_usage": {
163
+ "power_usage": {
164
+ "past30": 0,
165
+ "past7": 0,
166
+ "today": 0
167
+ },
168
+ "saved_power": {
169
+ "past30": 1,
170
+ "past7": 1,
171
+ "today": 1
172
+ },
173
+ "time_usage": {
174
+ "past30": 1,
175
+ "past7": 1,
176
+ "today": 1
177
+ }
178
+ },
179
+ "get_fw_download_state": {
180
+ "auto_upgrade": false,
181
+ "download_progress": 0,
182
+ "reboot_time": 5,
183
+ "status": 0,
184
+ "upgrade_time": 5
185
+ },
186
+ "get_inherit_info": null,
187
+ "get_latest_fw": {
188
+ "fw_size": 786432,
189
+ "fw_ver": "1.1.2 Build 231120 Rel.201048",
190
+ "hw_id": "00000000000000000000000000000000",
191
+ "need_to_upgrade": true,
192
+ "oem_id": "00000000000000000000000000000000",
193
+ "release_date": "2023-12-04",
194
+ "release_note": "Modifications and Bug Fixes:\n1. Added the support for setting the Fade In time manually.\n2. Optimized Wi-Fi connection stability\n3. Enhanced local communication security.\n4. Fixed some minor bugs.",
195
+ "type": 1
196
+ },
197
+ "get_next_event": {},
198
+ "get_preset_rules": {
199
+ "brightness": [
200
+ 1,
201
+ 25,
202
+ 50,
203
+ 75,
204
+ 100
205
+ ]
206
+ },
207
+ "get_schedule_rules": {
208
+ "enable": false,
209
+ "rule_list": [],
210
+ "schedule_rule_max_count": 32,
211
+ "start_index": 0,
212
+ "sum": 0
213
+ },
214
+ "get_wireless_scan_info": {
215
+ "ap_list": [
216
+ {
217
+ "bssid": "000000000000",
218
+ "channel": 0,
219
+ "cipher_type": 2,
220
+ "key_type": "wpa2_psk",
221
+ "signal_level": 2,
222
+ "ssid": "I01BU0tFRF9TU0lEIw=="
223
+ },
224
+ {
225
+ "bssid": "000000000000",
226
+ "channel": 0,
227
+ "cipher_type": 2,
228
+ "key_type": "wpa2_psk",
229
+ "signal_level": 1,
230
+ "ssid": "I01BU0tFRF9TU0lEIw=="
231
+ }
232
+ ],
233
+ "wep_supported": false
234
+ },
235
+ "qs_component_nego": {
236
+ "component_list": [
237
+ {
238
+ "id": "quick_setup",
239
+ "ver_code": 3
240
+ },
241
+ {
242
+ "id": "sunrise_sunset",
243
+ "ver_code": 1
244
+ },
245
+ {
246
+ "id": "inherit",
247
+ "ver_code": 1
248
+ },
249
+ {
250
+ "id": "iot_cloud",
251
+ "ver_code": 1
252
+ },
253
+ {
254
+ "id": "firmware",
255
+ "ver_code": 2
256
+ }
257
+ ],
258
+ "extra_info": {
259
+ "device_model": "L510",
260
+ "device_type": "SMART.TAPOBULB"
261
+ }
262
+ }
263
+ }