device-docking/爱牵挂/HA02-HA10/pushdata.md
2023-12-20 11:07:38 +08:00

8.0 KiB
Executable File
Raw Permalink Blame History

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'], },