From 9294845384f12d2e1c4d085beee82e86acf720df Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:14:07 +0000 Subject: [PATCH] Update smartcamera fixtures with components (#1250) --- .../smartcamera/C210(EU)_2.0_1.4.2.json | 146 ++++++ .../smartcamera/H200(EU)_1.0_1.3.2.json | 2 +- .../smartcamera/H200(US)_1.0_1.3.6.json | 476 +++++++++++++++++- 3 files changed, 608 insertions(+), 16 deletions(-) diff --git a/tests/fixtures/smartcamera/C210(EU)_2.0_1.4.2.json b/tests/fixtures/smartcamera/C210(EU)_2.0_1.4.2.json index a4c529a5..ba2e0010 100644 --- a/tests/fixtures/smartcamera/C210(EU)_2.0_1.4.2.json +++ b/tests/fixtures/smartcamera/C210(EU)_2.0_1.4.2.json @@ -78,6 +78,152 @@ } } }, + "getAppComponentList": { + "app_component": { + "app_component_list": [ + { + "name": "sdCard", + "version": 1 + }, + { + "name": "timezone", + "version": 1 + }, + { + "name": "system", + "version": 3 + }, + { + "name": "led", + "version": 1 + }, + { + "name": "playback", + "version": 6 + }, + { + "name": "detection", + "version": 3 + }, + { + "name": "alert", + "version": 1 + }, + { + "name": "firmware", + "version": 2 + }, + { + "name": "account", + "version": 2 + }, + { + "name": "quickSetup", + "version": 1 + }, + { + "name": "video", + "version": 2 + }, + { + "name": "ptz", + "version": 1 + }, + { + "name": "lensMask", + "version": 2 + }, + { + "name": "lightFrequency", + "version": 1 + }, + { + "name": "dayNightMode", + "version": 1 + }, + { + "name": "osd", + "version": 2 + }, + { + "name": "record", + "version": 1 + }, + { + "name": "videoRotation", + "version": 1 + }, + { + "name": "audio", + "version": 2 + }, + { + "name": "diagnose", + "version": 1 + }, + { + "name": "msgPush", + "version": 3 + }, + { + "name": "deviceShare", + "version": 1 + }, + { + "name": "tamperDetection", + "version": 1 + }, + { + "name": "tapoCare", + "version": 1 + }, + { + "name": "targetTrack", + "version": 1 + }, + { + "name": "blockZone", + "version": 1 + }, + { + "name": "babyCryDetection", + "version": 1 + }, + { + "name": "personDetection", + "version": 2 + }, + { + "name": "needSubscriptionServiceList", + "version": 1 + }, + { + "name": "nvmp", + "version": 1 + }, + { + "name": "detectionRegion", + "version": 2 + }, + { + "name": "iotCloud", + "version": 1 + }, + { + "name": "panoramicView", + "version": 1 + }, + { + "name": "recordDownload", + "version": 1 + }, + { + "name": "staticIp", + "version": 2 + } + ] + } + }, "getAudioConfig": { "audio_config": { "microphone": { diff --git a/tests/fixtures/smartcamera/H200(EU)_1.0_1.3.2.json b/tests/fixtures/smartcamera/H200(EU)_1.0_1.3.2.json index 22b6c9d9..04bcc262 100644 --- a/tests/fixtures/smartcamera/H200(EU)_1.0_1.3.2.json +++ b/tests/fixtures/smartcamera/H200(EU)_1.0_1.3.2.json @@ -194,7 +194,7 @@ "ver_code": 1 } ], - "device_id": "0000000000000000000000000000000000000000" + "device_id": "SCRUBBED_CHILD_DEVICE_ID_1" } ], "start_index": 0, diff --git a/tests/fixtures/smartcamera/H200(US)_1.0_1.3.6.json b/tests/fixtures/smartcamera/H200(US)_1.0_1.3.6.json index dda7ade8..f1a6ae15 100644 --- a/tests/fixtures/smartcamera/H200(US)_1.0_1.3.6.json +++ b/tests/fixtures/smartcamera/H200(US)_1.0_1.3.6.json @@ -24,6 +24,7 @@ "firmware_version": "1.3.6 Build 20240829 rel.71119", "hardware_version": "1.0", "ip": "127.0.0.123", + "isResetWiFi": false, "is_support_iot_cloud": true, "mac": "24-2F-D0-00-00-00", "mgt_encrypt_schm": { @@ -31,6 +32,451 @@ } }, "getAlertConfig": {}, + "getAppComponentList": { + "app_component": { + "app_component_list": [ + { + "name": "sdCard", + "version": 2 + }, + { + "name": "dateTime", + "version": 1 + }, + { + "name": "system", + "version": 4 + }, + { + "name": "led", + "version": 1 + }, + { + "name": "firmware", + "version": 2 + }, + { + "name": "account", + "version": 1 + }, + { + "name": "quickSetup", + "version": 1 + }, + { + "name": "hubRecord", + "version": 1 + }, + { + "name": "deviceShare", + "version": 1 + }, + { + "name": "siren", + "version": 2 + }, + { + "name": "childControl", + "version": 1 + }, + { + "name": "childQuickSetup", + "version": 1 + }, + { + "name": "childInherit", + "version": 1 + }, + { + "name": "deviceLoad", + "version": 1 + }, + { + "name": "subg", + "version": 2 + }, + { + "name": "iotCloud", + "version": 1 + }, + { + "name": "diagnose", + "version": 1 + }, + { + "name": "preWakeUp", + "version": 1 + }, + { + "name": "supportRE", + "version": 1 + }, + { + "name": "testSignal", + "version": 1 + }, + { + "name": "dataDownload", + "version": 1 + }, + { + "name": "testChildSignal", + "version": 1 + }, + { + "name": "ringLog", + "version": 1 + }, + { + "name": "matter", + "version": 1 + }, + { + "name": "localSmart", + "version": 1 + }, + { + "name": "generalCameraManage", + "version": 1 + }, + { + "name": "playback", + "version": 6 + }, + { + "name": "hubPlayback", + "version": 1 + } + ] + } + }, + "getChildDeviceComponentList": { + "child_component_list": [ + { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + }, + { + "id": "temperature", + "ver_code": 1 + }, + { + "id": "humidity", + "ver_code": 1 + }, + { + "id": "temp_humidity_record", + "ver_code": 1 + }, + { + "id": "comfort_temperature", + "ver_code": 1 + }, + { + "id": "comfort_humidity", + "ver_code": 1 + }, + { + "id": "report_mode", + "ver_code": 1 + } + ], + "device_id": "SCRUBBED_CHILD_DEVICE_ID_1" + }, + { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + }, + { + "id": "temperature", + "ver_code": 1 + }, + { + "id": "humidity", + "ver_code": 1 + }, + { + "id": "temp_humidity_record", + "ver_code": 1 + }, + { + "id": "comfort_temperature", + "ver_code": 1 + }, + { + "id": "comfort_humidity", + "ver_code": 1 + }, + { + "id": "report_mode", + "ver_code": 1 + } + ], + "device_id": "SCRUBBED_CHILD_DEVICE_ID_2" + }, + { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + } + ], + "device_id": "SCRUBBED_CHILD_DEVICE_ID_3" + }, + { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + }, + { + "id": "double_click", + "ver_code": 1 + } + ], + "device_id": "SCRUBBED_CHILD_DEVICE_ID_4" + }, + { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + }, + { + "id": "double_click", + "ver_code": 1 + } + ], + "device_id": "SCRUBBED_CHILD_DEVICE_ID_5" + } + ], + "start_index": 0, + "sum": 5 + }, "getChildDeviceList": { "child_device_list": [ { @@ -38,7 +484,7 @@ "avatar": "sensor_t310", "bind_count": 1, "category": "subg.trigger.temp-hmdt-sensor", - "current_humidity": 49, + "current_humidity": 56, "current_humidity_exception": 0, "current_temp": 21.7, "current_temp_exception": 0, @@ -56,7 +502,7 @@ "parent_device_id": "0000000000000000000000000000000000000000", "region": "Australia/Canberra", "report_interval": 16, - "rssi": -46, + "rssi": -43, "signal_level": 3, "specs": "US", "status": "online", @@ -70,16 +516,16 @@ "battery_percentage": 100, "bind_count": 1, "category": "subg.trigger.temp-hmdt-sensor", - "current_humidity": 51, + "current_humidity": 58, "current_humidity_exception": 0, - "current_temp": 21.5, + "current_temp": 21.6, "current_temp_exception": 0, "device_id": "SCRUBBED_CHILD_DEVICE_ID_2", "fw_ver": "1.8.0 Build 230921 Rel.091519", "hw_id": "00000000000000000000000000000000", "hw_ver": "1.0", - "jamming_rssi": -113, - "jamming_signal_level": 1, + "jamming_rssi": -107, + "jamming_signal_level": 2, "lastOnboardingTimestamp": 1724637369, "mac": "202351000000", "model": "T315", @@ -88,7 +534,7 @@ "parent_device_id": "0000000000000000000000000000000000000000", "region": "Australia/Canberra", "report_interval": 16, - "rssi": -44, + "rssi": -42, "signal_level": 3, "specs": "US", "status": "online", @@ -105,7 +551,7 @@ "fw_ver": "1.9.0 Build 230704 Rel.154559", "hw_id": "00000000000000000000000000000000", "hw_ver": "1.0", - "jamming_rssi": -113, + "jamming_rssi": -112, "jamming_signal_level": 1, "lastOnboardingTimestamp": 1724635267, "mac": "A86E84000000", @@ -116,7 +562,7 @@ "parent_device_id": "0000000000000000000000000000000000000000", "region": "Australia/Canberra", "report_interval": 16, - "rssi": -56, + "rssi": -47, "signal_level": 3, "specs": "US", "status": "online", @@ -132,7 +578,7 @@ "fw_ver": "1.12.0 Build 231121 Rel.092508", "hw_id": "00000000000000000000000000000000", "hw_ver": "1.0", - "jamming_rssi": -112, + "jamming_rssi": -115, "jamming_signal_level": 1, "lastOnboardingTimestamp": 1724636047, "mac": "3C52A1000000", @@ -142,7 +588,7 @@ "parent_device_id": "0000000000000000000000000000000000000000", "region": "Australia/Canberra", "report_interval": 16, - "rssi": -36, + "rssi": -45, "signal_level": 3, "specs": "US", "status": "online", @@ -158,7 +604,7 @@ "fw_ver": "1.12.0 Build 231121 Rel.092508", "hw_id": "00000000000000000000000000000000", "hw_ver": "1.0", - "jamming_rssi": -113, + "jamming_rssi": -114, "jamming_signal_level": 1, "lastOnboardingTimestamp": 1724636886, "mac": "98254A000000", @@ -168,7 +614,7 @@ "parent_device_id": "0000000000000000000000000000000000000000", "region": "Australia/Canberra", "report_interval": 16, - "rssi": -56, + "rssi": -57, "signal_level": 3, "specs": "US", "status": "online", @@ -189,8 +635,8 @@ "getClockStatus": { "system": { "clock_status": { - "local_time": "2024-11-01 22:16:12", - "seconds_from_1970": 1730459772 + "local_time": "2024-11-13 09:26:28", + "seconds_from_1970": 1731450388 } } },