乐橙云开发文档
控制台
更新日志
控制台
更新日志
快速入门
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
    • 按设备类型浏览
    • 设备能力
      • 通用方法
      • 侦测与告警
        • 布撤防
        • 关注区域
        • 客流
        • 哭声
        • 离岗
        • 人脸识别
        • 跌倒
        • 手势呼叫
        • 区域入侵
        • 徘徊
        • 未成年检测
        • 人车混合
        • 动检
        • 视频遮挡
        • 车辆违停
        • 人形
        • 宠物
        • PIR
        • 车牌识别
        • 车辆守卫
        • 警笛
          • detection.siren.enabled(获取警笛开关属性)
          • detection.siren.linkage(获取报警联动警笛属性)
          • detection.siren.linkage(设置报警联动警笛属性)
          • detection.siren.linkageEvents(获取警笛联动事件属性)
          • detection.siren.linkageEvents(设置警笛联动事件属性)
          • detection.siren.plan(获取警笛布防检测时间段属性)
          • detection.siren.plan(设置警笛布防检测时间段属性)
          • detection.siren.state(获取警笛状态属性)
          • detection.siren.start(开启警笛)
          • detection.siren.stop(关闭警笛)
          • detection.siren.countdown(获取警笛状态倒计时)
          • detection.siren.duration(设置警笛时长)
          • detection.siren.activated(警笛瞬时告警)
          • detection.siren.holdDuration(获取警笛保持时长属性)
          • detection.siren.holdDuration(设置警笛保持时长属性)
        • 语音呼救
        • 异常音
        • 越线
        • 无人出现
        • 车辆
        • 门磁
        • 防拆
        • 门控配件
        • 环境传感
        • 目标检测框
      • 图像
      • 云台
      • 灯光
      • 录像
      • 音频
      • 媒体
      • 网络
      • 电源
      • 隐私
      • 呼叫
      • 存储
      • 系统
      • 算法
      • 设备维护
      • 控制
      • 接口清单
      • 先跑通一次
    • 事件目录
    • 权限码
    • 错误码
    • 告警消息
  • API 参考
  • SDK 与工具
  • 行业方案
  • 平台与支持
本页目录
功能详情
请求地址
最小权限
传入参数说明
样例输入
错误码

detection.siren.holdDuration(设置警笛保持时长属性)

detection.siren.holdDuration:设置警笛保持时长属性

detection.siren.holdDuration · 通道级 · 权限 Config

功能详情

设置警笛保持时长。范围 0~600,步长 1,单位 s。

请求地址

POST https://openapi.lechange.cn/openapi/v2/device.property.set

最小权限

管理员操作自己绑定的设备不需要权限。操作被分享设备需要基础配置权限。子用户绑定不需要。子账号需要 Config。见 权限码。通道级漏 channelId 返回 DV2007。设备和通道写在同一次请求里返回 DV2008。写超时不代表未执行。

传入参数说明

参数名参数类型是否必填参数说明
tokenString是管理员、子用户或子账号 accessToken
deviceIdString是设备序列号
productIdString否可省略。传了且与该设备实际型号不一致 → DV2009
channelIdString条件通道级必填,设备级不要传
propertiesObject是key 为 detection.siren.holdDuration

取值 0~600,步长 1,单位 s。

公共请求字段与签名见 签名约定 与 公共请求负载。

样例输入

{
  "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
  "system": {
    "ver": "1.0",
    "appId": "lcdxxxxxxxxx",
    "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
    "time": 1706511734,
    "nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
  },
  "params": {
    "token": "<yourAccessToken>",
    "deviceId": "TESTIPC000012345",
    "channelId": "0",
    "properties": { "detection.siren.holdDuration": 50 }
  }
}

错误码

网关

错误码错误码说明下一步
SN1001签名异常按 签名 核对 sign
TK1002token 无效或过期重新获取 token
OP1002缺少必填参数补必填字段
OP1003参数不合法按本页参数表核对
OP1039分钟级限流等到下一分钟再试
OP1040调用超限降低频率
DV1007设备离线或超时等设备上线

DV20xx

include 未找到:devcap/errors/dv20-set.md

警笛

商务合作:cloud_openteam@imou.com · 工单 · 获取帮助(公众号、小程序试用中心)

Copyright © 2015-2026 IMOU. All Rights Reserved. 浙ICP备16023676号

detection.siren.holdDuration(获取警笛保持时长属性)
detection.sos.enabled(获取语音呼救开关属性)