diff --git a/data/init/channel.json b/data/init/channel.json index 2bf58f64..cd74fb49 100644 --- a/data/init/channel.json +++ b/data/init/channel.json @@ -1,6 +1,6 @@ [ { - "id": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "id": "1", "code": "DingTalk", "title": "钉钉", "icon": "http://www.baidu.com", diff --git a/data/init/deviceGroup.json b/data/init/deviceGroup.json index 46fb9c64..6eede68e 100755 --- a/data/init/deviceGroup.json +++ b/data/init/deviceGroup.json @@ -2,7 +2,7 @@ { "id": "g3", "name": "组3", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "remark": "2223333", "deviceQty": 7, "createAt": 0 @@ -10,7 +10,7 @@ { "id": "g2", "name": "组2", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "remark": "222", "deviceQty": 12, "createAt": 0 @@ -18,7 +18,7 @@ { "id": "g1", "name": "分组1", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "remark": "1111", "deviceQty": 10, "createAt": 0 diff --git a/data/init/deviceInfo.json b/data/init/deviceInfo.json index 88cfba7e..c89f5ec0 100755 --- a/data/init/deviceInfo.json +++ b/data/init/deviceInfo.json @@ -5,7 +5,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001008", "secret": "rMAweEJrE7cxbQWa", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -31,7 +31,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001007", "secret": "eN4PjDhH4yx4mrmi", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -57,7 +57,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001006", "secret": "ePSkE7bzGMsR6rTs", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -83,7 +83,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001007", "secret": "mkQiSDk4rF3EWKFM", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -112,7 +112,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001006", "secret": "p72KAZyTA42zi8cJ", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -137,7 +137,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001005", "secret": "xnKZZyPKj2rH6ee3", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -166,7 +166,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001004", "secret": "PDkTxHPfw2H4WZjQ", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -191,7 +191,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001016", "secret": "3KdPNBKZEyDGaNYK", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -216,7 +216,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001015", "secret": "TBwbHJdJBQCpGdHi", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -241,7 +241,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001014", "secret": "86pTYbQxxX3wd2FR", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -266,7 +266,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001013", "secret": "FtxYcTM5p6B5GyPk", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -291,7 +291,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001012", "secret": "5yHFHseBHDbCK3eZ", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -316,7 +316,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001011", "secret": "pGC4z4TrbjZhii2m", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -341,7 +341,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001010", "secret": "HMxT2rQ55bzeRNJx", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -366,7 +366,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001009", "secret": "Z6yMp6D6mHKMjFi7", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -391,7 +391,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001008", "secret": "Ek3ZjwPayCymDxhN", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -416,7 +416,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001007", "secret": "NnnHaibdHJXMxNbC", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -441,7 +441,7 @@ "productKey": "Eit3kmGJtxSHfCKT", "deviceName": "2475b491e72541f7ad60ee9025d8430e", "secret": "bWkiEmY6wKM8WQP5", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false @@ -459,7 +459,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001006", "secret": "FFSdNXDRJbnE8fm2", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [ "04c6722f-9a6d-40f3-ac9b-cd791b4c8933" ], @@ -497,7 +497,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001005", "secret": "CN8ZGpcAheAbsDn2", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -516,7 +516,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001004", "secret": "S4SDRKscRXAn43bc", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -541,7 +541,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001003", "secret": "7N4S6eYzMCjA7YfK", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -560,7 +560,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001002", "secret": "Jm7ecfyXawiend8K", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -585,7 +585,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "PULG0A001001", "secret": "rtsZbST3tiJHccbe", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -610,7 +610,7 @@ "productKey": "eDhXKwEzwFybM5R7", "deviceName": "SWITCH03001005", "secret": "PXHwHXH4a8YJzZ3S", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -637,7 +637,7 @@ "productKey": "eDhXKwEzwFybM5R7", "deviceName": "SWITCH03001004", "secret": "BQj5SZetsC3eGtfM", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -664,7 +664,7 @@ "productKey": "eDhXKwEzwFybM5R7", "deviceName": "SWITCH03001003", "secret": "mbs4PsY4atEtzcA3", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -691,7 +691,7 @@ "productKey": "eDhXKwEzwFybM5R7", "deviceName": "SWITCH03001002", "secret": "4nrNrjnFMSQZB562", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -718,7 +718,7 @@ "productKey": "eDhXKwEzwFybM5R7", "deviceName": "SWITCH03001001", "secret": "Js66kBbXRjXmcpMB", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -739,7 +739,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01008", "secret": "pGxKYrNJC7rDhsr8", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -758,7 +758,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01007", "secret": "ZxDQeQ8jhMrfx8eE", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -777,7 +777,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01006", "secret": "fEbdXEayedpBx6wk", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -796,7 +796,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01005", "secret": "Crm28CTD6iw7hYw5", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -815,7 +815,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01004", "secret": "FkCQGREXYCmjzxaZ", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -834,7 +834,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001003", "secret": "JwKxnDWGrRcP8xAJ", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -853,7 +853,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001002", "secret": "xrX2mrkQwf3YYaWc", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -872,7 +872,7 @@ "productKey": "xpsYHExTKPFaQMS7", "deviceName": "LINGHT001001", "secret": "diRBkEREDt47MzWF", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -891,7 +891,7 @@ "productKey": "hdX3PCMcFrCYpesJ", "deviceName": "FAN0001003", "secret": "fR3R3i8BYDKWAiDj", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false @@ -906,7 +906,7 @@ "productKey": "hdX3PCMcFrCYpesJ", "deviceName": "FAN0001002", "secret": "t3NYS5p7ExYaWKx4", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false @@ -921,7 +921,7 @@ "productKey": "hdX3PCMcFrCYpesJ", "deviceName": "FAN0001001", "secret": "KSpeRjXRP8H7tcAn", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false @@ -936,7 +936,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01003", "secret": "DSBbhJW7cGXRWeZA", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -955,7 +955,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01002", "secret": "5bm8pNYcdj7YPMXn", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -974,7 +974,7 @@ "productKey": "6kYp6jszrDns2yh4", "deviceName": "WENSHIDU01001", "secret": "neSfPnhsjCsQiCQx", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -993,7 +993,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001003", "secret": "2D2k8mmHbi2AMh8G", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1013,7 +1013,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001002", "secret": "AQHQJTQ2iXkncb3C", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1033,7 +1033,7 @@ "productKey": "PN3EDmkBZDD8whDd", "deviceName": "MENCI0001001", "secret": "PwYEKSARBJjD4y6B", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1053,7 +1053,7 @@ "productKey": "cGCrkK7Ex4FESAwe", "deviceName": "TEST0012301", "secret": "C8YxCycFFeQDPKX4", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1074,7 +1074,7 @@ "deviceName": "ABE12500001", "model": "M1", "parentId": "16514626212240aabbccee01000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1097,7 +1097,7 @@ "productKey": "hbtgIA0SuVw9lxjB", "deviceName": "AA:BB:CC:DD:10", "model": "GW01", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false, @@ -1115,7 +1115,7 @@ "deviceName": "ABE12400001", "model": "S1", "parentId": "16514626212240aabbccee01000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1176,7 +1176,7 @@ "deviceId": "16514626212240aabbccee01000000143", "productKey": "N523nWsCiG3CAn6X", "deviceName": "AA:BB:CC:EE:01", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1196,7 +1196,7 @@ "deviceName": "F4CCE4FEFFBD1BEC", "model": "device", "parentId": "165017126122400cefafcfee61000012b", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1541,7 +1541,7 @@ "deviceName": "ABD12300002", "model": "F01", "parentId": "16465226744430aabbccdd22000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false, @@ -1563,7 +1563,7 @@ "deviceName": "ABD12300001", "model": "F01", "parentId": "16465226744430aabbccdd22000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false, @@ -1583,7 +1583,7 @@ "deviceName": "ABC12300003", "model": "S01", "parentId": "16465226744430aabbccdd22000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1604,7 +1604,7 @@ "deviceName": "ABC12300002", "model": "S01", "parentId": "16465226744430aabbccdd22000000143", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": true, @@ -1623,7 +1623,7 @@ "deviceId": "16465226744430aabbccdd22000000143", "productKey": "hbtgIA0SuVw9lxjB", "deviceName": "AA:BB:CC:DD:22", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false, @@ -1639,7 +1639,7 @@ "deviceId": "168187356997901234567891230000120", "productKey": "BRD3x4fkKxkaxXFt", "deviceName": "123456789123", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "subUid": [], "state": { "online": false, @@ -1655,7 +1655,7 @@ "deviceId": "168191541600402017121609130000126", "productKey": "PwMfpXmp4ZWkGahn", "deviceName": "201712160913", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "parentId": "168187356997901234567891230000120", "subUid": [], "state": { diff --git a/data/init/product.json b/data/init/product.json index 2ba94ac3..0663534f 100755 --- a/data/init/product.json +++ b/data/init/product.json @@ -4,7 +4,7 @@ "name": "调光灯", "category": "light", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1650174777304 }, { @@ -13,7 +13,7 @@ "name": "智能风扇", "category": "fan", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1646571291131 }, { @@ -21,7 +21,7 @@ "name": "GW01网关", "category": "gateway", "nodeType": 0, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/hbtgIA0SuVw9lxjB/cover.jpg?Expires=1967598154&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=2gh2jad14mVHGvWThwOd%2FykiB5g%3D", "transparent": false, "createAt": 1652238155938 @@ -31,7 +31,7 @@ "name": "三路开关", "category": "switch", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/eDhXKwEzwFybM5R7/cover.jpeg?Expires=1967598172&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=ZrFgANkomVEDQRV5JdmONL0S2sY%3D", "transparent": false, "createAt": 1652238173536 @@ -41,7 +41,7 @@ "name": "插座", "category": "SmartPlug", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/cGCrkK7Ex4FESAwe/cover.jpeg?Expires=1967598137&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=vOjqav0pRZqQFgx8xBo99WhgWXk%3D", "transparent": false, "createAt": 1652238138626 @@ -51,7 +51,7 @@ "name": "一路开关", "category": "switch", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/Rf4QSjbm65X45753/cover.jpeg?Expires=1967598145&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=ksQhmEm5Rn7C7FFqY09o9l%2BZ%2BIQ%3D", "transparent": false, "createAt": 1652238147123 @@ -61,7 +61,7 @@ "name": "门磁", "category": "door", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "null", "createAt": 1650190400357 }, @@ -70,7 +70,7 @@ "name": "ZGW01", "category": "gateway", "nodeType": 0, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/N523nWsCiG3CAn6X/cover.jpg?Expires=1967597641&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=%2BaGcHBT%2FHA3s%2BrZ687U50b4YE0A%3D", "transparent": false, "createAt": 1652237643216 @@ -80,7 +80,7 @@ "name": "燃气表", "category": "meter", "nodeType": 2, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "transparent": false, "createAt": 1654237604221 }, @@ -89,7 +89,7 @@ "name": "通断器", "category": "switch", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/DSGxxKk6E8mmDk6C/cover.jpeg?Expires=1967598201&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=k2PqHc%2BI14DfCwD8kQIflwoBAog%3D", "transparent": false, "createAt": 1652238202310 @@ -99,7 +99,7 @@ "name": "四路场景面板", "category": "switch", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1650187781637 }, { @@ -107,7 +107,7 @@ "name": "smart pulg", "category": "SmartPlug", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "img": "http://iotkit-img.oss-cn-shenzhen.aliyuncs.com/product/AWcJnf7ymGSkaz5M/cover.jpeg?Expires=1967598035&OSSAccessKeyId=LTAI5tGEHNoVu5tWHUWnosrs&Signature=tXzWH5%2B4JNcnuTFrJbvGwsbx97c%3D", "transparent": true, "createAt": 1652279098100 @@ -117,7 +117,7 @@ "name": "温湿度传感器", "category": "sensor", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1649653149339 }, { @@ -125,7 +125,7 @@ "name": "新风", "category": "FreshAir", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1649653149339 }, { @@ -133,7 +133,7 @@ "name": "智能电表采集器", "category": "gateway", "nodeType": 0, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1649653149339 }, { @@ -141,7 +141,7 @@ "name": "智能电表", "category": "SmartMeter", "nodeType": 1, - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1649653149339 } ] \ No newline at end of file diff --git a/data/init/protocolComponent.json b/data/init/protocolComponent.json index 59220bed..64a67b00 100644 --- a/data/init/protocolComponent.json +++ b/data/init/protocolComponent.json @@ -1,7 +1,7 @@ [ { "id": "eabb131d-8fd1-43a8-88d9-a198abfd3d42", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "MQTT标准协议组件", "type": "device", "protocol": "mqtt", @@ -14,7 +14,7 @@ }, { "id": "6c095554-35e7-4e9d-a8d2-bb919e9479f4", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "EMQX标准协议组件", "type": "device", "protocol": "mqtt", @@ -27,7 +27,7 @@ }, { "id": "3ababc5e-15e9-45a7-8f38-2a6afd45c780", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "小度音箱接入组件", "type": "biz", "protocol": "http", @@ -40,7 +40,7 @@ }, { "id": "2c089bb8-0412-449e-94f1-212d35a50219", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "WEBSOCKET服务端", "type": "device", "protocol": "websocket", @@ -54,7 +54,7 @@ , { "id": "305a8b86-4566-4f2a-a57f-f84ca47471a1", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "DLT645电表通讯组件", "type": "device", "protocol": "tcp", diff --git a/data/init/protocolConverter.json b/data/init/protocolConverter.json index 5d4b0707..b16e083c 100755 --- a/data/init/protocolConverter.json +++ b/data/init/protocolConverter.json @@ -1,28 +1,28 @@ [ { "id": "62995ba4dbf51a5ec41d5f7b", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "自定义表计协议", "desc": "用于燃气表的协议", "createAt": 1654217636597 }, { "id": "628ceb14addfdb2a3b4b5727", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "奇特HTTP标准协议", "desc": "奇特HTTP标准协议转换器", "createAt": 1653402388275 }, { "id": "6260396d67aced2696184053", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "奇特MQTT标准协议", "desc": "奇特MQTT标准协议转换器", "createAt": 1650473325173 }, { "id": "d7e84930-5460-4638-aa3f-e0c2015628f4", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "WS标准协议", "desc": "WS标准协议转换器", "createAt": 1650473325173 diff --git a/data/init/ruleInfo.json b/data/init/ruleInfo.json index c298f075..f879d648 100755 --- a/data/init/ruleInfo.json +++ b/data/init/ruleInfo.json @@ -29,7 +29,7 @@ "config": "{\"id\":\"de533da1-18cb-48ef-b913-22bdd96dcac9\",\"type\":\"http\",\"services\":[{\"url\":\"http://localhost:8087/aligenie/push\",\"script\":\"this.translate=function(msg){\\n var data={};\\n for(var p in msg.data){\\n\\tdata[p]=msg.data[p];\\n }\\n \\nreturn {\\n\\t//指定相对路径\\n path:\\\"/\\\",\\n method:\\\"post\\\",\\n header:{\\n //指定请求头\\n contentType:\\\"application/json; charset=utf-8\\\"\\n },\\n body:JSON.stringify({\\n deviceId:msg.deviceId,\\n type:msg.type,\\n identifier:msg.identifier,\\n data:data\\n })\\n }\\n}\"}]}" } ], - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "state": "stopped", "desc": "ss", "createAt": 1649218592640 @@ -60,7 +60,7 @@ "config": "{\"id\":\"35781aae-360f-4931-9d72-69f27e326e68\",\"type\":\"http\",\"services\":[{\"url\":\"https://xiaodu.baidu.com/saiya/smarthome/changereport\",\"script\":\"this.translate=function(msg,device){\\n var pk=msg.productKey;\\n var attributeName=\\\"\\\";\\n //插座/开关\\n if(pk==\\\"cGCrkK7Ex4FESAwe\\\" || pk==\\\"Rf4QSjbm65X45753\\\"){\\n\\tattributeName=\\\"turnOnState\\\";\\n }\\n //取openUid\\n var tag=device.tag;\\n if(!tag || !tag.duerosOpenUid){\\n\\treturn null;\\n }\\n var openUid=tag.duerosOpenUid.value;\\n \\n return {\\n \\\"path\\\":\\\"\\\",\\n \\\"method\\\":\\\"post\\\",\\n \\\"header\\\":{\\n //指定请求头\\n \\\"contentType\\\":\\\"application/json; charset=utf-8\\\"\\n },\\n \\\"body\\\":JSON.stringify({\\n\\t \\\"header\\\": {\\n\\t\\t \\\"namespace\\\": \\\"DuerOS.ConnectedHome.Control\\\",\\n\\t\\t \\\"name\\\": \\\"ChangeReportRequest\\\",\\n\\t\\t \\\"messageId\\\": new Date().getTime()+\\\"\\\",\\n\\t\\t \\\"payloadVersion\\\": \\\"1\\\"\\n\\t },\\n\\t \\\"payload\\\": {\\n\\t\\t \\\"botId\\\": \\\"eb20e515-f505-8d31-abef-46da3345f114\\\",\\n\\t\\t \\\"openUid\\\": openUid,\\n\\t\\t \\\"appliance\\\": {\\n\\t\\t\\t \\\"applianceId\\\": msg.deviceId,\\n\\t\\t\\t \\\"attributeName\\\": attributeName\\n\\t\\t }\\n\\t }\\n \\t})\\n }\\n}\"}]}" } ], - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "state": "running", "desc": "开关插座开关状态推送", "createAt": 1652515471242 @@ -87,7 +87,7 @@ "config": "{\"id\":\"fde024b5-5105-4639-8602-d04300613af9\",\"type\":\"device\",\"services\":[{\"device\":\"hdX3PCMcFrCYpesJ/ABD12300002\",\"identifier\":\"set\",\"inputData\":[{\"identifier\":\"powerSwitch\",\"value\":\"1\"}]},{\"device\":\"hdX3PCMcFrCYpesJ/ABD12300002\",\"identifier\":\"set\",\"inputData\":[{\"identifier\":\"windSpeed\",\"value\":\"20\"}]}]}" } ], - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "state": "stopped", "desc": "test", "createAt": 1649167998895 diff --git a/data/init/taskInfo.json b/data/init/taskInfo.json index 59a1b9bc..c9f731e9 100755 --- a/data/init/taskInfo.json +++ b/data/init/taskInfo.json @@ -12,9 +12,9 @@ } ], "state": "stopped", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "createAt": 1645928016031, - "reason": "stop by fa1c5eaa-de6e-48b6-805e-8f091c7bb831" + "reason": "stop by 1" }, { "id": "667bbfa1-a7ed-4ce8-9ce0-cfa8cac90e6c", diff --git a/data/init/userInfo.json b/data/init/userInfo.json index b1a71e2a..771d5247 100755 --- a/data/init/userInfo.json +++ b/data/init/userInfo.json @@ -2,7 +2,7 @@ { "id": "629e1d7fa176d816952f1e81", "uid": "13480802157", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "secret": "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F78574F4778613764564338594E666770595A376177", "nickName": "song2", "type": 1, @@ -18,7 +18,7 @@ { "id": "6286886077b91b031115e6a6", "uid": "guest1", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "演示账户", "secret": "48774861346645676F51324A4D6E6639306E6474437741634C4333746C4575666C316F76503455542B5836763065315A2F676244695056557356704D49513569", "type": 0, @@ -31,9 +31,9 @@ "createAt": 1647592821770 }, { - "id": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "id": "1", "uid": "iotkit", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "管理员", "secret": "6E49354D37437030564370666E48486150524B3134743258735059354D75324F6532594478654C47767535614C6C6E767139625170774E576477785A34513369", "type": 0, @@ -50,7 +50,7 @@ { "id": "a1051e81-f4fc-4182-a750-1a53a27f4c71", "uid": "du2", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "小度接入2", "type": 1, "roles": [ @@ -64,7 +64,7 @@ { "id": "5c0bea53-a318-42ed-a7c5-6e05e6db4ef2", "uid": "tm3", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "天猫精灵test3", "type": 1, "roles": [ @@ -78,7 +78,7 @@ { "id": "2bb3e6f1-17ba-4bf5-9d5e-85fdffd8b85d", "uid": "du1", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "小度接入1", "secret": "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A", "type": 1, @@ -94,7 +94,7 @@ { "id": "0ca377e2-66ff-49f3-90c3-108a86bc90eb", "uid": "tm1", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "天猫精灵1", "type": 1, "roles": [ @@ -108,7 +108,7 @@ { "id": "04c6722f-9a6d-40f3-ac9b-cd791b4c8933", "uid": "18126045687", - "ownerId": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "ownerId": "1", "nickName": "song", "secret": "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A", "type": 1, diff --git a/data/init/virtualDevice.json b/data/init/virtualDevice.json index f7ecdc6a..82d140ab 100755 --- a/data/init/virtualDevice.json +++ b/data/init/virtualDevice.json @@ -1,7 +1,7 @@ [ { "id":"6293953092084e2df303ba3e", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "三路开关", "productKey": "eDhXKwEzwFybM5R7", "devices": [ @@ -20,7 +20,7 @@ }, { "id":"629391ae92084e2df303ba3d", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "温湿度传感器", "productKey": "6kYp6jszrDns2yh4", "devices": [ @@ -44,7 +44,7 @@ }, { "id": "629390f492084e2df303ba3c", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "调光灯", "productKey": "xpsYHExTKPFaQMS7", "devices": [ @@ -65,7 +65,7 @@ }, { "id": "62925cb72002b44c15caeb1c", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "虚拟门磁1", "productKey": "PN3EDmkBZDD8whDd", "devices": [ @@ -86,7 +86,7 @@ }, { "id": "628fd800fba69e633a972e12", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "开关1", "productKey": "Rf4QSjbm65X45753", "devices": [ @@ -102,7 +102,7 @@ }, { "id": "628fa6bc1b735b73cb260042", - "uid": "fa1c5eaa-de6e-48b6-805e-8f091c7bb831", + "uid": "1", "name": "虚拟插座12", "productKey": "cGCrkK7Ex4FESAwe", "devices": [