@nebulahome/integration-sdk 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1087,6 +1087,400 @@
1087
1087
  ],
1088
1088
  "additionalProperties": false
1089
1089
  },
1090
+ "serial": {
1091
+ "type": "object",
1092
+ "properties": {
1093
+ "match": {
1094
+ "minItems": 1,
1095
+ "maxItems": 16,
1096
+ "type": "array",
1097
+ "items": {
1098
+ "anyOf": [
1099
+ {
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "path": {
1103
+ "type": "string",
1104
+ "minLength": 1,
1105
+ "maxLength": 256,
1106
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1107
+ },
1108
+ "equals": {
1109
+ "type": [
1110
+ "string",
1111
+ "number",
1112
+ "boolean"
1113
+ ]
1114
+ }
1115
+ },
1116
+ "required": [
1117
+ "path",
1118
+ "equals"
1119
+ ],
1120
+ "additionalProperties": false
1121
+ },
1122
+ {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "path": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 256,
1129
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1130
+ },
1131
+ "exists": {
1132
+ "type": "boolean",
1133
+ "const": true
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "path",
1138
+ "exists"
1139
+ ],
1140
+ "additionalProperties": false
1141
+ },
1142
+ {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "path": {
1146
+ "type": "string",
1147
+ "minLength": 1,
1148
+ "maxLength": 256,
1149
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1150
+ },
1151
+ "oneOf": {
1152
+ "minItems": 1,
1153
+ "maxItems": 64,
1154
+ "type": "array",
1155
+ "items": {
1156
+ "type": [
1157
+ "string",
1158
+ "number",
1159
+ "boolean"
1160
+ ]
1161
+ }
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "path",
1166
+ "oneOf"
1167
+ ],
1168
+ "additionalProperties": false
1169
+ },
1170
+ {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "path": {
1174
+ "type": "string",
1175
+ "minLength": 1,
1176
+ "maxLength": 256,
1177
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1178
+ },
1179
+ "startsWith": {
1180
+ "type": "string",
1181
+ "minLength": 1,
1182
+ "maxLength": 64
1183
+ }
1184
+ },
1185
+ "required": [
1186
+ "path",
1187
+ "startsWith"
1188
+ ],
1189
+ "additionalProperties": false
1190
+ },
1191
+ {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "path": {
1195
+ "type": "string",
1196
+ "minLength": 1,
1197
+ "maxLength": 256,
1198
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1199
+ },
1200
+ "endsWith": {
1201
+ "type": "string",
1202
+ "minLength": 1,
1203
+ "maxLength": 64
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "path",
1208
+ "endsWith"
1209
+ ],
1210
+ "additionalProperties": false
1211
+ },
1212
+ {
1213
+ "type": "object",
1214
+ "properties": {
1215
+ "path": {
1216
+ "type": "string",
1217
+ "minLength": 1,
1218
+ "maxLength": 256,
1219
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1220
+ },
1221
+ "contains": {
1222
+ "type": [
1223
+ "string",
1224
+ "number",
1225
+ "boolean"
1226
+ ]
1227
+ }
1228
+ },
1229
+ "required": [
1230
+ "path",
1231
+ "contains"
1232
+ ],
1233
+ "additionalProperties": false
1234
+ },
1235
+ {
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "path": {
1239
+ "type": "string",
1240
+ "minLength": 1,
1241
+ "maxLength": 256,
1242
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1243
+ },
1244
+ "min": {
1245
+ "type": "number"
1246
+ },
1247
+ "max": {
1248
+ "type": "number"
1249
+ }
1250
+ },
1251
+ "required": [
1252
+ "path"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ }
1256
+ ]
1257
+ }
1258
+ },
1259
+ "model": {
1260
+ "default": "product",
1261
+ "anyOf": [
1262
+ {
1263
+ "type": "string",
1264
+ "minLength": 1,
1265
+ "maxLength": 256,
1266
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1267
+ },
1268
+ {
1269
+ "minItems": 1,
1270
+ "maxItems": 4,
1271
+ "type": "array",
1272
+ "items": {
1273
+ "type": "string",
1274
+ "minLength": 1,
1275
+ "maxLength": 256,
1276
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1277
+ }
1278
+ }
1279
+ ]
1280
+ }
1281
+ },
1282
+ "required": [
1283
+ "match"
1284
+ ],
1285
+ "additionalProperties": false
1286
+ },
1287
+ "bluetooth": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "match": {
1291
+ "minItems": 1,
1292
+ "maxItems": 16,
1293
+ "type": "array",
1294
+ "items": {
1295
+ "anyOf": [
1296
+ {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "path": {
1300
+ "type": "string",
1301
+ "minLength": 1,
1302
+ "maxLength": 256,
1303
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1304
+ },
1305
+ "equals": {
1306
+ "type": [
1307
+ "string",
1308
+ "number",
1309
+ "boolean"
1310
+ ]
1311
+ }
1312
+ },
1313
+ "required": [
1314
+ "path",
1315
+ "equals"
1316
+ ],
1317
+ "additionalProperties": false
1318
+ },
1319
+ {
1320
+ "type": "object",
1321
+ "properties": {
1322
+ "path": {
1323
+ "type": "string",
1324
+ "minLength": 1,
1325
+ "maxLength": 256,
1326
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1327
+ },
1328
+ "exists": {
1329
+ "type": "boolean",
1330
+ "const": true
1331
+ }
1332
+ },
1333
+ "required": [
1334
+ "path",
1335
+ "exists"
1336
+ ],
1337
+ "additionalProperties": false
1338
+ },
1339
+ {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "path": {
1343
+ "type": "string",
1344
+ "minLength": 1,
1345
+ "maxLength": 256,
1346
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1347
+ },
1348
+ "oneOf": {
1349
+ "minItems": 1,
1350
+ "maxItems": 64,
1351
+ "type": "array",
1352
+ "items": {
1353
+ "type": [
1354
+ "string",
1355
+ "number",
1356
+ "boolean"
1357
+ ]
1358
+ }
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "path",
1363
+ "oneOf"
1364
+ ],
1365
+ "additionalProperties": false
1366
+ },
1367
+ {
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "path": {
1371
+ "type": "string",
1372
+ "minLength": 1,
1373
+ "maxLength": 256,
1374
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1375
+ },
1376
+ "startsWith": {
1377
+ "type": "string",
1378
+ "minLength": 1,
1379
+ "maxLength": 64
1380
+ }
1381
+ },
1382
+ "required": [
1383
+ "path",
1384
+ "startsWith"
1385
+ ],
1386
+ "additionalProperties": false
1387
+ },
1388
+ {
1389
+ "type": "object",
1390
+ "properties": {
1391
+ "path": {
1392
+ "type": "string",
1393
+ "minLength": 1,
1394
+ "maxLength": 256,
1395
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1396
+ },
1397
+ "endsWith": {
1398
+ "type": "string",
1399
+ "minLength": 1,
1400
+ "maxLength": 64
1401
+ }
1402
+ },
1403
+ "required": [
1404
+ "path",
1405
+ "endsWith"
1406
+ ],
1407
+ "additionalProperties": false
1408
+ },
1409
+ {
1410
+ "type": "object",
1411
+ "properties": {
1412
+ "path": {
1413
+ "type": "string",
1414
+ "minLength": 1,
1415
+ "maxLength": 256,
1416
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1417
+ },
1418
+ "contains": {
1419
+ "type": [
1420
+ "string",
1421
+ "number",
1422
+ "boolean"
1423
+ ]
1424
+ }
1425
+ },
1426
+ "required": [
1427
+ "path",
1428
+ "contains"
1429
+ ],
1430
+ "additionalProperties": false
1431
+ },
1432
+ {
1433
+ "type": "object",
1434
+ "properties": {
1435
+ "path": {
1436
+ "type": "string",
1437
+ "minLength": 1,
1438
+ "maxLength": 256,
1439
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1440
+ },
1441
+ "min": {
1442
+ "type": "number"
1443
+ },
1444
+ "max": {
1445
+ "type": "number"
1446
+ }
1447
+ },
1448
+ "required": [
1449
+ "path"
1450
+ ],
1451
+ "additionalProperties": false
1452
+ }
1453
+ ]
1454
+ }
1455
+ },
1456
+ "model": {
1457
+ "default": "name",
1458
+ "anyOf": [
1459
+ {
1460
+ "type": "string",
1461
+ "minLength": 1,
1462
+ "maxLength": 256,
1463
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1464
+ },
1465
+ {
1466
+ "minItems": 1,
1467
+ "maxItems": 4,
1468
+ "type": "array",
1469
+ "items": {
1470
+ "type": "string",
1471
+ "minLength": 1,
1472
+ "maxLength": 256,
1473
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1474
+ }
1475
+ }
1476
+ ]
1477
+ }
1478
+ },
1479
+ "required": [
1480
+ "match"
1481
+ ],
1482
+ "additionalProperties": false
1483
+ },
1090
1484
  "adopt": {
1091
1485
  "default": "owner",
1092
1486
  "type": "string",
@@ -76,7 +76,10 @@
76
76
  "code",
77
77
  "matter",
78
78
  "mqtt",
79
- "modbus"
79
+ "modbus",
80
+ "infrared",
81
+ "serial",
82
+ "bluetooth"
80
83
  ]
