Selaa lähdekoodia

更新 'product/deviceconfig.md'

zhugongping 1 vuosi sitten
vanhempi
commit
fe65dec6f0
1 muutettua tiedostoa jossa 249 lisäystä ja 47 poistoa
  1. 249 47
      product/deviceconfig.md

+ 249 - 47
product/deviceconfig.md

@@ -104,19 +104,35 @@ Authorization: Bearer {{token}}
 	"msg": "操作成功",
 	"data": [
 		{
-			"id": 1,
-			"name": "t",
-			"displayName": "t",
-			"size": 10,
-			"imgUrl": "v1/static/xx/1.jpg",
-			"version": null,
+			"id": "1",
+			"name": "111..png",
+			"displayName": "111",
+			"size": "63163",
+			"backgroundPxId": "1",
+			"pxName": "1x2",
+			"imgUrl": "v1/static/project/2025/03/03/default/111.png",
+			"version": 1,
 			"status": 0,
 			"isDel": 0,
-			"createTime": "2024-12-05T11:01:38",
-			"updateTime": "2024-12-05T11:01:54"
+			"createTime": "2025-03-03 11:47:09",
+			"updateTime": "2025-03-03 11:47:09"
+		},
+		{
+			"id": "2",
+			"name": "312312..png",
+			"displayName": "312312",
+			"size": "49672",
+			"backgroundPxId": "4",
+			"pxName": null,
+			"imgUrl": "v1/static/project/2025/03/07/default/312312.png",
+			"version": 1,
+			"status": 0,
+			"isDel": 0,
+			"createTime": "2025-03-07 06:38:39",
+			"updateTime": "2025-03-07 06:38:39"
 		}
 	],
