Add PIR ADC Values to Test Fixtures (#1296)

This commit is contained in:
Ryan Nitcher
2024-11-22 00:59:17 -07:00
committed by GitHub
parent 37cc4da7b6
commit c5830a4cdc
5 changed files with 243 additions and 35 deletions

View File

@@ -1,5 +1,52 @@
{
"cnCloud": {
"get_info": {
"binded": 1,
"cld_connection": 1,
"err_code": 0,
"fwDlPage": "",
"fwNotifyType": -1,
"illegalType": 0,
"server": "n-devs.tplinkcloud.com",
"stopConnect": 0,
"tcspInfo": "",
"tcspStatus": 1,
"username": "#MASKED_NAME#"
},
"get_intl_fw_list": {
"err_code": 0,
"fw_list": [
{
"fwLocation": 0,
"fwReleaseDate": "2024-06-19",
"fwReleaseLog": "Modifications and Bug Fixes:\n1. Added \"Hold on\" feature, now you can quickly double-click the switch to keep it on without being affected by the Smart Control rules.\n2. Fixed a bug where Motion & Dark rules could still be triggered under bright light conditions.\n3. Fixed some minor bugs.",
"fwReleaseLogUrl": "undefined yet",
"fwTitle": "Hi, a new firmware with bug fixes and performance improvement is available for your KS200M.",
"fwType": 2,
"fwUrl": "http://download.tplinkcloud.com/firmware/KS200M_FCC_1.0.12_Build_240507_Rel.143458_2024-05-07_14.37.42_1718767325443.bin",
"fwVer": "1.0.12 Build 240507 Rel.143458"
}
]
}
},
"schedule": {
"get_next_action": {
"err_code": 0,
"type": -1
},
"get_rules": {
"enable": 1,
"err_code": 0,
"rule_list": [],
"version": 2
}
},
"smartlife.iot.LAS": {
"get_adc_value": {
"err_code": 0,
"type": 2,
"value": 0
},
"get_config": {
"devs": [
{
@@ -44,9 +91,21 @@
],
"err_code": 0,
"ver": "1.0"
},
"get_current_brt": {
"err_code": 0,
"value": 0
},
"get_dark_status": {
"bDark": 1,
"err_code": 0
}
},
"smartlife.iot.PIR": {
"get_adc_value": {
"err_code": 0,
"value": 2025
},
"get_config": {
"array": [
80,
@@ -59,7 +118,7 @@
"err_code": 0,
"max_adc": 4095,
"min_adc": 0,
"trigger_index": 0,
"trigger_index": 2,
"version": "1.0"
}
},
@@ -87,7 +146,7 @@
"oemId": "00000000000000000000000000000000",
"on_time": 0,
"relay_state": 0,
"rssi": -39,
"rssi": -38,
"status": "new",
"sw_ver": "1.0.10 Build 221019 Rel.194527",
"updating": 0