获取家庭设备列表
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://tewutu.lantin.me/serve-user/app-api/v1/family/device/{familyId}</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Authorization</td>
<td style="text-align: left;">Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoZW50aWNhdGlvbk1ldGhvZCI6Im1vYmlsZSIsInVzZXJfbmFtZSI6IjE4ODY4MTk1NjAwIiwic2NvcGUiOlsiYWxsIl0sInVzZXJJZCI6MjQsImp0aSI6IjMzNjBkOTZkLWM2YTAtNGM0Yi05YWVhLTQwYWFiYjQ4ZGU2YiIsImNsaWVudF9pZCI6ImVhZ2UtYXBwIiwidXNlcm5hbWUiOiIxODg2ODE5NTYwMCJ9.XS-bJFyZTYmC9TantNim2pzm696POU_s1SX9Z6wLvt62E23txNFZW5WRa3ANMcUEM209nyvP2yWlKrkgM3GOMznEfd_L06Uo65Vm4UdUfzhTTsz-fd-rhXPCyIRAeLIbAKUoHySE912SkMoOaygBpC_7dW89la0tDWUclM0uXz_dDgd74Dz2gPlINLAjQzxKsFNGa6rzFctA6xO2EiY4evC2JIYXU3qetWvsZdOG--C-1Cqqc1CAm4QuQDzVW01Z4bwueaWUsls234sVT4Cnp-FGhldDMgV78tLrs1lzF0PXwz2YSIpWCTe5lLPB-cMgRENXQDikiBHrVi1DTRRDzw</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">roomId</td>
<td style="text-align: left;"></td>
<td>否</td>
<td>string</td>
<td>房间ID</td>
</tr>
<tr>
<td style="text-align: left;">isDisplay</td>
<td style="text-align: left;">1</td>
<td>否</td>
<td>string</td>
<td>是否首页显示</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": "00000",
"data": [
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "人体传感器",
"proName": "人体自研FR902",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/2ffc3f3436f24e679c140f46f3efe1fd_1200*1200.png",
"roomId": "538",
"room": "展厅",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "2093",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": "100",
"remoteId": "42",
"controlId": "39BAFD22004B1200",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 0,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "门窗传感器",
"proName": "门磁自研2号",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/ab865f01285d46519cfed68190f408b4_400*400.png",
"roomId": "538",
"room": "展厅",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "1443",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": "48",
"remoteId": "41",
"controlId": "E0BDFD22004B1200",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 0,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "人体(光照)传感器",
"proName": "人体(光照)传感器",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/406dd9e555734aad92f54cd0bcca61cd_400*400.png",
"roomId": "538",
"room": "展厅",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "82",
"type": 2,
"deviceRemoteId": "1411",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": null,
"remoteId": "48",
"controlId": "8D1296FEFF277184",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 0,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "门窗传感器",
"proName": "门磁传感器自研",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/ab865f01285d46519cfed68190f408b4_400*400.png",
"roomId": "538",
"room": "展厅",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "1388",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": "95",
"remoteId": "41",
"controlId": "AFBEFD22004B1200",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 0,
"isDisplay": 1
},
{
"baseId": "1",
"deviceId": "139",
"serialNumber": "58:BF:25:43:76:13",
"category": "智能伴侣(内测版)",
"proName": "全屋中控",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/dc48b2a1482f4b2ab0634310d81aca3e_1080*1080.png",
"roomId": "538",
"room": "展厅",
"isOnline": 1,
"deviceSignal": 4,
"isOpen": 0,
"light": "40",
"type": 1,
"deviceRemoteId": null,
"deviceRemoteType": null,
"alarmState": null,
"isAlarm": null,
"tamperAlarm": null,
"voltage": null,
"remoteId": null,
"controlId": null,
"brand": null,
"familyId": "167",
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": "23.1",
"humidity": "43",
"isReceive": null,
"roomItemId": null,
"background": null,
"isCharge": null,
"air": null,
"isControl": null,
"order": 0,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "人体(光照)传感器",
"proName": "人体(光照)传感器",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/406dd9e555734aad92f54cd0bcca61cd_400*400.png",
"roomId": "539",
"room": "茶水间",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "84",
"type": 2,
"deviceRemoteId": "1183",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": null,
"remoteId": "48",
"controlId": "B30B96FEFF277184",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 2,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "人体传感器",
"proName": "人体传感器ty01",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/2ffc3f3436f24e679c140f46f3efe1fd_1200*1200.png",
"roomId": "543",
"room": "实验室",
"isOnline": 1,
"deviceSignal": null,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "1793",
"deviceRemoteType": 1,
"alarmState": 1,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": null,
"remoteId": "42",
"controlId": "849249428538C1A4",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 4,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "139",
"serialNumber": null,
"category": "智能窗帘",
"proName": "智能窗帘测试模块",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/7c51e30d44764de5913716258d18febd_400*400.png",
"roomId": "543",
"room": "实验室",
"isOnline": 1,
"deviceSignal": 0,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "3053",
"deviceRemoteType": 1,
"alarmState": 0,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": null,
"remoteId": "37",
"controlId": "727B4423004B1200",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": 0,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 4,
"isDisplay": 1
},
{
"baseId": null,
"deviceId": "526",
"serialNumber": null,
"category": "智能插座Zigbee版",
"proName": "智能插座Zigbee版",
"proPic": "https:\/\/cloud.lantin.me\/pro\/cloud\/94d82d069fce4edda12127dd048dbf88_750*814.png",
"roomId": "917",
"room": "无",
"isOnline": 0,
"deviceSignal": null,
"isOpen": 0,
"light": "0",
"type": 2,
"deviceRemoteId": "3061",
"deviceRemoteType": 1,
"alarmState": 0,
"isAlarm": 0,
"tamperAlarm": 0,
"voltage": null,
"remoteId": "39",
"controlId": "C77E3CFEFF5F3250",
"brand": null,
"familyId": null,
"familyName": null,
"isAdmin": null,
"h5Url": null,
"temperature": null,
"humidity": null,
"isReceive": 0,
"roomItemId": null,
"background": null,
"isCharge": 0,
"air": 0,
"isControl": null,
"order": 99,
"isDisplay": 1
}
],
"msg": "ok"
}
</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;">deviceId</td>
<td style="text-align: left;">string</td>
<td>设备ID</td>
</tr>
<tr>
<td style="text-align: left;">proName</td>
<td style="text-align: left;">string</td>
<td>设备名</td>
</tr>
<tr>
<td style="text-align: left;">proPic</td>
<td style="text-align: left;">object</td>
<td>设备图</td>
</tr>
<tr>
<td style="text-align: left;">roomId</td>
<td style="text-align: left;">string</td>
<td>房间ID</td>
</tr>
<tr>
<td style="text-align: left;">room</td>
<td style="text-align: left;">string</td>
<td>房间名</td>
</tr>
<tr>
<td style="text-align: left;">isOnline</td>
<td style="text-align: left;">string</td>
<td>0:离线 1在线</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">string</td>
<td>1 一级设备 2 二级设备(遥控器 移除操作需调用移除遥控器接口) 3 灯光 移除操作需调用删除灯光接口</td>
</tr>
<tr>
<td style="text-align: left;">roomItemId</td>
<td style="text-align: left;">string</td>
<td>灯光ID(全屋灯光)</td>
</tr>
<tr>
<td style="text-align: left;">controlId</td>
<td style="text-align: left;">object</td>
<td>码库遥控器ID</td>
</tr>
<tr>
<td style="text-align: left;">brand</td>
<td style="text-align: left;">object</td>
<td>遥控器品牌</td>
</tr>
<tr>
<td style="text-align: left;">remoteId</td>
<td style="text-align: left;">object</td>
<td>遥控器类型</td>
</tr>
<tr>
<td style="text-align: left;">deviceRemoteId</td>
<td style="text-align: left;">string</td>
<td>遥控器ID</td>
</tr>
<tr>
<td style="text-align: left;">deviceSignal</td>
<td style="text-align: left;">string</td>
<td>信号 0-4</td>
</tr>
<tr>
<td style="text-align: left;">h5Url</td>
<td style="text-align: left;">string</td>
<td>H5控制面板</td>
</tr>
<tr>
<td style="text-align: left;">isOpen</td>
<td style="text-align: left;">string</td>
<td>开关</td>
</tr>
<tr>
<td style="text-align: left;">light</td>
<td style="text-align: left;">string</td>
<td>亮度/光照</td>
</tr>
<tr>
<td style="text-align: left;">deviceRemoteType</td>
<td style="text-align: left;">string</td>
<td>0 红外 1 网关 2 wifi</td>
</tr>
<tr>
<td style="text-align: left;">alarmState</td>
<td style="text-align: left;">string</td>
<td>警报状态 0 无 1 报警 2 防拆报警</td>
</tr>
<tr>
<td style="text-align: left;">isAlarm</td>
<td style="text-align: left;">string</td>
<td>是否报警</td>
</tr>
<tr>
<td style="text-align: left;">tamperAlarm</td>
<td style="text-align: left;">number</td>
<td>防拆是否报警</td>
</tr>
<tr>
<td style="text-align: left;">voltage</td>
<td style="text-align: left;">string</td>
<td>电量</td>
</tr>
<tr>
<td style="text-align: left;">filterLife</td>
<td style="text-align: left;">string</td>
<td>滤芯使用耐久度</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p>声光报警器:
isAlarm/门铃使能标志位,1为门铃有效,0为门铃无效
numerical/音量设置,3为最大,2中间,1最小
isOpen/门铃声音控制,1为开启
alarmState/报警状态,0为关闭,1为开启</p>