-	"time": 1733367719077
+	"time": "1741663562859"
 }
 ```
 
@@ -164,9 +180,9 @@ Authorization: Bearer {{token}}
 	"msg": "操作成功",
 	"data": {
 		"city": {
-			"location_id": "101010100",
-			"location_name_en": "Beijing",
-			"location_name_zh": "北京",
+			"location_id": "101010400",
+			"location_name_en": "Shunyi",
+			"location_name_zh": "顺义",
 			"iso_3166_1": "CN",
 			"country_region_en": "China",
 			"country_region_zh": "中国",
@@ -175,68 +191,254 @@ Authorization: Bearer {{token}}
 			"adm2_name_en": "Beijing",
 			"adm2_name_zh": "北京市",
 			"timezone": "Asia/Shanghai",
-			"latitude": "39.904987",
-			"longitude": "116.405289",
-			"adcode": "110000"
+			"latitude": "40.128937",
+			"longitude": "116.653526",
+			"adcode": "110113"
 		},
 		"areas": [
 			{
-				"id": 1,
+				"id": "2",
 				"pid": 0,
-				"name": "三楼",
-				"groupable": true
+				"name": "1",
+				"groupable": false
 			}
 		],
 		"devices": [
 			{
 				"opr": "addOrUpd",
-				"id": 322,
-				"pid": 0,
-				"area_id": 2,
+				"id": "16",
+				"pid": "8",
+				"area_id": "2",
+				"type": "humiture",
+				"subtype": "humiture_common",
+				"name": "00000009",
+				"display_name": "温湿度",
+				"description": "122",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"temp": 24,
+					"address": "22",
+					"port": "1",
+					"humidity": 60
+				}
+			},
+			{
+				"opr": "addOrUpd",
+				"id": "18",
+				"pid": "8",
+				"area_id": "2",
+				"type": "panel",
+				"subtype": "canbus",
+				"name": "20000001",
+				"display_name": "面板",
+				"description": "112",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"address": "1",
+					"display_scene": [],
+					"associated_machine": [],
+					"is_gateway": false,
+					"associated_sensor": [
+						{
+							"type": "humiture",
+							"name": "00000009",
+							"calibration": 0
+						}
+					],
+					"lock_end_time": "23:59:59",
+					"icons": [],
+					"control_bits": [],
+					"background": [],
+					"lock_weekday": [
+						1,
+						2,
+						3,
+						4,
+						5,
+						6,
+						7
+					],
+					"display_device": [
+						{
+							"name": "00000002",
+							"lock": false
+						},
+						{
+							"name": "00000005",
+							"lock": false
+						},
+						{
+							"name": "00000007",
+							"lock": false
+						},
+						{
+							"name": "00000008",
+							"lock": false
+						}
+					],
+					"lock_start_time": "00:00:00"
+				}
+			},
+			{
+				"opr": "addOrUpd",
+				"id": "8",
+				"pid": "0",
+				"area_id": "2",
 				"type": "gateway",
-				"subtype": "YG003",
-				"name": "4001",
-				"display_name": "主网关",
-				"version": 1,
+				"subtype": "YG001",
+				"name": "40000001",
+				"display_name": "网关",
+				"description": "2",
+				"version": 2,
 				"config": {
-					"address": "A51234F85667",
+					"broadcast": false,
+					"bus": "canbus",
+					"address": "1",
 					"master": true
 				}
-			}
-		],
-		"scenes": [
+			},
 			{
 				"opr": "addOrUpd",
-				"id": 335,
-				"pid": 0,
-				"area_id": 2,
-				"type": "scene",
-				"subtype": "scene",
-				"name": "3001",
-				"display_name": "场景1",
-				"description": "场景1",
-				"version": 1,
-				"actions": {
-					"winter": [
+				"id": "9",
+				"pid": "8",
+				"area_id": "2",
+				"type": "light",
+				"subtype": "light_common",
+				"name": "00000002",
+				"display_name": "灯光11",
+				"description": "112333333333333333333",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"address": "21",
+					"port": "1"
+				}
+			},
+			{
+				"opr": "addOrUpd",
+				"id": "12",
+				"pid": "8",
+				"area_id": "2",
+				"type": "aircon",
+				"subtype": "aircon_common",
+				"name": "00000005",
+				"display_name": "空调",
+				"description": "112",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"temp": 26,
+					"modes": [
+						"fan",
+						"cool",
+						"heat"
+					],
+					"address": "22",
+					"associated_sensor": [
 						{
-							"name": "0005"
+							"type": "humiture",
+							"name": "00000009",
+							"calibration": 0
 						}
 					],
-					"summer": [
+					"control_addr": "1",
+					"temp_max": 30,
+					"hvac_addr": "1",
+					"accessibilities": [
+						"smart_up",
+						"smart_left",
+						"smart_auto"
+					],
+					"temp_min": 16,
+					"port": "1",
+					"speeds": [
+						"2",
+						"1",
+						"3"
+					],
+					"control_type": "protocol"
+				}
+			},
+			{
+				"opr": "addOrUpd",
+				"id": "14",
+				"pid": "8",
+				"area_id": "2",
+				"type": "airfresh",
+				"subtype": "airfresh_daikin",
+				"name": "00000007",
+				"display_name": "新风",
+				"description": "112",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"temp": 20,
+					"modes": [
+						"fan_side",
+						"heat_exchange",
+						"auto"
+					],
+					"address": "12",
+					"control_addr": "1",
+					"hvac_addr": "1",
+					"control_bits": [
 						{
-							"name": "0004"
+							"name": "speed_1_port",
+							"value": "1"
+						},
+						{
+							"name": "speed_3_port",
+							"value": "1"
 						}
 					],
-					"common": [
+					"port": "1",
+					"speeds": [
+						"1",
+						"3"
+					]
+				}
+			},
+			{
+				"opr": "addOrUpd",
+				"id": "15",
+				"pid": "8",
+				"area_id": "2",
+				"type": "aircon-outside",
+				"subtype": "aircon_outside_common",
+				"name": "00000008",
+				"display_name": "空调外机",
+				"description": "112",
+				"version": 2,
+				"config": {
+					"broadcast": false,
+					"bus": "canbus",
+					"temp": 26,
+					"modes": [
+						"fan",
+						"cool",
+						"heat"
+					],
+					"address": "12",
+					"associated_sensor": [
 						{
-							"name": "0003"
+							"type": "humiture",
+							"name": "00000009",
+							"calibration": 0
 						}
-					]
+					],
+					"port": "1"
 				}
 			}
 		]
 	},
-	"time": 1733367851249
+	"time": "1741658338428"
 }
 ```