81
84
  },
82
85
  "defaultIcon": {
@@ -108,6 +111,78 @@
108
111
  "minLength": 1,
109
112
  "maxLength": 256
110
113
  },
114
+ "serial": {
115
+ "type": "object",
116
+ "properties": {
117
+ "baudRate": {
118
+ "type": "integer",
119
+ "minimum": 50,
120
+ "maximum": 4000000
121
+ },
122
+ "dataBits": {
123
+ "default": 8,
124
+ "anyOf": [
125
+ {
126
+ "type": "number",
127
+ "const": 5
128
+ },
129
+ {
130
+ "type": "number",
131
+ "const": 6
132
+ },
133
+ {
134
+ "type": "number",
135
+ "const": 7
136
+ },
137
+ {
138
+ "type": "number",
139
+ "const": 8
140
+ }
141
+ ]
142
+ },
143
+ "parity": {
144
+ "default": "none",
145
+ "type": "string",
146
+ "enum": [
147
+ "none",
148
+ "even",
149
+ "odd",
150
+ "mark",
151
+ "space"
152
+ ]
153
+ },
154
+ "stopBits": {
155
+ "default": 1,
156
+ "anyOf": [
157
+ {
158
+ "type": "number",
159
+ "const": 1
160
+ },
161
+ {
162
+ "type": "number",
163
+ "const": 1.5
164
+ },
165
+ {
166
+ "type": "number",
167
+ "const": 2
168
+ }
169
+ ]
170
+ },
171
+ "flowControl": {
172
+ "default": "none",
173
+ "type": "string",
174
+ "enum": [
175
+ "none",
176
+ "rtscts",
177
+ "xonxoff"
178
+ ]
179
+ }
180
+ },
181
+ "required": [
182
+ "baudRate"
183
+ ],
184
+ "additionalProperties": false
185
+ },
111
186
  "setup": {
112
187
  "type": "string",
113
188
  "minLength": 1,
@@ -106,7 +106,7 @@
106
106
  },
