### 获取设备(0024)
~~~[api]
POST:/device/get
room_id= # 房间ID(不提交则显示所有)
user_id= # 用户ID
device_type= # 设备类型-- 非必填字段填写则分类(1手动2自动)
gateway_mac= # 可选参数网关MAC
<<<
success
{
"code": 0,
"msg": "ok",
"data": [
{
"device_point_num": 3,
"devcie_gateway_mac": "65cnKtggCHEh14VISihkrbscMgqiUBqz",
"device_net": "496c",
"point_node": 1,
"device_name": "皮一下",
"id": 68,
"device_value": "",
"room_name": "音乐",
"device_mac": "gkbvsc3a32idr4gpxbpc",
"select_type": 2,
"point_where_default_value": null,
"point_action_select_vlaue": "ON,OFF",
"point_action_select": "打开,关闭"
},
{
"device_point_num": 3,
"devcie_gateway_mac": "65cnKtggCHEh14VISihkrbscMgqiUBqz",
"device_net": "496c",
"point_node": 2,
"device_name": "膜",
"id": 69,
"device_value": "",
"room_name": "音乐",
"device_mac": "gkbvsc3a32idr4gpxbpc",
"select_type": 2,
"point_where_default_value": null,
"point_action_select_vlaue": "ON,OFF",
"point_action_select": "打开,关闭"
},
{
"device_point_num": 3,
"devcie_gateway_mac": "65cnKtggCHEh14VISihkrbscMgqiUBqz",
"device_net": "496c",
"point_node": 3,
"device_name": "噢噢噢",
"id": 70,
"device_value": "",
"room_name": "音乐",
"device_mac": "gkbvsc3a32idr4gpxbpc",
"select_type": 1,
"point_where_default_value": null,
"point_action_select_vlaue": ">,<",
"point_action_select": "大于,小于"
}
]
}
<<<
error
{
"code": 20003,
"msg": "Phone Code invalid",
"dec": "验证码已经过期"
}
~~~
- 说明
- 用户操作
- 用户注册(0001)
- 发送验证码(0002)
- 忘记密码(0003)
- 用户登录(0004)
- 用户修改密码(0014)
- 用户信息修改(0033)
- 图片上传(0034)
- 用户基本信息获取(0035)
- 家的操作
- 创建家(0005)
- 删除家(0006)
- 修改家名称(0007)
- 获取家列表(0008)
- 房间的操作
- 创建房间(0010)
- 删除房间(0011)
- 修改房间名称(0012)
- 获取房间列表(0013)
- 网关的操作
- 创建网关(0014)
- 修改网关(0015)
- 删除网关(0016)
- 获取网关(0017)
- 搜索网关(0018)
- 设备操作
- 打开设备入网(0019)
- 搜索设备(0020)
- 创建设备(0021)
- 修改设备(0022)
- 删除设备(0023)
- 获取设备(0024)
- 设备消息推送(0033)
- 设备控制(0034)
- 获取设备节点(0035)
- 修改节点(0036)
- 天气操作
- 获取天气(0025)
- 场景操作
- 添加场景(0026)
- 删除场景(0027)
- 修改场景(0028)
- 获取场景(0029)
- 场景操作(0043)
- 智能控制操作
- 添加智能操作/修改智能操作(0030)
- 删除智能控制(0031)
- 获取智能控制(0032)
- 开启智能(0042)
- 更新说明
- 杂项
- 消息列表(0037)
- 遥控类型获取(0038)
- 遥控器品牌(0039)
- 获取遥控器型号(0040)
- 获取遥控器按键(0041)
- 节点绑定遥控器(0044)
- 解绑遥控器(0045)