mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-03 22:22:06 +00:00 
			
		
		
		
	Add D230(EU) 1.20 1.1.19 fixture (#1448)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				CI / Perform linting checks (3.13) (push) Waiting to run
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CodeQL checks / Analyze (python) (push) Waiting to run
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	CI / Perform linting checks (3.13) (push) Waiting to run
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			CodeQL checks / Analyze (python) (push) Waiting to run
				
			This commit is contained in:
		@@ -201,7 +201,7 @@ The following devices have been tested and confirmed as working. If your device
 | 
			
		||||
- **Wall Switches**: S210, S220, S500D, S505, S505D
 | 
			
		||||
- **Bulbs**: L510B, L510E, L530E, L630
 | 
			
		||||
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
 | 
			
		||||
- **Cameras**: C100, C210, C225, C325WB, C520WS, C720, TC65, TC70
 | 
			
		||||
- **Cameras**: C100, C210, C225, C325WB, C520WS, C720, D230, TC65, TC70
 | 
			
		||||
- **Hubs**: H100, H200
 | 
			
		||||
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -283,6 +283,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.2.8
 | 
			
		||||
- **C720**
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.2.3
 | 
			
		||||
- **D230**
 | 
			
		||||
  - Hardware: 1.20 (EU) / Firmware: 1.1.19
 | 
			
		||||
- **TC65**
 | 
			
		||||
  - Hardware: 1.0 / Firmware: 1.3.9
 | 
			
		||||
- **TC70**
 | 
			
		||||
@@ -296,6 +298,7 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
 | 
			
		||||
  - Hardware: 1.0 (EU) / Firmware: 1.5.5
 | 
			
		||||
- **H200**
 | 
			
		||||
  - Hardware: 1.0 (EU) / Firmware: 1.3.2
 | 
			
		||||
  - Hardware: 1.0 (EU) / Firmware: 1.3.6
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.3.6
 | 
			
		||||
 | 
			
		||||
### Hub-Connected Devices
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										556
									
								
								tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										556
									
								
								tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,556 @@
 | 
			
		||||
{
 | 
			
		||||
    "discovery_result": {
 | 
			
		||||
        "error_code": 0,
 | 
			
		||||
        "result": {
 | 
			
		||||
            "decrypted_data": {
 | 
			
		||||
                "connect_ssid": "#MASKED_SSID#",
 | 
			
		||||
                "connect_type": "wired",
 | 
			
		||||
                "device_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
                "http_port": 443,
 | 
			
		||||
                "owner": "00000000000000000000000000000000",
 | 
			
		||||
                "sd_status": "offline"
 | 
			
		||||
            },
 | 
			
		||||
            "device_id": "00000000000000000000000000000000",
 | 
			
		||||
            "device_model": "H200",
 | 
			
		||||
            "device_name": "#MASKED_NAME#",
 | 
			
		||||
            "device_type": "SMART.TAPOHUB",
 | 
			
		||||
            "encrypt_info": {
 | 
			
		||||
                "data": "",
 | 
			
		||||
                "key": "",
 | 
			
		||||
                "sym_schm": "AES"
 | 
			
		||||
            },
 | 
			
		||||
            "encrypt_type": [
 | 
			
		||||
                "3"
 | 
			
		||||
            ],
 | 
			
		||||
            "factory_default": false,
 | 
			
		||||
            "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": "F0-09-0D-00-00-00",
 | 
			
		||||
            "mgt_encrypt_schm": {
 | 
			
		||||
                "is_support_https": true
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "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": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "sdCard",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "timezone",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamSystem",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "led",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "playback",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "detection",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "firmware",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "video",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "lensMask",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "lightFrequency",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "dayNightMode",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "nightVisionMode",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamOsd",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "record",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "audio",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "personDetection",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "vehicleDetection",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "petDetection",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "msgPush",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "deviceShare",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "tapoCare",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "pir",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "battery",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "clips",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamRelay",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamP2p",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "needSubscriptionServiceList",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "iotCloud",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "blockZone",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "whiteLamp",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "infLamp",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "packageDetection",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "wakeUp",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "ring",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "antiTheft",
 | 
			
		||||
                        "version": 3
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "quickResponse",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "doorbellNightVision",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "dataDownload",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "detectionRegion",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "streamGrab",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "recordDownload",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamPreRelay",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamStatistics",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamNodeRelay",
 | 
			
		||||
                        "version": 1
 | 
			
		||||
                    },
 | 
			
		||||
                    {
 | 
			
		||||
                        "name": "batCamRtsp",
 | 
			
		||||
                        "version": 2
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "device_id": "SCRUBBED_CHILD_DEVICE_ID_1"
 | 
			
		||||
            }
 | 
			
		||||
        ],
 | 
			
		||||
        "start_index": 0,
 | 
			
		||||
        "sum": 1
 | 
			
		||||
    },
 | 
			
		||||
    "getChildDeviceList": {
 | 
			
		||||
        "child_device_list": [
 | 
			
		||||
            {
 | 
			
		||||
                "alias": "#MASKED_NAME#",
 | 
			
		||||
                "anti_theft_status": 0,
 | 
			
		||||
                "avatar": "camera d210",
 | 
			
		||||
                "battery_charging": "NO",
 | 
			
		||||
                "battery_installed": 1,
 | 
			
		||||
                "battery_percent": 90,
 | 
			
		||||
                "battery_temperature": 3,
 | 
			
		||||
                "battery_voltage": 4022,
 | 
			
		||||
                "cam_uptime": 5378,
 | 
			
		||||
                "category": "camera",
 | 
			
		||||
                "dev_name": "Tapo Smart Doorbell",
 | 
			
		||||
                "device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
 | 
			
		||||
                "device_model": "D230",
 | 
			
		||||
                "device_name": "#MASKED_NAME#",
 | 
			
		||||
                "device_type": "SMART.TAPODOORBELL",
 | 
			
		||||
                "ext_addr": "0000000000000000",
 | 
			
		||||
                "firmware_status": "OK",
 | 
			
		||||
                "hw_id": "00000000000000000000000000000000",
 | 
			
		||||
                "hw_ver": "1.20",
 | 
			
		||||
                "ipaddr": "172.23.30.2",
 | 
			
		||||
                "led_status": "on",
 | 
			
		||||
                "low_battery": false,
 | 
			
		||||
                "mac": "F0:09:0D:00:00:00",
 | 
			
		||||
                "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
                "onboarding_timestamp": 1732920657,
 | 
			
		||||
                "online": true,
 | 
			
		||||
                "parent_device_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
                "power": "BATTERY",
 | 
			
		||||
                "power_save_mode": "off",
 | 
			
		||||
                "power_save_status": "off",
 | 
			
		||||
                "region": "EU",
 | 
			
		||||
                "rssi": -46,
 | 
			
		||||
                "short_addr": 0,
 | 
			
		||||
                "status": "configured",
 | 
			
		||||
                "subg_cam_rssi": 0,
 | 
			
		||||
                "subg_hub_rssi": 0,
 | 
			
		||||
                "sw_ver": "1.1.19 Build 20241011 rel.67020",
 | 
			
		||||
                "system_time": 1735995953,
 | 
			
		||||
                "updating": false,
 | 
			
		||||
                "uptime": 3061186
 | 
			
		||||
            }
 | 
			
		||||
        ],
 | 
			
		||||
        "start_index": 0,
 | 
			
		||||
        "sum": 1
 | 
			
		||||
    },
 | 
			
		||||
    "getCircularRecordingConfig": {
 | 
			
		||||
        "harddisk_manage": {
 | 
			
		||||
            "harddisk": {
 | 
			
		||||
                "loop": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getClockStatus": {
 | 
			
		||||
        "system": {
 | 
			
		||||
            "clock_status": {
 | 
			
		||||
                "local_time": "2025-01-04 14:05:53",
 | 
			
		||||
                "seconds_from_1970": 1735995953
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getConnectionType": {
 | 
			
		||||
        "link_type": "ethernet"
 | 
			
		||||
    },
 | 
			
		||||
    "getDeviceInfo": {
 | 
			
		||||
        "device_info": {
 | 
			
		||||
            "basic_info": {
 | 
			
		||||
                "avatar": "hub_h200",
 | 
			
		||||
                "bind_status": true,
 | 
			
		||||
                "child_num": 1,
 | 
			
		||||
                "dev_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
                "device_alias": "#MASKED_NAME#",
 | 
			
		||||
                "device_info": "H200 1.0",
 | 
			
		||||
                "device_model": "H200",
 | 
			
		||||
                "device_name": "#MASKED_NAME#",
 | 
			
		||||
                "device_type": "SMART.TAPOHUB",
 | 
			
		||||
                "has_set_location_info": 1,
 | 
			
		||||
                "hw_id": "00000000000000000000000000000000",
 | 
			
		||||
                "hw_version": "1.0",
 | 
			
		||||
                "latitude": 0,
 | 
			
		||||
                "local_ip": "127.0.0.123",
 | 
			
		||||
                "longitude": 0,
 | 
			
		||||
                "mac": "F0-09-0D-00-00-00",
 | 
			
		||||
                "need_sync_sha1_password": 0,
 | 
			
		||||
                "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
                "product_name": "Tapo Smart Hub",
 | 
			
		||||
                "region": "EU",
 | 
			
		||||
                "status": "configured",
 | 
			
		||||
                "sw_version": "1.3.6 Build 20240829 rel.71119"
 | 
			
		||||
            },
 | 
			
		||||
            "info": {
 | 
			
		||||
                "avatar": "hub_h200",
 | 
			
		||||
                "bind_status": true,
 | 
			
		||||
                "child_num": 1,
 | 
			
		||||
                "dev_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
                "device_alias": "#MASKED_NAME#",
 | 
			
		||||
                "device_info": "H200 1.0",
 | 
			
		||||
                "device_model": "H200",
 | 
			
		||||
                "device_name": "#MASKED_NAME#",
 | 
			
		||||
                "device_type": "SMART.TAPOHUB",
 | 
			
		||||
                "has_set_location_info": 1,
 | 
			
		||||
                "hw_id": "00000000000000000000000000000000",
 | 
			
		||||
                "hw_version": "1.0",
 | 
			
		||||
                "latitude": 0,
 | 
			
		||||
                "local_ip": "127.0.0.123",
 | 
			
		||||
                "longitude": 0,
 | 
			
		||||
                "mac": "F0-09-0D-00-00-00",
 | 
			
		||||
                "need_sync_sha1_password": 0,
 | 
			
		||||
                "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
                "product_name": "Tapo Smart Hub",
 | 
			
		||||
                "region": "EU",
 | 
			
		||||
                "status": "configured",
 | 
			
		||||
                "sw_version": "1.3.6 Build 20240829 rel.71119"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getFirmwareAutoUpgradeConfig": {
 | 
			
		||||
        "auto_upgrade": {
 | 
			
		||||
            "common": {
 | 
			
		||||
                "enabled": "on",
 | 
			
		||||
                "random_range": 30,
 | 
			
		||||
                "time": "03:00"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getFirmwareUpdateStatus": {
 | 
			
		||||
        "cloud_config": {
 | 
			
		||||
            "upgrade_status": {
 | 
			
		||||
                "lastUpgradingSuccess": true,
 | 
			
		||||
                "state": "normal"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLedStatus": {
 | 
			
		||||
        "led": {
 | 
			
		||||
            "config": {
 | 
			
		||||
                ".name": "config",
 | 
			
		||||
                ".type": "led",
 | 
			
		||||
                "enabled": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getMatterSetupInfo": {
 | 
			
		||||
        "setup_code": "00000000000",
 | 
			
		||||
        "setup_payload": "00:0000000000000000000"
 | 
			
		||||
    },
 | 
			
		||||
    "getMediaEncrypt": {
 | 
			
		||||
        "cet": {
 | 
			
		||||
            "media_encrypt": {
 | 
			
		||||
                "enabled": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getSdCardStatus": {
 | 
			
		||||
        "harddisk_manage": {
 | 
			
		||||
            "hd_info": [
 | 
			
		||||
                {
 | 
			
		||||
                    "hd_info_1": {
 | 
			
		||||
                        "detect_status": "offline",
 | 
			
		||||
                        "disk_name": "1",
 | 
			
		||||
                        "loop_record_status": "1",
 | 
			
		||||
                        "status": "offline"
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getSirenConfig": {
 | 
			
		||||
        "duration": 30,
 | 
			
		||||
        "siren_type": "Doorbell Ring 3",
 | 
			
		||||
        "volume": "10"
 | 
			
		||||
    },
 | 
			
		||||
    "getSirenStatus": {
 | 
			
		||||
        "status": "off",
 | 
			
		||||
        "time_left": 0
 | 
			
		||||
    },
 | 
			
		||||
    "getSirenTypeList": {
 | 
			
		||||
        "siren_type_list": [
 | 
			
		||||
            "Doorbell Ring 1",
 | 
			
		||||
            "Doorbell Ring 2",
 | 
			
		||||
            "Doorbell Ring 3",
 | 
			
		||||
            "Doorbell Ring 4",
 | 
			
		||||
            "Doorbell Ring 5",
 | 
			
		||||
            "Doorbell Ring 6",
 | 
			
		||||
            "Doorbell Ring 7",
 | 
			
		||||
            "Doorbell Ring 8",
 | 
			
		||||
            "Doorbell Ring 9",
 | 
			
		||||
            "Doorbell Ring 10",
 | 
			
		||||
            "Phone Ring",
 | 
			
		||||
            "Alarm 1",
 | 
			
		||||
            "Alarm 2",
 | 
			
		||||
            "Alarm 3",
 | 
			
		||||
            "Alarm 4",
 | 
			
		||||
            "Dripping Tap",
 | 
			
		||||
            "Alarm 5",
 | 
			
		||||
            "Connection 1",
 | 
			
		||||
            "Connection 2"
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "getTimezone": {
 | 
			
		||||
        "system": {
 | 
			
		||||
            "basic": {
 | 
			
		||||
                "timezone": "UTC+01:00",
 | 
			
		||||
                "zone_id": "Europe/Amsterdam"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										525
									
								
								tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										525
									
								
								tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,525 @@
 | 
			
		||||
{
 | 
			
		||||
    "child_info_from_parent": {
 | 
			
		||||
        "alias": "#MASKED_NAME#",
 | 
			
		||||
        "anti_theft_status": 0,
 | 
			
		||||
        "avatar": "camera d210",
 | 
			
		||||
        "battery_charging": "NO",
 | 
			
		||||
        "battery_installed": 1,
 | 
			
		||||
        "battery_percent": 90,
 | 
			
		||||
        "battery_temperature": 5,
 | 
			
		||||
        "battery_voltage": 4073,
 | 
			
		||||
        "cam_uptime": 5420,
 | 
			
		||||
        "category": "camera",
 | 
			
		||||
        "dev_name": "Tapo Smart Doorbell",
 | 
			
		||||
        "device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
 | 
			
		||||
        "device_model": "D230",
 | 
			
		||||
        "device_name": "D230 1.20",
 | 
			
		||||
        "device_type": "SMART.TAPODOORBELL",
 | 
			
		||||
        "ext_addr": "0000000000000000",
 | 
			
		||||
        "firmware_status": "OK",
 | 
			
		||||
        "hw_id": "00000000000000000000000000000000",
 | 
			
		||||
        "hw_ver": "1.20",
 | 
			
		||||
        "ipaddr": "172.23.30.2",
 | 
			
		||||
        "led_status": "on",
 | 
			
		||||
        "low_battery": false,
 | 
			
		||||
        "mac": "F0:09:0D:00:00:00",
 | 
			
		||||
        "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
        "onboarding_timestamp": 1732920657,
 | 
			
		||||
        "online": true,
 | 
			
		||||
        "parent_device_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
        "power": "BATTERY",
 | 
			
		||||
        "power_save_mode": "off",
 | 
			
		||||
        "power_save_status": "off",
 | 
			
		||||
        "region": "EU",
 | 
			
		||||
        "rssi": -43,
 | 
			
		||||
        "short_addr": 0,
 | 
			
		||||
        "status": "configured",
 | 
			
		||||
        "subg_cam_rssi": 0,
 | 
			
		||||
        "subg_hub_rssi": 0,
 | 
			
		||||
        "sw_ver": "1.1.19 Build 20241011 rel.67020",
 | 
			
		||||
        "system_time": 1735996806,
 | 
			
		||||
        "updating": false,
 | 
			
		||||
        "uptime": 3062029
 | 
			
		||||
    },
 | 
			
		||||
    "getAppComponentList": {
 | 
			
		||||
        "app_component": {
 | 
			
		||||
            "app_component_list": [
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "sdCard",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "timezone",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamSystem",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "led",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "playback",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "detection",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "firmware",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "video",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "lensMask",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "lightFrequency",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "dayNightMode",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "nightVisionMode",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamOsd",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "record",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "audio",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "personDetection",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "vehicleDetection",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "petDetection",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "msgPush",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "deviceShare",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "tapoCare",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "pir",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "battery",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "clips",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamRelay",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamP2p",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "needSubscriptionServiceList",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "iotCloud",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "blockZone",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "whiteLamp",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "infLamp",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "packageDetection",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "wakeUp",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "ring",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "antiTheft",
 | 
			
		||||
                    "version": 3
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "quickResponse",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "doorbellNightVision",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "dataDownload",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "detectionRegion",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "streamGrab",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "recordDownload",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamPreRelay",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamStatistics",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamNodeRelay",
 | 
			
		||||
                    "version": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "batCamRtsp",
 | 
			
		||||
                    "version": 2
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getAudioConfig": {
 | 
			
		||||
        "audio_config": {
 | 
			
		||||
            "microphone": {
 | 
			
		||||
                "channels": "1",
 | 
			
		||||
                "encode_type": "G711ulaw",
 | 
			
		||||
                "sampling_rate": "8",
 | 
			
		||||
                "volume": "58"
 | 
			
		||||
            },
 | 
			
		||||
            "microphone_algo": {
 | 
			
		||||
                "aec": "on",
 | 
			
		||||
                "hs": "off",
 | 
			
		||||
                "ns": "off",
 | 
			
		||||
                "sys_aec": "on"
 | 
			
		||||
            },
 | 
			
		||||
            "record_audio": {
 | 
			
		||||
                "enabled": "on"
 | 
			
		||||
            },
 | 
			
		||||
            "speaker": {
 | 
			
		||||
                "volume": "80"
 | 
			
		||||
            },
 | 
			
		||||
            "speaker_algo": {
 | 
			
		||||
                "hs": "off",
 | 
			
		||||
                "ns": "off"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getCircularRecordingConfig": {
 | 
			
		||||
        "harddisk_manage": {
 | 
			
		||||
            "harddisk": {
 | 
			
		||||
                "loop": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getClockStatus": {
 | 
			
		||||
        "system": {
 | 
			
		||||
            "clock_status": {
 | 
			
		||||
                "local_time": "2025-01-04 14:20:10",
 | 
			
		||||
                "seconds_from_1970": 1735996810
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getDetectionConfig": {
 | 
			
		||||
        "motion_detection": {
 | 
			
		||||
            "motion_det": {
 | 
			
		||||
                "digital_sensitivity": "30",
 | 
			
		||||
                "enabled": "on",
 | 
			
		||||
                "sensitivity": "low"
 | 
			
		||||
            },
 | 
			
		||||
            "region_info": []
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getDeviceInfo": {
 | 
			
		||||
        "device_info": {
 | 
			
		||||
            "basic_info": {
 | 
			
		||||
                "a_type": 3,
 | 
			
		||||
                "anti_theft_status": 0,
 | 
			
		||||
                "avatar": "camera d210",
 | 
			
		||||
                "battery_charging": "NO",
 | 
			
		||||
                "battery_overheated": false,
 | 
			
		||||
                "battery_percent": 90,
 | 
			
		||||
                "c_opt": [
 | 
			
		||||
                    0,
 | 
			
		||||
                    1
 | 
			
		||||
                ],
 | 
			
		||||
                "camera_switch": "on",
 | 
			
		||||
                "dev_id": "SCRUBBED_CHILD_DEVICE_ID_1",
 | 
			
		||||
                "device_alias": "#MASKED_NAME#",
 | 
			
		||||
                "device_model": "D230",
 | 
			
		||||
                "device_name": "#MASKED_NAME#",
 | 
			
		||||
                "device_type": "SMART.TAPODOORBELL",
 | 
			
		||||
                "firmware_status": "OK",
 | 
			
		||||
                "hw_version": "1.20",
 | 
			
		||||
                "last_activity_timestamp": 1735996775,
 | 
			
		||||
                "led_status": "on",
 | 
			
		||||
                "low_battery": false,
 | 
			
		||||
                "mac": "F0-09-0D-00-00-00",
 | 
			
		||||
                "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
                "online": true,
 | 
			
		||||
                "parent_device_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
                "parent_link_type": "ethernet",
 | 
			
		||||
                "power": "BATTERY",
 | 
			
		||||
                "power_save_mode": "off",
 | 
			
		||||
                "resolution": "2560*1920",
 | 
			
		||||
                "rssi": -43,
 | 
			
		||||
                "status": "configured",
 | 
			
		||||
                "sw_version": "1.1.19 Build 20241011 rel.67020",
 | 
			
		||||
                "system_time": 1735996808,
 | 
			
		||||
                "updating": false
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getFirmwareUpdateStatus": {
 | 
			
		||||
        "cloud_config": {
 | 
			
		||||
            "upgrade_status": {
 | 
			
		||||
                "lastUpgradingSuccess": true,
 | 
			
		||||
                "state": "normal"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLastAlarmInfo": {
 | 
			
		||||
        "system": {
 | 
			
		||||
            "last_alarm_info": {
 | 
			
		||||
                "last_alarm_time": "1735996775",
 | 
			
		||||
                "last_alarm_type": "motion"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLdc": {
 | 
			
		||||
        "image": {
 | 
			
		||||
            "switch": {
 | 
			
		||||
                "ldc": "off"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLedStatus": {
 | 
			
		||||
        "led": {
 | 
			
		||||
            "config": {
 | 
			
		||||
                "enabled": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLensMaskConfig": {
 | 
			
		||||
        "lens_mask": {
 | 
			
		||||
            "lens_mask_info": {
 | 
			
		||||
                "enabled": "off"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLightFrequencyInfo": {
 | 
			
		||||
        "image": {
 | 
			
		||||
            "common": {
 | 
			
		||||
                "light_freq_mode": "50"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getLightTypeList": {
 | 
			
		||||
        "light_type_list": [
 | 
			
		||||
            "flicker"
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "getMediaEncrypt": {
 | 
			
		||||
        "cet": {
 | 
			
		||||
            "media_encrypt": {
 | 
			
		||||
                "enabled": "on"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getMsgPushConfig": {
 | 
			
		||||
        "msg_push": {
 | 
			
		||||
            "chn1_msg_push_info": {
 | 
			
		||||
                "notification_enabled": "on",
 | 
			
		||||
                "rich_notification_enabled": "off"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getNightVisionCapability": {
 | 
			
		||||
        "image_capability": {
 | 
			
		||||
            "supplement_lamp": {
 | 
			
		||||
                "night_vision_mode_range": [
 | 
			
		||||
                    "inf_night_vision",
 | 
			
		||||
                    "wtl_night_vision",
 | 
			
		||||
                    "dbl_night_vision"
 | 
			
		||||
                ],
 | 
			
		||||
                "supplement_lamp_type": [
 | 
			
		||||
                    "infrared_lamp",
 | 
			
		||||
                    "white_lamp"
 | 
			
		||||
                ]
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getNightVisionModeConfig": {
 | 
			
		||||
        "image": {
 | 
			
		||||
            "switch": {
 | 
			
		||||
                "night_vision_mode": "dbl_night_vision"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getPersonDetectionConfig": {
 | 
			
		||||
        "people_detection": {
 | 
			
		||||
            "detection": {
 | 
			
		||||
                "enabled": "on",
 | 
			
		||||
                "sensitivity": "60"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getPetDetectionConfig": {
 | 
			
		||||
        "pet_detection": {
 | 
			
		||||
            "detection": {
 | 
			
		||||
                "enabled": "off",
 | 
			
		||||
                "sensitivity": "60"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getRecordPlan": {
 | 
			
		||||
        "record_plan": {
 | 
			
		||||
            "chn1_channel": {
 | 
			
		||||
                "enabled": "on",
 | 
			
		||||
                "friday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "monday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "saturday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "sunday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "thursday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "tuesday": "[\"0000-2400:2\"]",
 | 
			
		||||
                "wednesday": "[\"0000-2400:2\"]"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getRotationStatus": {
 | 
			
		||||
        "image": {
 | 
			
		||||
            "switch": {
 | 
			
		||||
                "flip_type": "off"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getSdCardStatus": {
 | 
			
		||||
        "harddisk_manage": {
 | 
			
		||||
            "hd_info": [
 | 
			
		||||
                {
 | 
			
		||||
                    "hd_info_1": {
 | 
			
		||||
                        "detect_status": "offline",
 | 
			
		||||
                        "disk_name": "1",
 | 
			
		||||
                        "loop_record_status": "1",
 | 
			
		||||
                        "status": "offline"
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getTimezone": {
 | 
			
		||||
        "system": {
 | 
			
		||||
            "basic": {
 | 
			
		||||
                "timezone": "UTC+01:00",
 | 
			
		||||
                "timing_mode": "ntp",
 | 
			
		||||
                "zone_id": "Europe/Amsterdam"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getVehicleDetectionConfig": {
 | 
			
		||||
        "vehicle_detection": {
 | 
			
		||||
            "detection": {
 | 
			
		||||
                "enabled": "off",
 | 
			
		||||
                "sensitivity": "60"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getVideoCapability": {
 | 
			
		||||
        "video_capability": {
 | 
			
		||||
            "main": {
 | 
			
		||||
                "bitrate_types": [
 | 
			
		||||
                    "vbr"
 | 
			
		||||
                ],
 | 
			
		||||
                "bitrates": [
 | 
			
		||||
                    "1457"
 | 
			
		||||
                ],
 | 
			
		||||
                "change_fps_support": "0",
 | 
			
		||||
                "encode_types": [
 | 
			
		||||
                    "H264"
 | 
			
		||||
                ],
 | 
			
		||||
                "frame_rates": [
 | 
			
		||||
                    65551
 | 
			
		||||
                ],
 | 
			
		||||
                "minor_stream_support": "1",
 | 
			
		||||
                "qualities": [
 | 
			
		||||
                    "5"
 | 
			
		||||
                ],
 | 
			
		||||
                "resolutions": [
 | 
			
		||||
                    "2560*1920"
 | 
			
		||||
                ]
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getVideoQualities": {
 | 
			
		||||
        "video": {
 | 
			
		||||
            "main": {
 | 
			
		||||
                "bitrate": "1943",
 | 
			
		||||
                "bitrate_type": "vbr",
 | 
			
		||||
                "encode_type": "H264",
 | 
			
		||||
                "frame_rate": "65551",
 | 
			
		||||
                "quality": "5",
 | 
			
		||||
                "resolution": "2560*1920"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getWhitelampConfig": {
 | 
			
		||||
        "image": {
 | 
			
		||||
            "switch": {
 | 
			
		||||
                "wtl_force_time": "300",
 | 
			
		||||
                "wtl_intensity_level": "5"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "getWhitelampStatus": {
 | 
			
		||||
        "rest_time": 0,
 | 
			
		||||
        "status": 0
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user