107
107
  "wires": {
108
108
  "minItems": 1,
109
- "maxItems": 7,
109
+ "maxItems": 10,
110
110
  "type": "array",
111
111
  "items": {
112
112
  "type": "string",
@@ -117,7 +117,10 @@
117
117
  "zigbee",
118
118
  "udp",
119
119
  "modbus",
120
- "matter"
120
+ "matter",
121
+ "thread",
122
+ "serial",
123
+ "ir"
121
124
  ]
122
125
  }
123
126
  }
@@ -1421,6 +1421,72 @@
1421
1421
  ],
1422
1422
  "additionalProperties": false
1423
1423
  }
1424
+ },
1425
+ "infrared": {
1426
+ "type": "object",
1427
+ "properties": {
1428
+ "signals": {
1429
+ "anyOf": [
1430
+ {
1431
+ "type": "array",
1432
+ "prefixItems": [
1433
+ {
1434
+ "type": "string",
1435
+ "const": "ir"
1436
+ }
1437
+ ],
1438
+ "items": false,
1439
+ "minItems": 1,
1440
+ "maxItems": 1
1441
+ },
1442
+ {
1443
+ "type": "array",
1444
+ "prefixItems": [
1445
+ {
1446
+ "type": "string",
1447
+ "const": "ir"
1448
+ },
1449
+ {
1450
+ "type": "string",
1451
+ "const": "rf"
1452
+ }
1453
+ ],
1454
+ "items": false,
1455
+ "minItems": 2,
1456
+ "maxItems": 2
1457
+ }
1458
+ ]
1459
+ },
1460
+ "receives": {
1461
+ "type": "boolean"
1462
+ }
1463
+ },
1464
+ "required": [
1465
+ "signals",
1466
+ "receives"
1467
+ ],
1468
+ "additionalProperties": false
1469
+ },
1470
+ "bluetoothProxy": {
1471
+ "type": "object",
1472
+ "properties": {
1473
+ "modes": {
1474
+ "minItems": 1,
1475
+ "maxItems": 2,
1476
+ "type": "array",
1477
+ "items": {
1478
+ "type": "string",
1479
+ "enum": [
1480
+ "passive",
1481
+ "active"
1482
+ ]
1483
+ }
1484
+ }
1485
+ },
1486
+ "required": [
1487
+ "modes"
1488
+ ],
1489
+ "additionalProperties": false
1424
1490
  }
1425
1491
  },
1426
1492
  "required": [