物联网平台外部访问数据定义


获取设备模板设置参数接口

<h5>简要描述</h5> <ul> <li>获取设备模板设置参数</li> </ul> <h5>注意</h5> <ul> <li><strong>此接口暂时只支持设备类型:智能照明</strong></li> </ul> <h5>请求URL</h5> <ul> <li><code>https://www.zsdcloud.cn:8443/openApi/equipmentTemplateConfig/queryDeviceDesiredTemplateConfig.action</code> </li> </ul> <h5>请求方式</h5> <ul> <li>get</li> </ul> <h5>请求Query参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">keyCode</td> <td style="text-align: left;">是</td> <td>string</td> <td>设备识别码</td> </tr> <tr> <td style="text-align: left;">childDeviceKey</td> <td style="text-align: left;">是</td> <td>string</td> <td>子设备识别码</td> </tr> <tr> <td style="text-align: left;">doesQueryCurrent</td> <td style="text-align: left;">是</td> <td>number</td> <td>是否查询实时值,1是0否。请固定传1</td> </tr> <tr> <td style="text-align: left;">channelNo</td> <td style="text-align: left;">是</td> <td>number</td> <td>通道号</td> </tr> <tr> <td style="text-align: left;">templateType</td> <td style="text-align: left;">是</td> <td>string</td> <td>模板类型</td> </tr> <tr> <td style="text-align: left;">recordNo</td> <td style="text-align: left;">否</td> <td>number</td> <td>当检索配方设置(templateType为Formula)时,此参数必传。释义为配方号,共支持24个配方</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code> { &amp;quot;statusCode&amp;quot;: 200, &amp;quot;message&amp;quot;: &amp;quot;Success&amp;quot;, &amp;quot;result&amp;quot;: { &amp;quot;dataList&amp;quot;: [ { &amp;quot;id&amp;quot;: &amp;quot;1648996190102720514&amp;quot;, &amp;quot;templateType&amp;quot;: &amp;quot;LngAndLat&amp;quot;, &amp;quot;templateTypeName&amp;quot;: &amp;quot;经纬设置&amp;quot;, &amp;quot;valueList&amp;quot;: [ { &amp;quot;Identifier&amp;quot;: &amp;quot;Lng_D&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Lng_D&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;经度:度&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.0&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 180, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;Lng_M&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Lng_M&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;经度:分&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.0&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 59, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;Lat_D&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Lat_D&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;纬度:度&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.0&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 180, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;Lat_M&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Lat_M&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;纬度:分&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.0&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 59, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;id&amp;quot;: &amp;quot;1648996190102720515&amp;quot;, &amp;quot;templateType&amp;quot;: &amp;quot;Protection&amp;quot;, &amp;quot;templateTypeName&amp;quot;: &amp;quot;保护设置&amp;quot;, &amp;quot;valueList&amp;quot;: [ { &amp;quot;Identifier&amp;quot;: &amp;quot;T_Protect&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;T_Protect&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;温度保护值&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;40&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 180, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;T_Protect_RD&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;T_Protect_RD&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;温度保护回差值&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;10&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 59, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;CT&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;CT&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;CT变比&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.0&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 100, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;Over_I&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Over_I&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;过载保护值&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;int&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;16&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 59, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } }, { &amp;quot;Identifier&amp;quot;: &amp;quot;Over_I_RD&amp;quot;, &amp;quot;ShowKey&amp;quot;: &amp;quot;Over_I_RD&amp;quot;, &amp;quot;Name&amp;quot;: &amp;quot;过载保护回差值&amp;quot;, &amp;quot;DataType&amp;quot;: &amp;quot;double&amp;quot;, &amp;quot;Value&amp;quot;: &amp;quot;0.5&amp;quot;, &amp;quot;DataSpecs&amp;quot;: { &amp;quot;min&amp;quot;: 0, &amp;quot;max&amp;quot;: 59, &amp;quot;dataType&amp;quot;: &amp;quot;INT&amp;quot;, &amp;quot;step&amp;quot;: 1 } } ] } ] } ] } } </code></pre> <h5>成功返回示例的参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">dataList</td> <td style="text-align: left;">array</td> <td>数据集</td> </tr> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">string</td> <td>模板id</td> </tr> <tr> <td style="text-align: left;">templateType</td> <td style="text-align: left;">string</td> <td>模板类型</td> </tr> <tr> <td style="text-align: left;">templateTypeName</td> <td style="text-align: left;">string</td> <td>模板类型名称</td> </tr> <tr> <td style="text-align: left;">doesSupportBatch</td> <td style="text-align: left;">number</td> <td>是否支持批量设置,1是0否</td> </tr> <tr> <td style="text-align: left;">valueList</td> <td style="text-align: left;">array</td> <td>模板下的设置参数集</td> </tr> <tr> <td style="text-align: left;">Identifier</td> <td style="text-align: left;">String</td> <td>属性唯一识别字符</td> </tr> <tr> <td style="text-align: left;">Name</td> <td style="text-align: left;">String</td> <td>属性显示名称</td> </tr> <tr> <td style="text-align: left;">Unit</td> <td style="text-align: left;">String</td> <td>属性值单位,可能为空字符</td> </tr> <tr> <td style="text-align: left;">Value</td> <td style="text-align: left;">String</td> <td>此属性当前值</td> </tr> <tr> <td style="text-align: left;">DataType</td> <td style="text-align: left;">String</td> <td>值类型</td> </tr> <tr> <td style="text-align: left;">Time</td> <td style="text-align: left;">String</td> <td>设备上报此属性值的时间戳,非必返</td> </tr> <tr> <td style="text-align: left;">DataSpecs</td> <td style="text-align: left;">JSON</td> <td>属性限制详细,<strong>不是必返</strong>,其内min代表最小值,max代表最大值,step代表可设置的精确度,例如 0.1代表此属性可设置小数,1为整数</td> </tr> <tr> <td style="text-align: left;">DataSpecsList</td> <td style="text-align: left;">JSONArray</td> <td>属性限制详细,<strong>注此数组只当DataType为bool或enum时才会返回</strong>,其内value代表可设置的值,name代表值的释义</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>不同的templateType对应的可设置参数不同</li> </ul> <table> <thead> <tr> <th style="text-align: left;">templateType</th> <th style="text-align: left;">Identifier属性</th> <th>释义</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">LngAndLat 经纬设置</td> <td style="text-align: left;">Lng_D</td> <td>经度:度</td> </tr> <tr> <td style="text-align: left;">LngAndLat 经纬设置</td> <td style="text-align: left;">Lng_M</td> <td>经度:分</td> </tr> <tr> <td style="text-align: left;">LngAndLat 经纬设置</td> <td style="text-align: left;">Lat_D</td> <td>纬度:度</td> </tr> <tr> <td style="text-align: left;">LngAndLat 经纬设置</td> <td style="text-align: left;">Lat_M</td> <td>纬度:分</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">CT</td> <td>CT变比</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Over_I</td> <td>过载保护值</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Over_I_RD</td> <td>过载保护回差值</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Low_I</td> <td>欠载保护值(W)</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Low_I_RD</td> <td>欠载保护回差值(W)</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Over_U</td> <td>过压保护值</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Over_U_RD</td> <td>过压保护值回差值</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Low_U</td> <td>欠压保护值</td> </tr> <tr> <td style="text-align: left;">Protection 保护设置</td> <td style="text-align: left;">Low_U_RD</td> <td>欠压保护值回差值</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Enable</td> <td>配方使能,1开启0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Iillu_Enable</td> <td>光照功能使能,1开启0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">LS_On</td> <td>光照度通值</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">LS_Close</td> <td>光照度断值</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Mode</td> <td>开始时间模式,说明:0(自定义) 1(天黑) 2(天亮)</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Mode</td> <td>结束时间模式,说明:0(自定义) 1(天黑) 2(天亮)</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Year</td> <td>年:开始</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Month</td> <td>月:开始</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Day</td> <td>日:开始</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Hour</td> <td>时:开始</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">S_Minute</td> <td>分:开始</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Year</td> <td>年:结束</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Month</td> <td>月:结束</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Day</td> <td>日:结束</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Hour</td> <td>时:结束</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">E_Minute</td> <td>分:结束</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Monday</td> <td>周一,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Tuesday</td> <td>周二,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Wednesday</td> <td>周三,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Thursday</td> <td>周四,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Friday</td> <td>周五,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Saturday</td> <td>周六,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Sunday</td> <td>周日,1启用0关闭</td> </tr> <tr> <td style="text-align: left;">Formula 配方设置</td> <td style="text-align: left;">Enable_Light</td> <td>启用灯选择。arrayString 型值&quot;[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]&quot; 示例 第二个通道启用</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">T_Protect</td> <td>温度保护值</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">T_Protect_RD</td> <td>温度保护回差值</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">Sunrise_C_Time</td> <td>日出补偿时间</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">Sunset_C_Time</td> <td>日落补偿时间</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">A_Delay_Time</td> <td>继电器延时驱动(ms)</td> </tr> <tr> <td style="text-align: left;">Other 其他设置</td> <td style="text-align: left;">Reclosing_Delay_Time</td> <td>报警重合闸延时恢复时间(秒)</td> </tr> </tbody> </table>

页面列表

ITEM_HTML