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,547 @@
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": "account",
30
+ "ver_code": 1
31
+ },
32
+ {
33
+ "id": "synchronize",
34
+ "ver_code": 1
35
+ },
36
+ {
37
+ "id": "sunrise_sunset",
38
+ "ver_code": 1
39
+ },
40
+ {
41
+ "id": "led",
42
+ "ver_code": 1
43
+ },
44
+ {
45
+ "id": "cloud_connect",
46
+ "ver_code": 1
47
+ },
48
+ {
49
+ "id": "iot_cloud",
50
+ "ver_code": 1
51
+ },
52
+ {
53
+ "id": "child_device",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "child_quick_setup",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "child_inherit",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "control_child",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "alarm",
70
+ "ver_code": 1
71
+ },
72
+ {
73
+ "id": "device_load",
74
+ "ver_code": 1
75
+ },
76
+ {
77
+ "id": "device_local_time",
78
+ "ver_code": 1
79
+ },
80
+ {
81
+ "id": "alarm_logs",
82
+ "ver_code": 1
83
+ },
84
+ {
85
+ "id": "localSmart",
86
+ "ver_code": 1
87
+ },
88
+ {
89
+ "id": "matter",
90
+ "ver_code": 3
91
+ },
92
+ {
93
+ "id": "chime",
94
+ "ver_code": 1
95
+ }
96
+ ]
97
+ },
98
+ "discovery_result": {
99
+ "device_id": "00000000000000000000000000000000",
100
+ "device_model": "H100(EU)",
101
+ "device_type": "SMART.TAPOHUB",
102
+ "factory_default": false,
103
+ "ip": "127.0.0.123",
104
+ "is_support_iot_cloud": true,
105
+ "mac": "3C-52-A1-00-00-00",
106
+ "mgt_encrypt_schm": {
107
+ "encrypt_type": "AES",
108
+ "http_port": 80,
109
+ "is_support_https": false,
110
+ "lv": 2
111
+ },
112
+ "obd_src": "tplink",
113
+ "owner": "00000000000000000000000000000000"
114
+ },
115
+ "get_alarm_configure": {
116
+ "duration": 10,
117
+ "type": "Alarm 1",
118
+ "volume": "high"
119
+ },
120
+ "get_auto_update_info": {
121
+ "enable": false,
122
+ "random_range": 120,
123
+ "time": 180
124
+ },
125
+ "get_child_device_component_list": {
126
+ "child_component_list": [
127
+ {
128
+ "component_list": [
129
+ {
130
+ "id": "device",
131
+ "ver_code": 2
132
+ },
133
+ {
134
+ "id": "quick_setup",
135
+ "ver_code": 3
136
+ },
137
+ {
138
+ "id": "time",
139
+ "ver_code": 1
140
+ },
141
+ {
142
+ "id": "device_local_time",
143
+ "ver_code": 1
144
+ },
145
+ {
146
+ "id": "schedule",
147
+ "ver_code": 2
148
+ },
149
+ {
150
+ "id": "countdown",
151
+ "ver_code": 2
152
+ },
153
+ {
154
+ "id": "account",
155
+ "ver_code": 1
156
+ },
157
+ {
158
+ "id": "synchronize",
159
+ "ver_code": 1
160
+ },
161
+ {
162
+ "id": "sunrise_sunset",
163
+ "ver_code": 1
164
+ },
165
+ {
166
+ "id": "cloud_connect",
167
+ "ver_code": 1
168
+ },
169
+ {
170
+ "id": "iot_cloud",
171
+ "ver_code": 1
172
+ },
173
+ {
174
+ "id": "frost_protection",
175
+ "ver_code": 1
176
+ },
177
+ {
178
+ "id": "child_protection",
179
+ "ver_code": 1
180
+ },
181
+ {
182
+ "id": "temperature",
183
+ "ver_code": 1
184
+ },
185
+ {
186
+ "id": "temp_control",
187
+ "ver_code": 1
188
+ },
189
+ {
190
+ "id": "remove_scale",
191
+ "ver_code": 1
192
+ },
193
+ {
194
+ "id": "progress_calibration",
195
+ "ver_code": 1
196
+ },
197
+ {
198
+ "id": "early_start",
199
+ "ver_code": 1
200
+ },
201
+ {
202
+ "id": "temp_record",
203
+ "ver_code": 1
204
+ },
205
+ {
206
+ "id": "screen_setting",
207
+ "ver_code": 1
208
+ },
209
+ {
210
+ "id": "night_mode",
211
+ "ver_code": 1
212
+ },
213
+ {
214
+ "id": "smart_control_schedule",
215
+ "ver_code": 1
216
+ },
217
+ {
218
+ "id": "firmware",
219
+ "ver_code": 1
220
+ },
221
+ {
222
+ "id": "battery_detect",
223
+ "ver_code": 1
224
+ },
225
+ {
226
+ "id": "temperature_correction",
227
+ "ver_code": 1
228
+ },
229
+ {
230
+ "id": "window_open_detect",
231
+ "ver_code": 2
232
+ },
233
+ {
234
+ "id": "shutdown_mode",
235
+ "ver_code": 1
236
+ }
237
+ ],
238
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_1"
239
+ },
240
+ {
241
+ "component_list": [
242
+ {
243
+ "id": "device",
244
+ "ver_code": 2
245
+ },
246
+ {
247
+ "id": "quick_setup",
248
+ "ver_code": 3
249
+ },
250
+ {
251
+ "id": "trigger_log",
252
+ "ver_code": 1
253
+ },
254
+ {
255
+ "id": "time",
256
+ "ver_code": 1
257
+ },
258
+ {
259
+ "id": "device_local_time",
260
+ "ver_code": 1
261
+ },
262
+ {
263
+ "id": "account",
264
+ "ver_code": 1
265
+ },
266
+ {
267
+ "id": "synchronize",
268
+ "ver_code": 1
269
+ },
270
+ {
271
+ "id": "cloud_connect",
272
+ "ver_code": 1
273
+ },
274
+ {
275
+ "id": "iot_cloud",
276
+ "ver_code": 1
277
+ },
278
+ {
279
+ "id": "firmware",
280
+ "ver_code": 1
281
+ },
282
+ {
283
+ "id": "localSmart",
284
+ "ver_code": 1
285
+ },
286
+ {
287
+ "id": "battery_detect",
288
+ "ver_code": 1
289
+ },
290
+ {
291
+ "id": "temperature",
292
+ "ver_code": 1
293
+ },
294
+ {
295
+ "id": "humidity",
296
+ "ver_code": 1
297
+ },
298
+ {
299
+ "id": "temp_humidity_record",
300
+ "ver_code": 1
301
+ },
302
+ {
303
+ "id": "comfort_temperature",
304
+ "ver_code": 1
305
+ },
306
+ {
307
+ "id": "comfort_humidity",
308
+ "ver_code": 1
309
+ },
310
+ {
311
+ "id": "report_mode",
312
+ "ver_code": 1
313
+ }
314
+ ],
315
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_2"
316
+ }
317
+ ],
318
+ "start_index": 0,
319
+ "sum": 2
320
+ },
321
+ "get_child_device_list": {
322
+ "child_device_list": [
323
+ {
324
+ "at_low_battery": false,
325
+ "avatar": "",
326
+ "battery_percentage": 100,
327
+ "bind_count": 5,
328
+ "category": "subg.trv",
329
+ "child_protection": false,
330
+ "current_temp": 22.9,
331
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
332
+ "frost_protection_on": false,
333
+ "fw_ver": "2.4.0 Build 230804 Rel.193040",
334
+ "hw_id": "00000000000000000000000000000000",
335
+ "hw_ver": "1.0",
336
+ "jamming_rssi": -113,
337
+ "jamming_signal_level": 1,
338
+ "location": "",
339
+ "mac": "A842A1000000",
340
+ "max_control_temp": 30,
341
+ "min_control_temp": 5,
342
+ "model": "KE100",
343
+ "nickname": "I01BU0tFRF9OQU1FIw==",
344
+ "oem_id": "00000000000000000000000000000000",
345
+ "parent_device_id": "0000000000000000000000000000000000000000",
346
+ "region": "Europe/Berlin",
347
+ "rssi": -7,
348
+ "signal_level": 3,
349
+ "specs": "EU",
350
+ "status": "online",
351
+ "status_follow_edge": false,
352
+ "target_temp": 23.0,
353
+ "temp_offset": 0,
354
+ "temp_unit": "celsius",
355
+ "trv_states": [
356
+ "heating"
357
+ ],
358
+ "type": "SMART.KASAENERGY"
359
+ },
360
+ {
361
+ "at_low_battery": false,
362
+ "avatar": "",
363
+ "battery_percentage": 100,
364
+ "bind_count": 1,
365
+ "category": "subg.trigger.temp-hmdt-sensor",
366
+ "current_humidity": 62,
367
+ "current_humidity_exception": 2,
368
+ "current_temp": 24.0,
369
+ "current_temp_exception": 0,
370
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
371
+ "fw_ver": "1.7.0 Build 230424 Rel.170332",
372
+ "hw_id": "00000000000000000000000000000000",
373
+ "hw_ver": "1.0",
374
+ "jamming_rssi": -115,
375
+ "jamming_signal_level": 1,
376
+ "lastOnboardingTimestamp": 1706990901,
377
+ "mac": "F0A731000000",
378
+ "model": "T315",
379
+ "nickname": "I01BU0tFRF9OQU1FIw==",
380
+ "oem_id": "00000000000000000000000000000000",
381
+ "parent_device_id": "0000000000000000000000000000000000000000",
382
+ "region": "Europe/Berlin",
383
+ "report_interval": 16,
384
+ "rssi": -38,
385
+ "signal_level": 3,
386
+ "specs": "EU",
387
+ "status": "online",
388
+ "status_follow_edge": false,
389
+ "temp_unit": "celsius",
390
+ "type": "SMART.TAPOSENSOR"
391
+ }
392
+ ],
393
+ "start_index": 0,
394
+ "sum": 2
395
+ },
396
+ "get_connect_cloud_state": {
397
+ "status": 0
398
+ },
399
+ "get_device_info": {
400
+ "avatar": "hub",
401
+ "device_id": "0000000000000000000000000000000000000000",
402
+ "fw_id": "00000000000000000000000000000000",
403
+ "fw_ver": "1.5.10 Build 240207 Rel.175759",
404
+ "has_set_location_info": true,
405
+ "hw_id": "00000000000000000000000000000000",
406
+ "hw_ver": "1.0",
407
+ "in_alarm": false,
408
+ "in_alarm_source": "",
409
+ "ip": "127.0.0.123",
410
+ "lang": "de_DE",
411
+ "latitude": 0,
412
+ "longitude": 0,
413
+ "mac": "3C-52-A1-00-00-00",
414
+ "model": "H100",
415
+ "nickname": "I01BU0tFRF9OQU1FIw==",
416
+ "oem_id": "00000000000000000000000000000000",
417
+ "overheated": false,
418
+ "region": "Europe/Berlin",
419
+ "rssi": -60,
420
+ "signal_level": 2,
421
+ "specs": "EU",
422
+ "ssid": "I01BU0tFRF9TU0lEIw==",
423
+ "time_diff": 60,
424
+ "type": "SMART.TAPOHUB"
425
+ },
426
+ "get_device_load_info": {
427
+ "cur_load_num": 4,
428
+ "load_level": "light",
429
+ "max_load_num": 64,
430
+ "total_memory": 4352,
431
+ "used_memory": 1451
432
+ },
433
+ "get_device_time": {
434
+ "region": "Europe/Berlin",
435
+ "time_diff": 60,
436
+ "timestamp": 1714669215
437
+ },
438
+ "get_device_usage": {},
439
+ "get_fw_download_state": {
440
+ "auto_upgrade": false,
441
+ "download_progress": 0,
442
+ "reboot_time": 5,
443
+ "status": 0,
444
+ "upgrade_time": 5
445
+ },
446
+ "get_inherit_info": null,
447
+ "get_latest_fw": {
448
+ "fw_size": 0,
449
+ "fw_ver": "1.5.10 Build 240207 Rel.175759",
450
+ "hw_id": "",
451
+ "need_to_upgrade": false,
452
+ "oem_id": "",
453
+ "release_date": "",
454
+ "release_note": "",
455
+ "type": 0
456
+ },
457
+ "get_led_info": {
458
+ "led_rule": "never",
459
+ "led_status": false,
460
+ "night_mode": {
461
+ "end_time": 358,
462
+ "night_mode_type": "sunrise_sunset",
463
+ "start_time": 1259,
464
+ "sunrise_offset": 0,
465
+ "sunset_offset": 0
466
+ }
467
+ },
468
+ "get_matter_setup_info": {
469
+ "setup_code": "00000000000",
470
+ "setup_payload": "00:0000000000000000000"
471
+ },
472
+ "get_support_alarm_type_list": {
473
+ "alarm_type_list": [
474
+ "Doorbell Ring 1",
475
+ "Doorbell Ring 2",
476
+ "Doorbell Ring 3",
477
+ "Doorbell Ring 4",
478
+ "Doorbell Ring 5",
479
+ "Doorbell Ring 6",
480
+ "Doorbell Ring 7",
481
+ "Doorbell Ring 8",
482
+ "Doorbell Ring 9",
483
+ "Doorbell Ring 10",
484
+ "Phone Ring",
485
+ "Alarm 1",
486
+ "Alarm 2",
487
+ "Alarm 3",
488
+ "Alarm 4",
489
+ "Dripping Tap",
490
+ "Alarm 5",
491
+ "Connection 1",
492
+ "Connection 2"
493
+ ]
494
+ },
495
+ "get_support_child_device_category": {
496
+ "device_category_list": [
497
+ {
498
+ "category": "subg.trv"
499
+ },
500
+ {
501
+ "category": "subg.trigger"
502
+ },
503
+ {
504
+ "category": "subg.plugswitch"
505
+ }
506
+ ]
507
+ },
508
+ "get_wireless_scan_info": {
509
+ "ap_list": [],
510
+ "start_index": 0,
511
+ "sum": 0,
512
+ "wep_supported": false
513
+ },
514
+ "qs_component_nego": {
515
+ "component_list": [
516
+ {
517
+ "id": "quick_setup",
518
+ "ver_code": 3
519
+ },
520
+ {
521
+ "id": "sunrise_sunset",
522
+ "ver_code": 1
523
+ },
524
+ {
525
+ "id": "iot_cloud",
526
+ "ver_code": 1
527
+ },
528
+ {
529
+ "id": "inherit",
530
+ "ver_code": 1
531
+ },
532
+ {
533
+ "id": "firmware",
534
+ "ver_code": 2
535
+ },
536
+ {
537
+ "id": "matter",
538
+ "ver_code": 3
539
+ }
540
+ ],
541
+ "extra_info": {
542
+ "device_model": "H100",
543
+ "device_type": "SMART.TAPOHUB",
544
+ "is_klap": false
545
+ }
546
+ }
547
+ }