244 lines
8.0 KiB
Markdown
Executable File
244 lines
8.0 KiB
Markdown
Executable File
doc V1.1
|
||
|
||
|
||
适用机型:HA02-HA09
|
||
|
||
|
||
数据发送:用户按文档开发回调接口,交由爱牵挂,在设备产生相关数据时调用,POST请求表单提交数据。
|
||
|
||
|
||
居家安全设备状态数据发送
|
||
|
||
- 地址: http://xxxxx/
|
||
- 方法: post
|
||
- content-type:application/x-www-form-urlencoded
|
||
- 参数规范
|
||
|
||
| 名称 | 必须 | 类型 | 触发机型 | 说明 |
|
||
| ---------------------- | ---- | ------------ | --------- | -----------------------------------------------------|
|
||
| imei | 是 | String | all | 15位设备唯一序号 |
|
||
| data_type | 是 | String | all | devicestatus |
|
||
| date_str | 是 | String | all | 触发时间,YYYYmmDDHHMMSS |
|
||
| device_type | 否 | String | all | 机型;devicestatus时一定存在 |
|
||
| power_type | 否 | String | all | 电量状态; 1 正常,0 异常 devicestatus时一定存在 |
|
||
| version | 否 | String | all | 软件版本;devicestatus时一定存在 |
|
||
| nb_signal | 否 | String | all | nb基站信号强度;devicestatus时可能存在 |
|
||
| nb_cellid | 否 | String | all | nb基站cellid ;devicestatus时可能存在 |
|
||
| maze_statu | 否 | Int | HA02 | 迷宫状态,1正常 0异常;devicestatus时可能存在 |
|
||
| circuit_statu | 否 | Int | HA02 | 电路状态,1正常 0异常;devicestatus时可能存在 |
|
||
| chip_temperature_statu | 否 | Int | HA02 | 芯片温度状态,1正常 0异常;devicestatus时可能存在 |
|
||
| temperature | 否 | String | HA02 | 环境温度;devicestatus时可能存在 |
|
||
| people_in_area_statu | 否 | String | HA02 | 探测区域是否有人,1有人 0无人;devicestatus时可能存在 |
|
||
| door_statu | 否 | String | HA03 | 门状态,1打开 0关闭;devicestatus时一定存在 |
|
||
| water_immersion_statu | 否 | String | HA06 | 水浸状态,1有水 0无水;devicestatus时一定存在 |
|
||
| humidity | 否 | String | HA10 | 环境湿度 |
|
||
| battery_voltage | 否 | String | HA10 | 电池电压 |
|
||
| gas_lel | 否 | Int | HA10 | 燃气浓度(%) |
|
||
| theshold_temperature_h | 否 | Float | HA10 | 高温阈值 |
|
||
| theshold_temperature_l | 否 | Float | HA10 | 低温阈值 |
|
||
| theshold_humidity_h | 否 | Float | HA10 | 高湿阈值 |
|
||
| theshold_humidity_l | 否 | Float | HA10 | 低湿阈值 |
|
||
|
||
|
||
居家安全设备报警数据发送
|
||
|
||
- 地址: http://xxxxx/
|
||
- 方法: post
|
||
- content-type:application/x-www-form-urlencoded
|
||
- 参数规范
|
||
|
||
| 名称 | 必须 | 类型 | 触发机型 | 说明 |
|
||
| ---------------------- | ---- | ------------ | --------- | -----------------------------------------------------|
|
||
| imei | 是 | String | all | 15位设备唯一序号 |
|
||
| date_str | 是 | String | all | 触发时间,YYYYmmDDHHMMSS |
|
||
| alarm_code | 否 | String | all | 报警编号,见报警编号列表;alarm时一定存在 |
|
||
| alarm_type | 否 | String | all | 报警类型,见报警编号列表;alarm时一定存在 |
|
||
| alarm_desc | 否 | String | all | 报警描述,见报警编号列表;alarm时一定存在 |
|
||
|
||
|
||
|
||
机型列表
|
||
HA02 烟感温度红外三合一报警器
|
||
HA03 门磁感应器
|
||
HA04 燃气报警器
|
||
HA05 红外体感报警器
|
||
HA06 水浸报警器
|
||
HA07 一键呼叫按钮
|
||
HA08 烟雾报警器
|
||
HA09 一氧化碳报警
|
||
HA10 温湿度传感器
|
||
|
||
报警编号列表
|
||
device_type 为空表示目前机型暂不支持,后续新增可能支持; all表示全部机型触发
|
||
'111': {
|
||
'alarm_type': 'smoke_warn',
|
||
'desc': u'烟雾报警',
|
||
'device_type': ['HA02','HA08'],
|
||
},
|
||
'384': {
|
||
'alarm_type': 'low_power',
|
||
'desc': u'低电提醒',
|
||
'device_type': ['all'],
|
||
},
|
||
'993': {
|
||
'alarm_type': 'low_power',
|
||
'desc': u'底座烟感低电警告',
|
||
'device_type': [],
|
||
},
|
||
'992': {
|
||
'alarm_type': 'low_power',
|
||
'desc': u'NB底座低电警告',
|
||
'device_type': [],
|
||
},
|
||
'991': {
|
||
'alarm_type': 'gas_warn',
|
||
'desc': u'燃气报警',
|
||
'device_type': ['HA04'],
|
||
},
|
||
'990': {
|
||
'alarm_type': 'fire_warn',
|
||
'desc': u'消防报警',
|
||
'device_type': [],
|
||
},
|
||
'989': {
|
||
'alarm_type': 'door_open',
|
||
'desc': u'门打开',
|
||
'device_type': ['HA03'],
|
||
},
|
||
'988': {
|
||
'alarm_type': 'door_close',
|
||
'desc': u'门关闭',
|
||
'device_type': ['HA03'],
|
||
},
|
||
'986': {
|
||
'alarm_type': 'high_temp_env',
|
||
'desc': u'高温报警',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'985': {
|
||
'alarm_type': 'leakage_warn',
|
||
'desc': u'漏电报警',
|
||
'device_type': [],
|
||
},
|
||
'984': {
|
||
'alarm_type': 'low_pressure',
|
||
'desc': u'低压警告',
|
||
'device_type': [],
|
||
},
|
||
'981': {
|
||
'alarm_type': 'offline',
|
||
'desc': u'设备离线',
|
||
'device_type': [],
|
||
},
|
||
'969': {
|
||
'alarm_type': 'water_immersion_warn',
|
||
'desc': u'水浸警告',
|
||
'device_type': ['HA06'],
|
||
},
|
||
'966': {
|
||
'alarm_type': 'shower_on',
|
||
'desc': u'喷淋打开',
|
||
'device_type': [],
|
||
},
|
||
'965': {
|
||
'alarm_type': 'shower_off',
|
||
'desc': u'喷淋关闭',
|
||
'device_type': [],
|
||
},
|
||
'963': {
|
||
'alarm_type': 'pull_down_warn',
|
||
'desc': u'拆除报警',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'962': {
|
||
'alarm_type': 'normal',
|
||
'desc': u'恢复正常',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'960': {
|
||
'alarm_type': 'alarm_test',
|
||
'desc': u'报警测试',
|
||
'device_type': ['all'],
|
||
},
|
||
'122': {
|
||
'alarm_type': 'sos',
|
||
'desc': u'紧急呼叫',
|
||
'device_type': [],
|
||
},
|
||
'955': {
|
||
'alarm_type': 'chip_temp_warn',
|
||
'desc': u'芯片温度报警',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'954': {
|
||
'alarm_type': 'chip_temp_warn',
|
||
'desc': u'温度短路报警',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'953': {
|
||
'alarm_type': 'chip_temp_warn',
|
||
'desc': u'温度开路报警',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'938': {
|
||
'alarm_type': 'check_warn',
|
||
'desc': u'自检故障1',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'937': {
|
||
'alarm_type': 'check_ok',
|
||
'desc': u'自检正常',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'936': {
|
||
'alarm_type': 'power_on',
|
||
'desc': u'设备开机',
|
||
'device_type': ['ha02'],
|
||
},
|
||
'935': {
|
||
'alarm_type': 'human_out',
|
||
'desc': u'探测区域已无人',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'934': {
|
||
'alarm_type': 'human_in',
|
||
'desc': u'探测区域有人',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'933': {
|
||
'alarm_type': 'check_warn',
|
||
'desc': u'自检错误2',
|
||
'device_type': ['HA02'],
|
||
},
|
||
'932': {
|
||
'alarm_type': 'check_warn',
|
||
'desc': u'自检错误3',
|
||
'device_type': ['HA02'],
|
||
},
|
||
|
||
'1991': {
|
||
'alarm_type': 'co_warn',
|
||
'desc': u'一氧化碳报警',
|
||
'device_type': ['HA09'],
|
||
},
|
||
'1962': {
|
||
'alarm_type': 'normal',
|
||
'desc': u'一氧化碳恢复正常',
|
||
'device_type': ['HA09'],
|
||
},
|
||
|
||
'1901': {
|
||
'alarm_type': 'low_humidity',
|
||
'desc': u'低湿报警',
|
||
'device_type': ['HA10'],
|
||
},
|
||
'1902': {
|
||
'alarm_type': 'high_humidity',
|
||
'desc': u'高湿报警',
|
||
'device_type': ['HA10'],
|
||
},
|
||
'1903': {
|
||
'alarm_type': 'low_temp_env',
|
||
'desc': u'低温报警',
|
||
'device_type': ['HA10'],
|
||
}, |