File: test_device_manager.ambr

package info (click to toggle)
python-roborock 4.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,480 kB
  • sloc: python: 16,602; makefile: 17; sh: 6
file content (612 lines) | stat: -rw-r--r-- 21,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
# serializer version: 1
# name: test_diagnostics_collection
  dict({
    'devices': list([
      dict({
        'device': dict({
          'activeTime': 1672364449,
          'deviceStatus': dict({
            '120': 0,
            '121': 8,
            '122': 100,
            '123': 102,
            '124': 203,
            '125': 94,
            '126': 90,
            '127': 87,
            '128': 0,
            '133': 1,
          }),
          'duid': '******bc123',
          'extra': '{"RRPhotoPrivacyVersion": "1"}',
          'featureSet': '2234201184108543',
          'fv': '02.56.02',
          'iconUrl': 'no_url',
          'localKey': '**REDACTED**',
          'name': '**REDACTED**',
          'newFeatureSet': '0000000000002041',
          'online': True,
          'productId': '**REDACTED**',
          'pv': '1.0',
          'roomId': 2362003,
          'share': False,
          'silentOtaSwitch': True,
          'sn': '**REDACTED**',
          'timeZoneId': 'America/Los_Angeles',
          'tuyaMigrated': False,
        }),
        'product': dict({
          'capability': 0,
          'category': 'robot.vacuum.cleaner',
          'code': 'a27',
          'id': 'product-id-s7-maxv',
          'model': 'roborock.vacuum.a27',
          'name': '**REDACTED**',
          'schema': list([
            dict({
              'code': 'rpc_request_code',
              'id': '101',
              'mode': 'rw',
              'name': 'rpc_request',
              'type': 'RAW',
            }),
            dict({
              'code': 'rpc_response',
              'id': '102',
              'mode': 'rw',
              'name': 'rpc_response',
              'type': 'RAW',
            }),
            dict({
              'code': 'error_code',
              'id': '120',
              'mode': 'ro',
              'name': '错误代码',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'state',
              'id': '121',
              'mode': 'ro',
              'name': '设备状态',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'battery',
              'id': '122',
              'mode': 'ro',
              'name': '设备电量',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'fan_power',
              'id': '123',
              'mode': 'rw',
              'name': '清扫模式',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'water_box_mode',
              'id': '124',
              'mode': 'rw',
              'name': '拖地模式',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'main_brush_life',
              'id': '125',
              'mode': 'rw',
              'name': '主刷寿命',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'side_brush_life',
              'id': '126',
              'mode': 'rw',
              'name': '边刷寿命',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'filter_life',
              'id': '127',
              'mode': 'rw',
              'name': '滤网寿命',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'additional_props',
              'id': '128',
              'mode': 'ro',
              'name': '额外状态',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_complete',
              'id': '130',
              'mode': 'ro',
              'name': '完成事件',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_cancel_low_power',
              'id': '131',
              'mode': 'ro',
              'name': '电量不足任务取消',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_cancel_in_motion',
              'id': '132',
              'mode': 'ro',
              'name': '运动中任务取消',
              'type': 'RAW',
            }),
            dict({
              'code': 'charge_status',
              'id': '133',
              'mode': 'ro',
              'name': '充电状态',
              'type': 'RAW',
            }),
            dict({
              'code': 'drying_status',
              'id': '134',
              'mode': 'ro',
              'name': '烘干状态',
              'type': 'RAW',
            }),
          ]),
        }),
        'traits': dict({
          'device_features': dict({
            'featureInfo': list([
              111,
              112,
              113,
              114,
              115,
              116,
              117,
              118,
              119,
              120,
              122,
              123,
              124,
              125,
            ]),
            'isActivateVideoChargingAndStandbySupported': False,
            'isAnalysisSupported': True,
            'isAnyStateTransitGotoSupported': False,
            'isAutoCollection2Supported': False,
            'isAutoDeliveryFieldInGlobalStatusSupported': False,
            'isAutoTearDownMopSupported': False,
            'isAvoidCollisionModeSupported': False,
            'isAvoidCollisionSupported': False,
            'isBackChargeAutoWashSupported': False,
            'isBackWashNewSmartSupported': False,
            'isCarefulSlowMopSupported': False,
            'isCarpetCustomCleanSupported': False,
            'isCarpetDeepCleanSupported': False,
            'isCarpetLongHairedExSupported': False,
            'isCarpetLongHairedSupported': False,
            'isCarpetPressureUseOriginParasSupported': False,
            'isCarpetShapeTypeSupported': False,
            'isCarpetShowOnMap': False,
            'isCarpetSupported': False,
            'isCes2022Supported': False,
            'isCleanCountSettingSupported': False,
            'isCleanDirectStatusSupported': False,
            'isCleanEfficiencySupported': False,
            'isCleanFluidDeliverySupported': False,
            'isCleanHistoryTimeLineSupported': False,
            'isCleanRouteDeepSlowPlusSupported': False,
            'isCleanRouteFastModeSupported': False,
            'isCleanRouteSettingSupported': True,
            'isCleanThenMopModeSupported': False,
            'isCleanTimeLineSupported': False,
            'isCollectDustCountShowSupported': False,
            'isCollectDustModeSupported': True,
            'isCornerCleanModeSupported': False,
            'isCornerMopStretchSupported': False,
            'isCtmWithRepeatSupported': False,
            'isCurrentMapRestoreEnabled': True,
            'isCustomCleanModeCountSupported': False,
            'isCustomModeSupported': True,
            'isCustomWaterBoxDistanceSupported': True,
            'isCustomizedCleanSupported': True,
            'isDetectWireCarpetSupported': False,
            'isDirtyObjectDetectSupported': False,
            'isDirtyReplenishCleanSupported': False,
            'isDryIntervalTimerSupported': False,
            'isDssBelievable': False,
            'isDualBandWiFiSupported': False,
            'isDustCollectionSettingSupported': False,
            'isDynamicallyAddCleanZonesSupported': False,
            'isDynamicallySkipCleanZoneSupported': False,
            'isEggDanceModeSupported': False,
            'isEggModeSupportedFromNewFeatures': False,
            'isExactCustomModeSupported': False,
            'isExhibitionFunctionSupported': False,
            'isFloorDirCleanAnyTimeSupported': False,
            'isFlowLedSettingSupported': False,
            'isFollowLowObsSupported': False,
            'isFullDuplesSwitchSupported': False,
            'isFwFilterObstacleSupported': False,
            'isGapDeepCleanSupported': False,
            'isGotoPureCleanPathSupported': False,
            'isHotWashTowelSupported': False,
            'isIdentifyRoomSupported': False,
            'isIgnoreUnknownMapObjectSupported': False,
            'isLdsLiftingSupported': False,
            'isLedStatusSwitchSupported': True,
            'isLeftWaterDrainSupported': False,
            'isLowAreaAccessSupported': False,
            'isMainBrushUpDownSupportedFromStr': False,
            'isMapBeautifyInternalDebugSupported': False,
            'isMapCarpetAddSupport': False,
            'isMapEraserSupported': False,
            'isMatterSupported': False,
            'isMaxPlusModeSupported': True,
            'isMaxZoneOpenedSupported': False,
            'isMechanicalArmModeSupported': False,
            'isMidwayBackToDockSupported': False,
            'isMinBattery15ToCleanTaskSupported': False,
            'isMopForbiddenSupported': True,
            'isMopPathSupported': False,
            'isMopShakeModuleSupported': True,
            'isMopShakeWaterMaxSupported': False,
            'isMultiFloorSupported': True,
            'isMultiMapSegmentTimerSupported': True,
            'isNewAiRecognitionSupported': False,
            'isNewDataForCleanHistory': False,
            'isNewDataForCleanHistoryDetail': False,
            'isNewEndpointSupported': False,
            'isNewRemoteViewSupported': True,
            'isNoNeedCarpetPressSetSupported': False,
            'isNonePureCleanMopWithMaxPlus': False,
            'isObjectDetectCheckSupported': False,
            'isOfflineMapSupported': False,
            'isOptimizeBatterySupported': False,
            'isOrderCleanSupported': True,
            'isOverSeaCtmSupported': False,
            'isPetSnapshotSupported': False,
            'isPetSuppliesDeepCleanSupported': False,
            'isProgramModeSupported': False,
            'isPumpingWaterSupported': False,
            'isPureCleanMopSupported': True,
            'isReSegmentSupported': True,
            'isRecordAllowed': False,
            'isRemoteSupported': True,
            'isRightBrushStretchSupported': False,
            'isRoomNameSupported': True,
            'isRpcRetrySupported': False,
            'isRubberBrushCarpetSupported': False,
            'isSetChildSupported': False,
            'isSettingCarpetFirstSupported': False,
            'isShakeMopSetSupported': False,
            'isShouldShowArmOverLoadSupported': False,
            'isShowCleanFinishReasonSupported': True,
            'isShowGeneralObstacleSupported': False,
            'isShowObstaclePhotoSupported': False,
            'isSideBrushLiftCarpetSupported': False,
            'isSmallSideMopSupported': False,
            'isSmartCleanModeSetSupported': False,
            'isSoakAndWashSupported': False,
            'isSoftCleanModeSupported': False,
            'isSrMapSupported': False,
            'isSuperDeepWashSupported': False,
            'isSupportApiAppStopGraspSupported': False,
            'isSupportBackupMap': True,
            'isSupportCleanEstimate': False,
            'isSupportCliffZone': False,
            'isSupportCustomCarpet': False,
            'isSupportCustomDnd': False,
            'isSupportCustomDoorSill': False,
            'isSupportCustomModeInCleaning': False,
            'isSupportFetchTimerSummary': True,
            'isSupportFloorDirection': False,
            'isSupportFloorEdit': False,
            'isSupportFurniture': False,
            'isSupportGetParticularStatusSupported': False,
            'isSupportIncrementalMap': False,
            'isSupportMainBrushUpDownSupported': False,
            'isSupportMopBackPwmSet': False,
            'isSupportQuickMapBuilder': True,
            'isSupportRemoteControlInCall': False,
            'isSupportRoomTag': False,
            'isSupportSetSwitchMapMode': False,
            'isSupportSetVolumeInCall': False,
            'isSupportSideBrushUpDownSupported': False,
            'isSupportSmartDoorSill': False,
            'isSupportSmartGlobalCleanWithCustomMode': False,
            'isSupportSmartScene': False,
            'isSupportStuckZone': False,
            'isSupportVoiceControlDebug': False,
            'isSupportWaterMode': True,
            'isSupportedDownloadTestVoice': False,
            'isSupportedDrying': False,
            'isSupportedValleyElectricity': False,
            'isSyncServerNameSupported': False,
            'isThreeDMappingInnerTestSupported': False,
            'isTidyupZonesSupported': False,
            'isTwoGearsNoCollisionSupported': False,
            'isTwoKeyRealTimeVideoSupported': False,
            'isTwoKeyRtvInChargingSupported': False,
            'isTypeIdentifySupported': False,
            'isUnsaveMapReasonSupported': True,
            'isUvcSterilizeSupported': False,
            'isVideoMonitorSupported': False,
            'isVideoPatrolSupported': False,
            'isVideoSettingSupported': False,
            'isVoiceControlLedSupported': False,
            'isVoiceControlSupported': False,
            'isWashThenChargeCmdSupported': False,
            'isWaterLeakCheckSupported': False,
            'isWaterSlideModeSupported': False,
            'isWaterUpDownDrainSupported': False,
            'isWifiManageSupported': False,
            'isWorkdayHolidaySupported': False,
            'newFeatureInfo': 633887780925447,
            'newFeatureInfoStr': '0000000000002000',
          }),
          'led_status': dict({
            'status': 0,
          }),
          'network_info': dict({
            'ip': '**REDACTED**',
          }),
          'status': dict({
            'adbumperStatus': list([
              0,
              0,
              0,
            ]),
            'autoDustCollection': 1,
            'avoidCount': 19,
            'backType': -1,
            'battery': 100,
            'cameraStatus': 3457,
            'chargeStatus': 1,
            'cleanArea': 20965000,
            'cleanTime': 1176,
            'collisionAvoidStatus': 1,
            'debugMode': 0,
            'dndEnabled': 0,
            'dockErrorStatus': 0,
            'dockType': 3,
            'dustCollectionStatus': 0,
            'errorCode': 0,
            'fanPower': 102,
            'homeSecEnablePassword': 0,
            'homeSecStatus': 0,
            'inCleaning': 0,
            'inFreshState': 1,
            'inReturning': 0,
            'isExploring': 0,
            'isLocating': 0,
            'labStatus': 1,
            'lockStatus': 0,
            'mapPresent': 1,
            'mapStatus': 3,
            'mopForbiddenEnable': 1,
            'mopMode': 300,
            'msgSeq': 458,
            'msgVer': 2,
            'state': 8,
            'switchMapMode': 0,
            'unsaveMapFlag': 0,
            'unsaveMapReason': 0,
            'washPhase': 0,
            'washReady': 0,
            'waterBoxCarriageStatus': 1,
            'waterBoxMode': 203,
            'waterBoxStatus': 1,
            'waterShortageStatus': 0,
          }),
        }),
      }),
    ]),
    'diagnostics': dict({
      'discover_devices': 1,
      'fetch_home_data': 1,
      'supported_devices': dict({
        '1.0': 1,
      }),
    }),
    'home_data': dict({
      'devices': list([
        dict({
          'activeTime': 1672364449,
          'deviceStatus': dict({
            '120': 0,
            '121': 8,
            '122': 100,
            '123': 102,
            '124': 203,
            '125': 94,
            '126': 90,
            '127': 87,
            '128': 0,
            '133': 1,
          }),
          'duid': '******bc123',
          'extra': '{"RRPhotoPrivacyVersion": "1"}',
          'featureSet': '2234201184108543',
          'fv': '02.56.02',
          'iconUrl': 'no_url',
          'localKey': '**REDACTED**',
          'name': '**REDACTED**',
          'newFeatureSet': '0000000000002041',
          'online': True,
          'productId': '**REDACTED**',
          'pv': '1.0',
          'roomId': 2362003,
          'share': False,
          'silentOtaSwitch': True,
          'sn': '**REDACTED**',
          'timeZoneId': 'America/Los_Angeles',
          'tuyaMigrated': False,
        }),
      ]),
      'id': '**REDACTED**',
      'name': '**REDACTED**',
      'products': list([
        dict({
          'capability': 0,
          'category': 'robot.vacuum.cleaner',
          'code': 'a27',
          'id': '**REDACTED**',
          'model': 'roborock.vacuum.a27',
          'name': '**REDACTED**',
          'schema': list([
            dict({
              'code': 'rpc_request_code',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'rpc_response',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'error_code',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'state',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'battery',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'fan_power',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'water_box_mode',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'property': '{"range": []}',
              'type': 'ENUM',
            }),
            dict({
              'code': 'main_brush_life',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'side_brush_life',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'filter_life',
              'id': '**REDACTED**',
              'mode': 'rw',
              'name': '**REDACTED**',
              'property': '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}',
              'type': 'VALUE',
            }),
            dict({
              'code': 'additional_props',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_complete',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_cancel_low_power',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'task_cancel_in_motion',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'charge_status',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
            dict({
              'code': 'drying_status',
              'id': '**REDACTED**',
              'mode': 'ro',
              'name': '**REDACTED**',
              'type': 'RAW',
            }),
          ]),
        }),
      ]),
      'receivedDevices': list([
      ]),
      'rooms': list([
        dict({
          'id': 2362048,
          'name': '**REDACTED**',
        }),
        dict({
          'id': 2362044,
          'name': '**REDACTED**',
        }),
        dict({
          'id': 2362041,
          'name': '**REDACTED**',
        }),
      ]),
    }),
  })
# ---