homebridge-tasmota-control 1.7.13 → 1.8.0-beta.0
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.
- package/config.schema.json +176 -74
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -63,14 +63,7 @@
|
|
|
63
63
|
"type": "integer",
|
|
64
64
|
"minimum": 0,
|
|
65
65
|
"maximum": 3,
|
|
66
|
-
"default": 1,
|
|
67
66
|
"anyOf": [
|
|
68
|
-
{
|
|
69
|
-
"title": "None/Disabled",
|
|
70
|
-
"enum": [
|
|
71
|
-
0
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
67
|
{
|
|
75
68
|
"title": "Heat",
|
|
76
69
|
"enum": [
|
|
@@ -97,14 +90,7 @@
|
|
|
97
90
|
"type": "integer",
|
|
98
91
|
"minimum": 0,
|
|
99
92
|
"maximum": 3,
|
|
100
|
-
"default": 1,
|
|
101
93
|
"anyOf": [
|
|
102
|
-
{
|
|
103
|
-
"title": "None/Disabled",
|
|
104
|
-
"enum": [
|
|
105
|
-
0
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
94
|
{
|
|
109
95
|
"title": "Cool",
|
|
110
96
|
"enum": [
|
|
@@ -131,14 +117,7 @@
|
|
|
131
117
|
"type": "integer",
|
|
132
118
|
"minimum": 0,
|
|
133
119
|
"maximum": 3,
|
|
134
|
-
"default": 1,
|
|
135
120
|
"anyOf": [
|
|
136
|
-
{
|
|
137
|
-
"title": "None/Disabled",
|
|
138
|
-
"enum": [
|
|
139
|
-
0
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
121
|
{
|
|
143
122
|
"title": "Auto",
|
|
144
123
|
"enum": [
|
|
@@ -186,7 +165,6 @@
|
|
|
186
165
|
"minimum": 1.0,
|
|
187
166
|
"maximum": 600,
|
|
188
167
|
"multipleOf": 0.5,
|
|
189
|
-
"default": 5,
|
|
190
168
|
"description": "Here set the sensor data refresh time in (sec).",
|
|
191
169
|
"condition": {
|
|
192
170
|
"functionBody": "return model.devices[arrayIndices].miElHvac.remoteTemperatureSensor.enable === true;"
|
|
@@ -217,7 +195,45 @@
|
|
|
217
195
|
"functionBody": "return model.devices[arrayIndices].miElHvac.remoteTemperatureSensor.enable === true && model.devices[arrayIndices].miElHvac.remoteTemperatureSensor.auth === true;"
|
|
218
196
|
}
|
|
219
197
|
}
|
|
220
|
-
}
|
|
198
|
+
},
|
|
199
|
+
"allOf": [
|
|
200
|
+
{
|
|
201
|
+
"if": {
|
|
202
|
+
"required": [
|
|
203
|
+
"enable"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"enable": {
|
|
207
|
+
"const": true
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"then": {
|
|
212
|
+
"required": [
|
|
213
|
+
"path",
|
|
214
|
+
"refreshInterval"
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"if": {
|
|
220
|
+
"required": [
|
|
221
|
+
"auth"
|
|
222
|
+
],
|
|
223
|
+
"properties": {
|
|
224
|
+
"auth": {
|
|
225
|
+
"const": true
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"then": {
|
|
230
|
+
"required": [
|
|
231
|
+
"user",
|
|
232
|
+
"passwd"
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
]
|
|
221
237
|
},
|
|
222
238
|
"presets": {
|
|
223
239
|
"title": "Presets",
|
|
@@ -230,7 +246,6 @@
|
|
|
230
246
|
"type": "integer",
|
|
231
247
|
"minimum": 0,
|
|
232
248
|
"maximum": 5,
|
|
233
|
-
"default": 0,
|
|
234
249
|
"anyOf": [
|
|
235
250
|
{
|
|
236
251
|
"title": "None/Disabled",
|
|
@@ -275,15 +290,11 @@
|
|
|
275
290
|
"title": "Name",
|
|
276
291
|
"type": "string",
|
|
277
292
|
"placeholder": "Preset name",
|
|
278
|
-
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
279
|
-
"condition": {
|
|
280
|
-
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].displayType > 0;"
|
|
281
|
-
}
|
|
293
|
+
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
282
294
|
},
|
|
283
295
|
"mode": {
|
|
284
296
|
"title": "Operation Mode",
|
|
285
297
|
"type": "string",
|
|
286
|
-
"default": "heat",
|
|
287
298
|
"anyOf": [
|
|
288
299
|
{
|
|
289
300
|
"title": "HEAT",
|
|
@@ -327,7 +338,6 @@
|
|
|
327
338
|
"minimum": 10,
|
|
328
339
|
"maximum": 31,
|
|
329
340
|
"multipleOf": 0.5,
|
|
330
|
-
"default": 20,
|
|
331
341
|
"description": "Here set the target temperature.",
|
|
332
342
|
"condition": {
|
|
333
343
|
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].displayType > 0 && (model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].mode === heat || model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].mode === cool || model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].mode === auto);"
|
|
@@ -382,7 +392,6 @@
|
|
|
382
392
|
"swingV": {
|
|
383
393
|
"title": "VANE Vertical Direction",
|
|
384
394
|
"type": "string",
|
|
385
|
-
"default": "auto",
|
|
386
395
|
"anyOf": [
|
|
387
396
|
{
|
|
388
397
|
"title": "AUTO",
|
|
@@ -435,7 +444,6 @@
|
|
|
435
444
|
"swingH": {
|
|
436
445
|
"title": "VANE Horizontal Direction",
|
|
437
446
|
"type": "string",
|
|
438
|
-
"default": "swing",
|
|
439
447
|
"anyOf": [
|
|
440
448
|
{
|
|
441
449
|
"title": "AIR DIRECTION",
|
|
@@ -506,15 +514,40 @@
|
|
|
506
514
|
"namePrefix": {
|
|
507
515
|
"title": "Prefix",
|
|
508
516
|
"type": "boolean",
|
|
509
|
-
"default": false,
|
|
510
517
|
"description": "Enable/disable the accessory name as a prefix for button/sensor name.",
|
|
511
518
|
"condition": {
|
|
512
519
|
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.presets[arrayIndices[1]].displayType > 0;"
|
|
513
520
|
}
|
|
514
521
|
}
|
|
515
522
|
},
|
|
516
|
-
"
|
|
517
|
-
|
|
523
|
+
"allOf": [
|
|
524
|
+
{
|
|
525
|
+
"if": {
|
|
526
|
+
"required": [
|
|
527
|
+
"displayType"
|
|
528
|
+
],
|
|
529
|
+
"properties": {
|
|
530
|
+
"displayType": {
|
|
531
|
+
"enum": [
|
|
532
|
+
1,
|
|
533
|
+
2,
|
|
534
|
+
3,
|
|
535
|
+
4,
|
|
536
|
+
5
|
|
537
|
+
]
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"then": {
|
|
542
|
+
"required": [
|
|
543
|
+
"mode",
|
|
544
|
+
"setTemp",
|
|
545
|
+
"fanSpeed",
|
|
546
|
+
"swingV",
|
|
547
|
+
"swingH"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
}
|
|
518
551
|
]
|
|
519
552
|
}
|
|
520
553
|
},
|
|
@@ -529,10 +562,9 @@
|
|
|
529
562
|
"type": "integer",
|
|
530
563
|
"minimum": 0,
|
|
531
564
|
"maximum": 2,
|
|
532
|
-
"default": 0,
|
|
533
565
|
"anyOf": [
|
|
534
566
|
{
|
|
535
|
-
"title": "
|
|
567
|
+
"title": "Disabled",
|
|
536
568
|
"enum": [
|
|
537
569
|
0
|
|
538
570
|
]
|
|
@@ -556,17 +588,13 @@
|
|
|
556
588
|
"title": "Name",
|
|
557
589
|
"type": "string",
|
|
558
590
|
"placeholder": "Button name",
|
|
559
|
-
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
560
|
-
"condition": {
|
|
561
|
-
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.buttons[arrayIndices[1]].displayType > 0;"
|
|
562
|
-
}
|
|
591
|
+
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
563
592
|
},
|
|
564
593
|
"mode": {
|
|
565
594
|
"title": "Mode",
|
|
566
595
|
"type": "integer",
|
|
567
596
|
"minimum": 0,
|
|
568
597
|
"maximum": 63,
|
|
569
|
-
"default": 0,
|
|
570
598
|
"description": "Here select function.",
|
|
571
599
|
"anyOf": [
|
|
572
600
|
{
|
|
@@ -811,15 +839,33 @@
|
|
|
811
839
|
"namePrefix": {
|
|
812
840
|
"title": "Prefix",
|
|
813
841
|
"type": "boolean",
|
|
814
|
-
"default": false,
|
|
815
842
|
"description": "Enable/disable the accessory name as a prefix for button name.",
|
|
816
843
|
"condition": {
|
|
817
844
|
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.buttons[arrayIndices[1]].displayType > 0;"
|
|
818
845
|
}
|
|
819
846
|
}
|
|
820
847
|
},
|
|
821
|
-
"
|
|
822
|
-
|
|
848
|
+
"allOf": [
|
|
849
|
+
{
|
|
850
|
+
"if": {
|
|
851
|
+
"required": [
|
|
852
|
+
"displayType"
|
|
853
|
+
],
|
|
854
|
+
"properties": {
|
|
855
|
+
"displayType": {
|
|
856
|
+
"enum": [
|
|
857
|
+
1,
|
|
858
|
+
2
|
|
859
|
+
]
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
"then": {
|
|
864
|
+
"required": [
|
|
865
|
+
"mode"
|
|
866
|
+
]
|
|
867
|
+
}
|
|
868
|
+
}
|
|
823
869
|
]
|
|
824
870
|
}
|
|
825
871
|
},
|
|
@@ -834,10 +880,9 @@
|
|
|
834
880
|
"type": "integer",
|
|
835
881
|
"minimum": 0,
|
|
836
882
|
"maximum": 3,
|
|
837
|
-
"default": 0,
|
|
838
883
|
"anyOf": [
|
|
839
884
|
{
|
|
840
|
-
"title": "
|
|
885
|
+
"title": "Disabled",
|
|
841
886
|
"enum": [
|
|
842
887
|
0
|
|
843
888
|
]
|
|
@@ -867,17 +912,13 @@
|
|
|
867
912
|
"title": "Name",
|
|
868
913
|
"type": "string",
|
|
869
914
|
"placeholder": "Sensor name",
|
|
870
|
-
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
871
|
-
"condition": {
|
|
872
|
-
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.sensors[arrayIndices[1]].displayType > 0;"
|
|
873
|
-
}
|
|
915
|
+
"description": "Your own name displayed in Homebridge/HomeKit app."
|
|
874
916
|
},
|
|
875
917
|
"mode": {
|
|
876
918
|
"title": "Mode",
|
|
877
919
|
"type": "integer",
|
|
878
920
|
"minimum": 0,
|
|
879
921
|
"maximum": 94,
|
|
880
|
-
"default": 0,
|
|
881
922
|
"description": "Here select function.",
|
|
882
923
|
"anyOf": [
|
|
883
924
|
{
|
|
@@ -1218,15 +1259,34 @@
|
|
|
1218
1259
|
"namePrefix": {
|
|
1219
1260
|
"title": "Prefix",
|
|
1220
1261
|
"type": "boolean",
|
|
1221
|
-
"default": false,
|
|
1222
1262
|
"description": "Enable/disable the accessory name as a prefix for sensor name.",
|
|
1223
1263
|
"condition": {
|
|
1224
1264
|
"functionBody": "return model.devices[arrayIndices[0]].miElHvac.sensors[arrayIndices[1]].displayType > 0;"
|
|
1225
1265
|
}
|
|
1226
1266
|
}
|
|
1227
1267
|
},
|
|
1228
|
-
"
|
|
1229
|
-
|
|
1268
|
+
"allOf": [
|
|
1269
|
+
{
|
|
1270
|
+
"if": {
|
|
1271
|
+
"required": [
|
|
1272
|
+
"displayType"
|
|
1273
|
+
],
|
|
1274
|
+
"properties": {
|
|
1275
|
+
"displayType": {
|
|
1276
|
+
"enum": [
|
|
1277
|
+
1,
|
|
1278
|
+
2,
|
|
1279
|
+
3
|
|
1280
|
+
]
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"then": {
|
|
1285
|
+
"required": [
|
|
1286
|
+
"mode"
|
|
1287
|
+
]
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1230
1290
|
]
|
|
1231
1291
|
}
|
|
1232
1292
|
},
|
|
@@ -1246,7 +1306,6 @@
|
|
|
1246
1306
|
"minimum": 4,
|
|
1247
1307
|
"maximum": 14,
|
|
1248
1308
|
"multipleOf": 0.5,
|
|
1249
|
-
"default": 14,
|
|
1250
1309
|
"description": "Here set the low temperature at which device start to frost protect.",
|
|
1251
1310
|
"condition": {
|
|
1252
1311
|
"functionBody": "return model.devices[arrayIndices].miElHvac.frostProtect.enable === true;"
|
|
@@ -1258,13 +1317,32 @@
|
|
|
1258
1317
|
"minimum": 6,
|
|
1259
1318
|
"maximum": 16,
|
|
1260
1319
|
"multipleOf": 0.5,
|
|
1261
|
-
"default": 16,
|
|
1262
1320
|
"description": "Here set the high temperature at which device will be disable.",
|
|
1263
1321
|
"condition": {
|
|
1264
1322
|
"functionBody": "return model.devices[arrayIndices].miElHvac.frostProtect.enable === true;"
|
|
1265
1323
|
}
|
|
1266
1324
|
}
|
|
1267
|
-
}
|
|
1325
|
+
},
|
|
1326
|
+
"allOf": [
|
|
1327
|
+
{
|
|
1328
|
+
"if": {
|
|
1329
|
+
"required": [
|
|
1330
|
+
"enable"
|
|
1331
|
+
],
|
|
1332
|
+
"properties": {
|
|
1333
|
+
"enable": {
|
|
1334
|
+
"const": true
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
"then": {
|
|
1339
|
+
"required": [
|
|
1340
|
+
"lowTemp",
|
|
1341
|
+
"highTemp"
|
|
1342
|
+
]
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
]
|
|
1268
1346
|
},
|
|
1269
1347
|
"temperatureSensor": {
|
|
1270
1348
|
"title": "Room",
|
|
@@ -1278,19 +1356,13 @@
|
|
|
1278
1356
|
"default": false,
|
|
1279
1357
|
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app."
|
|
1280
1358
|
}
|
|
1281
|
-
}
|
|
1282
|
-
"required": [
|
|
1283
|
-
"heatDryFanMode",
|
|
1284
|
-
"coolDryFanMode",
|
|
1285
|
-
"autoDryFanMode"
|
|
1286
|
-
]
|
|
1359
|
+
}
|
|
1287
1360
|
},
|
|
1288
1361
|
"relaysDisplayType": {
|
|
1289
1362
|
"title": "Display Type",
|
|
1290
1363
|
"type": "integer",
|
|
1291
1364
|
"minimum": 0,
|
|
1292
1365
|
"maximum": 1,
|
|
1293
|
-
"default": 0,
|
|
1294
1366
|
"anyOf": [
|
|
1295
1367
|
{
|
|
1296
1368
|
"title": "Outlet",
|
|
@@ -1310,31 +1382,26 @@
|
|
|
1310
1382
|
"relaysNamePrefix": {
|
|
1311
1383
|
"title": "Name Prefix",
|
|
1312
1384
|
"type": "boolean",
|
|
1313
|
-
"default": false,
|
|
1314
1385
|
"description": "Here enable/disable the accessory name as a prefix for relays name."
|
|
1315
1386
|
},
|
|
1316
1387
|
"lightsNamePrefix": {
|
|
1317
1388
|
"title": "Name Prefix",
|
|
1318
1389
|
"type": "boolean",
|
|
1319
|
-
"default": false,
|
|
1320
1390
|
"description": "Here enable/disable the accessory name as a prefix for light name."
|
|
1321
1391
|
},
|
|
1322
1392
|
"fansNamePrefix": {
|
|
1323
1393
|
"title": "Name Prefix",
|
|
1324
1394
|
"type": "boolean",
|
|
1325
|
-
"default": false,
|
|
1326
1395
|
"description": "Here enable/disable the accessory name as a prefix for fan name."
|
|
1327
1396
|
},
|
|
1328
1397
|
"sensorsNamePrefix": {
|
|
1329
1398
|
"title": "Name Prefix",
|
|
1330
1399
|
"type": "boolean",
|
|
1331
|
-
"default": false,
|
|
1332
1400
|
"description": "Here enable/disable the accessory name as a prefix for sensors name."
|
|
1333
1401
|
},
|
|
1334
1402
|
"loadNameFromDevice": {
|
|
1335
1403
|
"title": "Load Name From Device",
|
|
1336
1404
|
"type": "boolean",
|
|
1337
|
-
"default": false,
|
|
1338
1405
|
"description": "If enabled, the accessory name will be loaded direct from device."
|
|
1339
1406
|
},
|
|
1340
1407
|
"refreshInterval": {
|
|
@@ -1381,6 +1448,44 @@
|
|
|
1381
1448
|
"required": [
|
|
1382
1449
|
"name",
|
|
1383
1450
|
"host"
|
|
1451
|
+
],
|
|
1452
|
+
"allOf": [
|
|
1453
|
+
{
|
|
1454
|
+
"if": {
|
|
1455
|
+
"required": [
|
|
1456
|
+
"auth"
|
|
1457
|
+
],
|
|
1458
|
+
"properties": {
|
|
1459
|
+
"auth": {
|
|
1460
|
+
"const": true
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
"then": {
|
|
1465
|
+
"required": [
|
|
1466
|
+
"path",
|
|
1467
|
+
"refreshInterval"
|
|
1468
|
+
]
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"if": {
|
|
1473
|
+
"required": [
|
|
1474
|
+
"auth"
|
|
1475
|
+
],
|
|
1476
|
+
"properties": {
|
|
1477
|
+
"auth": {
|
|
1478
|
+
"const": true
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
"then": {
|
|
1483
|
+
"required": [
|
|
1484
|
+
"user",
|
|
1485
|
+
"passwd"
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1384
1489
|
]
|
|
1385
1490
|
}
|
|
1386
1491
|
}
|
|
@@ -1575,10 +1680,7 @@
|
|
|
1575
1680
|
}
|
|
1576
1681
|
]
|
|
1577
1682
|
}
|
|
1578
|
-
]
|
|
1579
|
-
"condition": {
|
|
1580
|
-
"functionBody": "return model.devices[arrayIndices].disableAccessory === false;"
|
|
1581
|
-
}
|
|
1683
|
+
]
|
|
1582
1684
|
}
|
|
1583
1685
|
]
|
|
1584
1686
|
}
|
package/package.json
CHANGED