python-kasa 0.7.0.dev3__py3-none-any.whl → 0.7.0.dev5__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 (38) hide show
  1. kasa/cli.py +58 -22
  2. kasa/device.py +21 -31
  3. kasa/feature.py +5 -4
  4. kasa/interfaces/__init__.py +2 -0
  5. kasa/interfaces/energy.py +181 -0
  6. kasa/iot/iotbulb.py +1 -1
  7. kasa/iot/iotdevice.py +26 -101
  8. kasa/iot/iotstrip.py +112 -60
  9. kasa/iot/modules/emeter.py +30 -89
  10. kasa/iot/modules/led.py +5 -0
  11. kasa/module.py +2 -3
  12. kasa/smart/modules/autooff.py +8 -0
  13. kasa/smart/modules/energy.py +58 -60
  14. kasa/smart/modules/lightpreset.py +10 -0
  15. kasa/smart/modules/lightstripeffect.py +14 -4
  16. kasa/smart/modules/lighttransition.py +10 -0
  17. kasa/smart/modules/time.py +7 -1
  18. kasa/smart/smartchilddevice.py +12 -1
  19. kasa/smart/smartdevice.py +34 -74
  20. kasa/tests/device_fixtures.py +31 -0
  21. kasa/tests/fakeprotocol_smart.py +19 -1
  22. kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +350 -0
  23. kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +966 -0
  24. kasa/tests/smart/features/test_brightness.py +3 -3
  25. kasa/tests/smart/modules/test_autooff.py +8 -8
  26. kasa/tests/smart/modules/test_fan.py +6 -7
  27. kasa/tests/test_childdevice.py +19 -1
  28. kasa/tests/test_cli.py +37 -5
  29. kasa/tests/test_common_modules.py +8 -7
  30. kasa/tests/test_device.py +14 -6
  31. kasa/tests/test_emeter.py +36 -8
  32. kasa/tests/test_iotdevice.py +9 -2
  33. kasa/tests/test_smartdevice.py +11 -7
  34. {python_kasa-0.7.0.dev3.dist-info → python_kasa-0.7.0.dev5.dist-info}/METADATA +1 -1
  35. {python_kasa-0.7.0.dev3.dist-info → python_kasa-0.7.0.dev5.dist-info}/RECORD +38 -35
  36. {python_kasa-0.7.0.dev3.dist-info → python_kasa-0.7.0.dev5.dist-info}/LICENSE +0 -0
  37. {python_kasa-0.7.0.dev3.dist-info → python_kasa-0.7.0.dev5.dist-info}/WHEEL +0 -0
  38. {python_kasa-0.7.0.dev3.dist-info → python_kasa-0.7.0.dev5.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,966 @@
1
+ {
2
+ "child_devices": {
3
+ "SCRUBBED_CHILD_DEVICE_ID_1": {
4
+ "component_nego": {
5
+ "component_list": [
6
+ {
7
+ "id": "device",
8
+ "ver_code": 2
9
+ },
10
+ {
11
+ "id": "quick_setup",
12
+ "ver_code": 3
13
+ },
14
+ {
15
+ "id": "time",
16
+ "ver_code": 1
17
+ },
18
+ {
19
+ "id": "device_local_time",
20
+ "ver_code": 1
21
+ },
22
+ {
23
+ "id": "schedule",
24
+ "ver_code": 2
25
+ },
26
+ {
27
+ "id": "countdown",
28
+ "ver_code": 2
29
+ },
30
+ {
31
+ "id": "antitheft",
32
+ "ver_code": 1
33
+ },
34
+ {
35
+ "id": "account",
36
+ "ver_code": 1
37
+ },
38
+ {
39
+ "id": "synchronize",
40
+ "ver_code": 1
41
+ },
42
+ {
43
+ "id": "sunrise_sunset",
44
+ "ver_code": 1
45
+ },
46
+ {
47
+ "id": "cloud_connect",
48
+ "ver_code": 1
49
+ },
50
+ {
51
+ "id": "iot_cloud",
52
+ "ver_code": 1
53
+ },
54
+ {
55
+ "id": "firmware",
56
+ "ver_code": 2
57
+ },
58
+ {
59
+ "id": "default_states",
60
+ "ver_code": 1
61
+ },
62
+ {
63
+ "id": "overheat_protection",
64
+ "ver_code": 1
65
+ },
66
+ {
67
+ "id": "auto_off",
68
+ "ver_code": 2
69
+ }
70
+ ]
71
+ },
72
+ "get_antitheft_rules": {
73
+ "antitheft_rule_max_count": 1,
74
+ "enable": false,
75
+ "rule_list": []
76
+ },
77
+ "get_auto_off_config": {
78
+ "delay_min": 120,
79
+ "enable": false
80
+ },
81
+ "get_connect_cloud_state": {
82
+ "status": 0
83
+ },
84
+ "get_countdown_rules": {
85
+ "countdown_rule_max_count": 1,
86
+ "enable": false,
87
+ "rule_list": []
88
+ },
89
+ "get_device_info": {
90
+ "auto_off_remain_time": 0,
91
+ "auto_off_status": "off",
92
+ "avatar": "",
93
+ "bind_count": 1,
94
+ "category": "plug.powerstrip.sub-plug",
95
+ "default_states": {
96
+ "state": {
97
+ "on": false
98
+ },
99
+ "type": "custom"
100
+ },
101
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
102
+ "device_on": true,
103
+ "fw_id": "00000000000000000000000000000000",
104
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
105
+ "has_set_location_info": true,
106
+ "hw_id": "00000000000000000000000000000000",
107
+ "hw_ver": "1.0",
108
+ "latitude": 0,
109
+ "longitude": 0,
110
+ "mac": "788CB5000000",
111
+ "model": "P300",
112
+ "nickname": "I01BU0tFRF9OQU1FIw==",
113
+ "oem_id": "00000000000000000000000000000000",
114
+ "on_time": 441974,
115
+ "original_device_id": "0000000000000000000000000000000000000000",
116
+ "overheat_status": "normal",
117
+ "position": 3,
118
+ "region": "Europe/Berlin",
119
+ "slot_number": 3,
120
+ "status_follow_edge": true,
121
+ "type": "SMART.TAPOPLUG"
122
+ },
123
+ "get_device_usage": {
124
+ "time_usage": {
125
+ "past30": 30367,
126
+ "past7": 4909,
127
+ "today": 756
128
+ }
129
+ },
130
+ "get_next_event": {},
131
+ "get_schedule_rules": {
132
+ "enable": false,
133
+ "rule_list": [],
134
+ "schedule_rule_max_count": 32,
135
+ "start_index": 0,
136
+ "sum": 0
137
+ }
138
+ },
139
+ "SCRUBBED_CHILD_DEVICE_ID_2": {
140
+ "component_nego": {
141
+ "component_list": [
142
+ {
143
+ "id": "device",
144
+ "ver_code": 2
145
+ },
146
+ {
147
+ "id": "quick_setup",
148
+ "ver_code": 3
149
+ },
150
+ {
151
+ "id": "time",
152
+ "ver_code": 1
153
+ },
154
+ {
155
+ "id": "device_local_time",
156
+ "ver_code": 1
157
+ },
158
+ {
159
+ "id": "schedule",
160
+ "ver_code": 2
161
+ },
162
+ {
163
+ "id": "countdown",
164
+ "ver_code": 2
165
+ },
166
+ {
167
+ "id": "antitheft",
168
+ "ver_code": 1
169
+ },
170
+ {
171
+ "id": "account",
172
+ "ver_code": 1
173
+ },
174
+ {
175
+ "id": "synchronize",
176
+ "ver_code": 1
177
+ },
178
+ {
179
+ "id": "sunrise_sunset",
180
+ "ver_code": 1
181
+ },
182
+ {
183
+ "id": "cloud_connect",
184
+ "ver_code": 1
185
+ },
186
+ {
187
+ "id": "iot_cloud",
188
+ "ver_code": 1
189
+ },
190
+ {
191
+ "id": "firmware",
192
+ "ver_code": 2
193
+ },
194
+ {
195
+ "id": "default_states",
196
+ "ver_code": 1
197
+ },
198
+ {
199
+ "id": "overheat_protection",
200
+ "ver_code": 1
201
+ },
202
+ {
203
+ "id": "auto_off",
204
+ "ver_code": 2
205
+ }
206
+ ]
207
+ },
208
+ "get_antitheft_rules": {
209
+ "antitheft_rule_max_count": 1,
210
+ "enable": false,
211
+ "rule_list": []
212
+ },
213
+ "get_auto_off_config": {
214
+ "delay_min": 120,
215
+ "enable": false
216
+ },
217
+ "get_connect_cloud_state": {
218
+ "status": 0
219
+ },
220
+ "get_countdown_rules": {
221
+ "countdown_rule_max_count": 1,
222
+ "enable": false,
223
+ "rule_list": []
224
+ },
225
+ "get_device_info": {
226
+ "auto_off_remain_time": 0,
227
+ "auto_off_status": "off",
228
+ "avatar": "",
229
+ "bind_count": 1,
230
+ "category": "plug.powerstrip.sub-plug",
231
+ "default_states": {
232
+ "type": "last_states"
233
+ },
234
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
235
+ "device_on": true,
236
+ "fw_id": "00000000000000000000000000000000",
237
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
238
+ "has_set_location_info": true,
239
+ "hw_id": "00000000000000000000000000000000",
240
+ "hw_ver": "1.0",
241
+ "latitude": 0,
242
+ "longitude": 0,
243
+ "mac": "788CB5000000",
244
+ "model": "P300",
245
+ "nickname": "I01BU0tFRF9OQU1FIw==",
246
+ "oem_id": "00000000000000000000000000000000",
247
+ "on_time": 441975,
248
+ "original_device_id": "0000000000000000000000000000000000000000",
249
+ "overheat_status": "normal",
250
+ "position": 2,
251
+ "region": "Europe/Berlin",
252
+ "slot_number": 3,
253
+ "status_follow_edge": true,
254
+ "type": "SMART.TAPOPLUG"
255
+ },
256
+ "get_device_usage": {
257
+ "time_usage": {
258
+ "past30": 18287,
259
+ "past7": 4909,
260
+ "today": 756
261
+ }
262
+ },
263
+ "get_next_event": {},
264
+ "get_schedule_rules": {
265
+ "enable": false,
266
+ "rule_list": [],
267
+ "schedule_rule_max_count": 32,
268
+ "start_index": 0,
269
+ "sum": 0
270
+ }
271
+ },
272
+ "SCRUBBED_CHILD_DEVICE_ID_3": {
273
+ "component_nego": {
274
+ "component_list": [
275
+ {
276
+ "id": "device",
277
+ "ver_code": 2
278
+ },
279
+ {
280
+ "id": "quick_setup",
281
+ "ver_code": 3
282
+ },
283
+ {
284
+ "id": "time",
285
+ "ver_code": 1
286
+ },
287
+ {
288
+ "id": "device_local_time",
289
+ "ver_code": 1
290
+ },
291
+ {
292
+ "id": "schedule",
293
+ "ver_code": 2
294
+ },
295
+ {
296
+ "id": "countdown",
297
+ "ver_code": 2
298
+ },
299
+ {
300
+ "id": "antitheft",
301
+ "ver_code": 1
302
+ },
303
+ {
304
+ "id": "account",
305
+ "ver_code": 1
306
+ },
307
+ {
308
+ "id": "synchronize",
309
+ "ver_code": 1
310
+ },
311
+ {
312
+ "id": "sunrise_sunset",
313
+ "ver_code": 1
314
+ },
315
+ {
316
+ "id": "cloud_connect",
317
+ "ver_code": 1
318
+ },
319
+ {
320
+ "id": "iot_cloud",
321
+ "ver_code": 1
322
+ },
323
+ {
324
+ "id": "firmware",
325
+ "ver_code": 2
326
+ },
327
+ {
328
+ "id": "default_states",
329
+ "ver_code": 1
330
+ },
331
+ {
332
+ "id": "overheat_protection",
333
+ "ver_code": 1
334
+ },
335
+ {
336
+ "id": "auto_off",
337
+ "ver_code": 2
338
+ }
339
+ ]
340
+ },
341
+ "get_antitheft_rules": {
342
+ "antitheft_rule_max_count": 1,
343
+ "enable": false,
344
+ "rule_list": []
345
+ },
346
+ "get_auto_off_config": {
347
+ "delay_min": 120,
348
+ "enable": false
349
+ },
350
+ "get_connect_cloud_state": {
351
+ "status": 0
352
+ },
353
+ "get_countdown_rules": {
354
+ "countdown_rule_max_count": 1,
355
+ "enable": false,
356
+ "rule_list": []
357
+ },
358
+ "get_device_info": {
359
+ "auto_off_remain_time": 0,
360
+ "auto_off_status": "off",
361
+ "avatar": "",
362
+ "bind_count": 1,
363
+ "category": "plug.powerstrip.sub-plug",
364
+ "default_states": {
365
+ "state": {
366
+ "on": true
367
+ },
368
+ "type": "custom"
369
+ },
370
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_3",
371
+ "device_on": true,
372
+ "fw_id": "00000000000000000000000000000000",
373
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
374
+ "has_set_location_info": true,
375
+ "hw_id": "00000000000000000000000000000000",
376
+ "hw_ver": "1.0",
377
+ "latitude": 0,
378
+ "longitude": 0,
379
+ "mac": "788CB5000000",
380
+ "model": "P300",
381
+ "nickname": "I01BU0tFRF9OQU1FIw==",
382
+ "oem_id": "00000000000000000000000000000000",
383
+ "on_time": 441975,
384
+ "original_device_id": "0000000000000000000000000000000000000000",
385
+ "overheat_status": "normal",
386
+ "position": 1,
387
+ "region": "Europe/Berlin",
388
+ "slot_number": 3,
389
+ "status_follow_edge": true,
390
+ "type": "SMART.TAPOPLUG"
391
+ },
392
+ "get_device_usage": {
393
+ "time_usage": {
394
+ "past30": 30383,
395
+ "past7": 4909,
396
+ "today": 756
397
+ }
398
+ },
399
+ "get_next_event": {},
400
+ "get_schedule_rules": {
401
+ "enable": false,
402
+ "rule_list": [],
403
+ "schedule_rule_max_count": 32,
404
+ "start_index": 0,
405
+ "sum": 0
406
+ }
407
+ }
408
+ },
409
+ "component_nego": {
410
+ "component_list": [
411
+ {
412
+ "id": "device",
413
+ "ver_code": 2
414
+ },
415
+ {
416
+ "id": "firmware",
417
+ "ver_code": 2
418
+ },
419
+ {
420
+ "id": "quick_setup",
421
+ "ver_code": 3
422
+ },
423
+ {
424
+ "id": "time",
425
+ "ver_code": 1
426
+ },
427
+ {
428
+ "id": "wireless",
429
+ "ver_code": 1
430
+ },
431
+ {
432
+ "id": "schedule",
433
+ "ver_code": 2
434
+ },
435
+ {
436
+ "id": "countdown",
437
+ "ver_code": 2
438
+ },
439
+ {
440
+ "id": "antitheft",
441
+ "ver_code": 1
442
+ },
443
+ {
444
+ "id": "account",
445
+ "ver_code": 1
446
+ },
447
+ {
448
+ "id": "synchronize",
449
+ "ver_code": 1
450
+ },
451
+ {
452
+ "id": "sunrise_sunset",
453
+ "ver_code": 1
454
+ },
455
+ {
456
+ "id": "led",
457
+ "ver_code": 1
458
+ },
459
+ {
460
+ "id": "cloud_connect",
461
+ "ver_code": 1
462
+ },
463
+ {
464
+ "id": "iot_cloud",
465
+ "ver_code": 1
466
+ },
467
+ {
468
+ "id": "device_local_time",
469
+ "ver_code": 1
470
+ },
471
+ {
472
+ "id": "default_states",
473
+ "ver_code": 1
474
+ },
475
+ {
476
+ "id": "control_child",
477
+ "ver_code": 2
478
+ },
479
+ {
480
+ "id": "child_device",
481
+ "ver_code": 2
482
+ },
483
+ {
484
+ "id": "auto_off",
485
+ "ver_code": 2
486
+ },
487
+ {
488
+ "id": "homekit",
489
+ "ver_code": 2
490
+ },
491
+ {
492
+ "id": "overheat_protection",
493
+ "ver_code": 1
494
+ }
495
+ ]
496
+ },
497
+ "discovery_result": {
498
+ "device_id": "00000000000000000000000000000000",
499
+ "device_model": "P300(EU)",
500
+ "device_type": "SMART.TAPOPLUG",
501
+ "factory_default": false,
502
+ "ip": "127.0.0.123",
503
+ "is_support_iot_cloud": true,
504
+ "mac": "78-8C-B5-00-00-00",
505
+ "mgt_encrypt_schm": {
506
+ "encrypt_type": "KLAP",
507
+ "http_port": 80,
508
+ "is_support_https": false,
509
+ "lv": 2
510
+ },
511
+ "obd_src": "tplink",
512
+ "owner": "00000000000000000000000000000000"
513
+ },
514
+ "get_auto_update_info": {
515
+ "enable": false,
516
+ "random_range": 120,
517
+ "time": 180
518
+ },
519
+ "get_child_device_component_list": {
520
+ "child_component_list": [
521
+ {
522
+ "component_list": [
523
+ {
524
+ "id": "device",
525
+ "ver_code": 2
526
+ },
527
+ {
528
+ "id": "quick_setup",
529
+ "ver_code": 3
530
+ },
531
+ {
532
+ "id": "time",
533
+ "ver_code": 1
534
+ },
535
+ {
536
+ "id": "device_local_time",
537
+ "ver_code": 1
538
+ },
539
+ {
540
+ "id": "schedule",
541
+ "ver_code": 2
542
+ },
543
+ {
544
+ "id": "countdown",
545
+ "ver_code": 2
546
+ },
547
+ {
548
+ "id": "antitheft",
549
+ "ver_code": 1
550
+ },
551
+ {
552
+ "id": "account",
553
+ "ver_code": 1
554
+ },
555
+ {
556
+ "id": "synchronize",
557
+ "ver_code": 1
558
+ },
559
+ {
560
+ "id": "sunrise_sunset",
561
+ "ver_code": 1
562
+ },
563
+ {
564
+ "id": "cloud_connect",
565
+ "ver_code": 1
566
+ },
567
+ {
568
+ "id": "iot_cloud",
569
+ "ver_code": 1
570
+ },
571
+ {
572
+ "id": "firmware",
573
+ "ver_code": 2
574
+ },
575
+ {
576
+ "id": "default_states",
577
+ "ver_code": 1
578
+ },
579
+ {
580
+ "id": "overheat_protection",
581
+ "ver_code": 1
582
+ },
583
+ {
584
+ "id": "auto_off",
585
+ "ver_code": 2
586
+ }
587
+ ],
588
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_1"
589
+ },
590
+ {
591
+ "component_list": [
592
+ {
593
+ "id": "device",
594
+ "ver_code": 2
595
+ },
596
+ {
597
+ "id": "quick_setup",
598
+ "ver_code": 3
599
+ },
600
+ {
601
+ "id": "time",
602
+ "ver_code": 1
603
+ },
604
+ {
605
+ "id": "device_local_time",
606
+ "ver_code": 1
607
+ },
608
+ {
609
+ "id": "schedule",
610
+ "ver_code": 2
611
+ },
612
+ {
613
+ "id": "countdown",
614
+ "ver_code": 2
615
+ },
616
+ {
617
+ "id": "antitheft",
618
+ "ver_code": 1
619
+ },
620
+ {
621
+ "id": "account",
622
+ "ver_code": 1
623
+ },
624
+ {
625
+ "id": "synchronize",
626
+ "ver_code": 1
627
+ },
628
+ {
629
+ "id": "sunrise_sunset",
630
+ "ver_code": 1
631
+ },
632
+ {
633
+ "id": "cloud_connect",
634
+ "ver_code": 1
635
+ },
636
+ {
637
+ "id": "iot_cloud",
638
+ "ver_code": 1
639
+ },
640
+ {
641
+ "id": "firmware",
642
+ "ver_code": 2
643
+ },
644
+ {
645
+ "id": "default_states",
646
+ "ver_code": 1
647
+ },
648
+ {
649
+ "id": "overheat_protection",
650
+ "ver_code": 1
651
+ },
652
+ {
653
+ "id": "auto_off",
654
+ "ver_code": 2
655
+ }
656
+ ],
657
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_2"
658
+ },
659
+ {
660
+ "component_list": [
661
+ {
662
+ "id": "device",
663
+ "ver_code": 2
664
+ },
665
+ {
666
+ "id": "quick_setup",
667
+ "ver_code": 3
668
+ },
669
+ {
670
+ "id": "time",
671
+ "ver_code": 1
672
+ },
673
+ {
674
+ "id": "device_local_time",
675
+ "ver_code": 1
676
+ },
677
+ {
678
+ "id": "schedule",
679
+ "ver_code": 2
680
+ },
681
+ {
682
+ "id": "countdown",
683
+ "ver_code": 2
684
+ },
685
+ {
686
+ "id": "antitheft",
687
+ "ver_code": 1
688
+ },
689
+ {
690
+ "id": "account",
691
+ "ver_code": 1
692
+ },
693
+ {
694
+ "id": "synchronize",
695
+ "ver_code": 1
696
+ },
697
+ {
698
+ "id": "sunrise_sunset",
699
+ "ver_code": 1
700
+ },
701
+ {
702
+ "id": "cloud_connect",
703
+ "ver_code": 1
704
+ },
705
+ {
706
+ "id": "iot_cloud",
707
+ "ver_code": 1
708
+ },
709
+ {
710
+ "id": "firmware",
711
+ "ver_code": 2
712
+ },
713
+ {
714
+ "id": "default_states",
715
+ "ver_code": 1
716
+ },
717
+ {
718
+ "id": "overheat_protection",
719
+ "ver_code": 1
720
+ },
721
+ {
722
+ "id": "auto_off",
723
+ "ver_code": 2
724
+ }
725
+ ],
726
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_3"
727
+ }
728
+ ],
729
+ "start_index": 0,
730
+ "sum": 3
731
+ },
732
+ "get_child_device_list": {
733
+ "child_device_list": [
734
+ {
735
+ "auto_off_remain_time": 0,
736
+ "auto_off_status": "off",
737
+ "avatar": "",
738
+ "bind_count": 1,
739
+ "category": "plug.powerstrip.sub-plug",
740
+ "default_states": {
741
+ "state": {
742
+ "on": false
743
+ },
744
+ "type": "custom"
745
+ },
746
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
747
+ "device_on": true,
748
+ "fw_id": "00000000000000000000000000000000",
749
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
750
+ "has_set_location_info": true,
751
+ "hw_id": "00000000000000000000000000000000",
752
+ "hw_ver": "1.0",
753
+ "latitude": 0,
754
+ "longitude": 0,
755
+ "mac": "788CB5000000",
756
+ "model": "P300",
757
+ "nickname": "I01BU0tFRF9OQU1FIw==",
758
+ "oem_id": "00000000000000000000000000000000",
759
+ "on_time": 441972,
760
+ "original_device_id": "0000000000000000000000000000000000000000",
761
+ "overheat_status": "normal",
762
+ "position": 3,
763
+ "region": "Europe/Berlin",
764
+ "slot_number": 3,
765
+ "status_follow_edge": true,
766
+ "type": "SMART.TAPOPLUG"
767
+ },
768
+ {
769
+ "auto_off_remain_time": 0,
770
+ "auto_off_status": "off",
771
+ "avatar": "",
772
+ "bind_count": 1,
773
+ "category": "plug.powerstrip.sub-plug",
774
+ "default_states": {
775
+ "type": "last_states"
776
+ },
777
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
778
+ "device_on": true,
779
+ "fw_id": "00000000000000000000000000000000",
780
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
781
+ "has_set_location_info": true,
782
+ "hw_id": "00000000000000000000000000000000",
783
+ "hw_ver": "1.0",
784
+ "latitude": 0,
785
+ "longitude": 0,
786
+ "mac": "788CB5000000",
787
+ "model": "P300",
788
+ "nickname": "I01BU0tFRF9OQU1FIw==",
789
+ "oem_id": "00000000000000000000000000000000",
790
+ "on_time": 441972,
791
+ "original_device_id": "0000000000000000000000000000000000000000",
792
+ "overheat_status": "normal",
793
+ "position": 2,
794
+ "region": "Europe/Berlin",
795
+ "slot_number": 3,
796
+ "status_follow_edge": true,
797
+ "type": "SMART.TAPOPLUG"
798
+ },
799
+ {
800
+ "auto_off_remain_time": 0,
801
+ "auto_off_status": "off",
802
+ "avatar": "",
803
+ "bind_count": 1,
804
+ "category": "plug.powerstrip.sub-plug",
805
+ "default_states": {
806
+ "state": {
807
+ "on": true
808
+ },
809
+ "type": "custom"
810
+ },
811
+ "device_id": "SCRUBBED_CHILD_DEVICE_ID_3",
812
+ "device_on": true,
813
+ "fw_id": "00000000000000000000000000000000",
814
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
815
+ "has_set_location_info": true,
816
+ "hw_id": "00000000000000000000000000000000",
817
+ "hw_ver": "1.0",
818
+ "latitude": 0,
819
+ "longitude": 0,
820
+ "mac": "788CB5000000",
821
+ "model": "P300",
822
+ "nickname": "I01BU0tFRF9OQU1FIw==",
823
+ "oem_id": "00000000000000000000000000000000",
824
+ "on_time": 441972,
825
+ "original_device_id": "0000000000000000000000000000000000000000",
826
+ "overheat_status": "normal",
827
+ "position": 1,
828
+ "region": "Europe/Berlin",
829
+ "slot_number": 3,
830
+ "status_follow_edge": true,
831
+ "type": "SMART.TAPOPLUG"
832
+ }
833
+ ],
834
+ "start_index": 0,
835
+ "sum": 3
836
+ },
837
+ "get_connect_cloud_state": {
838
+ "status": 0
839
+ },
840
+ "get_device_info": {
841
+ "avatar": "",
842
+ "device_id": "0000000000000000000000000000000000000000",
843
+ "fw_id": "00000000000000000000000000000000",
844
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
845
+ "has_set_location_info": true,
846
+ "hw_id": "00000000000000000000000000000000",
847
+ "hw_ver": "1.0",
848
+ "ip": "127.0.0.123",
849
+ "lang": "de_DE",
850
+ "latitude": 0,
851
+ "longitude": 0,
852
+ "mac": "78-8C-B5-00-00-00",
853
+ "model": "P300",
854
+ "nickname": "I01BU0tFRF9OQU1FIw==",
855
+ "oem_id": "00000000000000000000000000000000",
856
+ "region": "Europe/Berlin",
857
+ "rssi": -61,
858
+ "signal_level": 2,
859
+ "specs": "",
860
+ "ssid": "I01BU0tFRF9TU0lEIw==",
861
+ "time_diff": 60,
862
+ "type": "SMART.TAPOPLUG"
863
+ },
864
+ "get_device_time": {
865
+ "region": "Europe/Berlin",
866
+ "time_diff": 60,
867
+ "timestamp": 1715622973
868
+ },
869
+ "get_device_usage": {
870
+ "time_usage": {
871
+ "past30": 30383,
872
+ "past7": 4909,
873
+ "today": 756
874
+ }
875
+ },
876
+ "get_fw_download_state": {
877
+ "auto_upgrade": false,
878
+ "download_progress": 0,
879
+ "reboot_time": 5,
880
+ "status": 0,
881
+ "upgrade_time": 5
882
+ },
883
+ "get_homekit_info": {
884
+ "mfi_setup_code": "000-00-000",
885
+ "mfi_setup_id": "0000",
886
+ "mfi_token_token": "00000000000000000000000000000000000000000000000000000000000000000000000000000/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/000000000000000000==",
887
+ "mfi_token_uuid": "00000000-0000-0000-0000-000000000000"
888
+ },
889
+ "get_latest_fw": {
890
+ "fw_size": 0,
891
+ "fw_ver": "1.0.15 Build 231130 Rel.122554",
892
+ "hw_id": "",
893
+ "need_to_upgrade": false,
894
+ "oem_id": "",
895
+ "release_date": "",
896
+ "release_note": "",
897
+ "type": 0
898
+ },
899
+ "get_led_info": {
900
+ "led_rule": "never",
901
+ "led_status": false,
902
+ "night_mode": {
903
+ "end_time": 340,
904
+ "night_mode_type": "sunrise_sunset",
905
+ "start_time": 1277,
906
+ "sunrise_offset": 0,
907
+ "sunset_offset": 0
908
+ }
909
+ },
910
+ "get_wireless_scan_info": {
911
+ "ap_list": [
912
+ {
913
+ "bssid": "000000000000",
914
+ "channel": 0,
915
+ "cipher_type": 2,
916
+ "key_type": "wpa2_psk",
917
+ "signal_level": 2,
918
+ "ssid": "I01BU0tFRF9TU0lEIw=="
919
+ }
920
+ ],
921
+ "start_index": 0,
922
+ "sum": 19,
923
+ "wep_supported": false
924
+ },
925
+ "qs_component_nego": {
926
+ "component_list": [
927
+ {
928
+ "id": "quick_setup",
929
+ "ver_code": 3
930
+ },
931
+ {
932
+ "id": "sunrise_sunset",
933
+ "ver_code": 1
934
+ },
935
+ {
936
+ "id": "ble_whole_setup",
937
+ "ver_code": 1
938
+ },
939
+ {
940
+ "id": "iot_cloud",
941
+ "ver_code": 1
942
+ },
943
+ {
944
+ "id": "inherit",
945
+ "ver_code": 1
946
+ },
947
+ {
948
+ "id": "firmware",
949
+ "ver_code": 2
950
+ },
951
+ {
952
+ "id": "control_child",
953
+ "ver_code": 2
954
+ },
955
+ {
956
+ "id": "child_device",
957
+ "ver_code": 2
958
+ }
959
+ ],
960
+ "extra_info": {
961
+ "device_model": "P300",
962
+ "device_type": "SMART.TAPOPLUG",
963
+ "is_klap": true
964
+ }
965
+ }
966
+ }