homebridge-easy-mqtt 1.4.1-beta.0 → 1.5.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/CHANGELOG.md +9 -1
- package/README.md +102 -6
- package/config.schema.json +216 -7
- package/dist/accessory/abstract/base.d.ts +4 -6
- package/dist/accessory/abstract/base.js +17 -37
- package/dist/accessory/abstract/base.js.map +1 -1
- package/dist/accessory/abstract/common.d.ts +18 -4
- package/dist/accessory/abstract/common.js +165 -9
- package/dist/accessory/abstract/common.js.map +1 -1
- package/dist/accessory/abstract/group.d.ts +2 -4
- package/dist/accessory/abstract/group.js +11 -11
- package/dist/accessory/abstract/group.js.map +1 -1
- package/dist/accessory/abstract/helper.d.ts +3 -5
- package/dist/accessory/abstract/helper.js +34 -30
- package/dist/accessory/abstract/helper.js.map +1 -1
- package/dist/accessory/abstract/mqtt.d.ts +11 -8
- package/dist/accessory/abstract/mqtt.js +41 -33
- package/dist/accessory/abstract/mqtt.js.map +1 -1
- package/dist/accessory/addons/filter.d.ts +0 -1
- package/dist/accessory/addons/filter.js +6 -18
- package/dist/accessory/addons/filter.js.map +1 -1
- package/dist/accessory/button/button.d.ts +6 -0
- package/dist/accessory/{button.js → button/button.js} +6 -10
- package/dist/accessory/button/button.js.map +1 -0
- package/dist/accessory/button/doorbell.d.ts +7 -0
- package/dist/accessory/button/doorbell.js +25 -0
- package/dist/accessory/button/doorbell.js.map +1 -0
- package/dist/accessory/button/stateless.d.ts +6 -0
- package/dist/accessory/button/stateless.js +8 -0
- package/dist/accessory/button/stateless.js.map +1 -0
- package/dist/accessory/characteristic/characteristic.d.ts +3 -0
- package/dist/accessory/characteristic/characteristic.js +23 -0
- package/dist/accessory/characteristic/characteristic.js.map +1 -0
- package/dist/accessory/{abstract/customCharacteristic.d.ts → characteristic/custom.d.ts} +1 -0
- package/dist/accessory/{abstract/customCharacteristic.js → characteristic/custom.js} +4 -1
- package/dist/accessory/characteristic/custom.js.map +1 -0
- package/dist/accessory/characteristic/eve.d.ts +6 -0
- package/dist/accessory/characteristic/eve.js +24 -0
- package/dist/accessory/characteristic/eve.js.map +1 -0
- package/dist/accessory/climate/active.d.ts +2 -8
- package/dist/accessory/climate/active.js +9 -41
- package/dist/accessory/climate/active.js.map +1 -1
- package/dist/accessory/climate/fan2.d.ts +2 -15
- package/dist/accessory/climate/fan2.js +30 -109
- package/dist/accessory/climate/fan2.js.map +1 -1
- package/dist/accessory/climate/heaterCooler.d.ts +2 -14
- package/dist/accessory/climate/heaterCooler.js +32 -108
- package/dist/accessory/climate/heaterCooler.js.map +1 -1
- package/dist/accessory/climate/purifier.d.ts +2 -14
- package/dist/accessory/climate/purifier.js +27 -97
- package/dist/accessory/climate/purifier.js.map +1 -1
- package/dist/accessory/climate/temperatureControl.d.ts +5 -5
- package/dist/accessory/climate/temperatureControl.js +8 -8
- package/dist/accessory/climate/temperatureControl.js.map +1 -1
- package/dist/accessory/climate/thermostat.d.ts +2 -12
- package/dist/accessory/climate/thermostat.js +31 -84
- package/dist/accessory/climate/thermostat.js.map +1 -1
- package/dist/accessory/garage.d.ts +2 -12
- package/dist/accessory/garage.js +27 -93
- package/dist/accessory/garage.js.map +1 -1
- package/dist/accessory/lock.d.ts +2 -8
- package/dist/accessory/lock.js +28 -62
- package/dist/accessory/lock.js.map +1 -1
- package/dist/accessory/onoff/lightbulb.d.ts +2 -5
- package/dist/accessory/onoff/lightbulb.js +12 -18
- package/dist/accessory/onoff/lightbulb.js.map +1 -1
- package/dist/accessory/onoff/onoff.d.ts +4 -8
- package/dist/accessory/onoff/onoff.js +30 -34
- package/dist/accessory/onoff/onoff.js.map +1 -1
- package/dist/accessory/onoff/outlet.d.ts +2 -4
- package/dist/accessory/onoff/outlet.js +5 -5
- package/dist/accessory/onoff/outlet.js.map +1 -1
- package/dist/accessory/onoff/switch.d.ts +1 -4
- package/dist/accessory/onoff/switch.js +0 -3
- package/dist/accessory/onoff/switch.js.map +1 -1
- package/dist/accessory/position/blind.d.ts +2 -5
- package/dist/accessory/position/blind.js +7 -13
- package/dist/accessory/position/blind.js.map +1 -1
- package/dist/accessory/position/position.d.ts +2 -11
- package/dist/accessory/position/position.js +20 -71
- package/dist/accessory/position/position.js.map +1 -1
- package/dist/accessory/security.d.ts +4 -10
- package/dist/accessory/security.js +49 -81
- package/dist/accessory/security.js.map +1 -1
- package/dist/accessory/sensor/air.d.ts +2 -8
- package/dist/accessory/sensor/air.js +35 -67
- package/dist/accessory/sensor/air.js.map +1 -1
- package/dist/accessory/sensor/carbonDioxide.d.ts +2 -4
- package/dist/accessory/sensor/carbonDioxide.js +7 -7
- package/dist/accessory/sensor/carbonDioxide.js.map +1 -1
- package/dist/accessory/sensor/carbonMonoxide.d.ts +2 -4
- package/dist/accessory/sensor/carbonMonoxide.js +7 -7
- package/dist/accessory/sensor/carbonMonoxide.js.map +1 -1
- package/dist/accessory/sensor/contact.d.ts +2 -4
- package/dist/accessory/sensor/contact.js +20 -7
- package/dist/accessory/sensor/contact.js.map +1 -1
- package/dist/accessory/sensor/humidity.d.ts +2 -4
- package/dist/accessory/sensor/humidity.js +8 -5
- package/dist/accessory/sensor/humidity.js.map +1 -1
- package/dist/accessory/sensor/leak.d.ts +2 -4
- package/dist/accessory/sensor/leak.js +5 -5
- package/dist/accessory/sensor/leak.js.map +1 -1
- package/dist/accessory/sensor/light.d.ts +2 -4
- package/dist/accessory/sensor/light.js +5 -5
- package/dist/accessory/sensor/light.js.map +1 -1
- package/dist/accessory/sensor/motion.d.ts +2 -4
- package/dist/accessory/sensor/motion.js +8 -5
- package/dist/accessory/sensor/motion.js.map +1 -1
- package/dist/accessory/sensor/occupancy.d.ts +2 -4
- package/dist/accessory/sensor/occupancy.js +5 -5
- package/dist/accessory/sensor/occupancy.js.map +1 -1
- package/dist/accessory/sensor/sensor.d.ts +2 -6
- package/dist/accessory/sensor/sensor.js +5 -29
- package/dist/accessory/sensor/sensor.js.map +1 -1
- package/dist/accessory/sensor/smoke.d.ts +2 -4
- package/dist/accessory/sensor/smoke.js +5 -5
- package/dist/accessory/sensor/smoke.js.map +1 -1
- package/dist/accessory/sensor/temperature.d.ts +2 -4
- package/dist/accessory/sensor/temperature.js +8 -5
- package/dist/accessory/sensor/temperature.js.map +1 -1
- package/dist/accessory/valve.d.ts +2 -8
- package/dist/accessory/valve.js +10 -44
- package/dist/accessory/valve.js.map +1 -1
- package/dist/homebridge/platform.js +10 -4
- package/dist/homebridge/platform.js.map +1 -1
- package/dist/homebridge-ui/public/index.html +1 -1
- package/dist/homebridge-ui/public/ui.js +1 -1
- package/dist/i18n/en.d.ts +41 -5
- package/dist/i18n/en.js +43 -7
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/fr.d.ts +41 -5
- package/dist/i18n/i18n.d.ts +41 -5
- package/dist/i18n/it.d.ts +41 -5
- package/dist/i18n/ro.d.ts +41 -5
- package/dist/i18n/template.d.ts +41 -5
- package/dist/i18n/vi.d.ts +41 -5
- package/dist/model/enums.d.ts +17 -2
- package/dist/model/enums.js +92 -77
- package/dist/model/enums.js.map +1 -1
- package/dist/model/history.d.ts +32 -0
- package/dist/model/history.js +128 -0
- package/dist/model/history.js.map +1 -0
- package/dist/model/mqtt.d.ts +1 -0
- package/dist/model/mqtt.js +37 -11
- package/dist/model/mqtt.js.map +1 -1
- package/dist/model/types.d.ts +39 -4
- package/dist/tools/log.d.ts +1 -1
- package/dist/tools/log.js.map +1 -1
- package/dist/tools/properties.js +1 -1
- package/dist/tools/properties.js.map +1 -1
- package/package.json +2 -1
- package/dist/accessory/abstract/customCharacteristic.js.map +0 -1
- package/dist/accessory/button.d.ts +0 -10
- package/dist/accessory/button.js.map +0 -1
package/dist/i18n/template.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
37
37
|
badValue: string;
|
|
38
38
|
outOfRange: string;
|
|
39
39
|
updated: string;
|
|
40
|
+
unknownValue: string;
|
|
40
41
|
};
|
|
41
42
|
climate: {
|
|
42
43
|
badTemperatureValue: string;
|
|
@@ -66,6 +67,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
66
67
|
carbonMonoxideSensor: string;
|
|
67
68
|
celsius: string;
|
|
68
69
|
contactSensor: string;
|
|
70
|
+
doorbell: string;
|
|
69
71
|
fahrenheit: string;
|
|
70
72
|
fanv2: string;
|
|
71
73
|
garageDoorOpener: string;
|
|
@@ -96,6 +98,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
96
98
|
broker: string;
|
|
97
99
|
disableLogging: string;
|
|
98
100
|
group: string;
|
|
101
|
+
historyEnabled: string;
|
|
99
102
|
maximum: string;
|
|
100
103
|
name: string;
|
|
101
104
|
options: string;
|
|
@@ -118,6 +121,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
118
121
|
topicGetContactSensorState: string;
|
|
119
122
|
topicGetCoolingThresholdTemperature: string;
|
|
120
123
|
topicGetCurrentAmbientLightLevel: string;
|
|
124
|
+
topicGetCurrentConsumption: string;
|
|
121
125
|
topicGetCurrentDoorState: string;
|
|
122
126
|
topicGetCurrentFanState: string;
|
|
123
127
|
topicGetCurrentHeaterCoolerState: string;
|
|
@@ -132,6 +136,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
132
136
|
topicGetCurrentSecurityState: string;
|
|
133
137
|
topicGetCurrentTemperature: string;
|
|
134
138
|
topicGetCurrentVerticalTiltAngle: string;
|
|
139
|
+
topicGetElectricCurrent: string;
|
|
135
140
|
topicGetFilterChangeIndication: string;
|
|
136
141
|
topicGetFilterLifeLevel: string;
|
|
137
142
|
topicGetHeatingThresholdTemperature: string;
|
|
@@ -139,6 +144,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
139
144
|
topicGetLeakDetected: string;
|
|
140
145
|
topicGetLockPhysicalControls: string;
|
|
141
146
|
topicGetMotionDetected: string;
|
|
147
|
+
topicGetMuted: string;
|
|
142
148
|
topicGetNitrogenDioxideDensity: string;
|
|
143
149
|
topicGetObstructionDetected: string;
|
|
144
150
|
topicGetObstructionDetectedOptional: string;
|
|
@@ -171,12 +177,15 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
171
177
|
topicGetTargetSecurityState: string;
|
|
172
178
|
topicGetTargetTemperature: string;
|
|
173
179
|
topicGetTargetVerticalTiltAngle: string;
|
|
180
|
+
topicGetTotalConsumption: string;
|
|
174
181
|
topicGetValveActive: string;
|
|
175
182
|
topicGetValveInUse: string;
|
|
176
183
|
topicGetValveIsConfigured: string;
|
|
177
184
|
topicGetValveRemainingDuration: string;
|
|
178
185
|
topicGetValveSetDuration: string;
|
|
179
186
|
topicGetVOCDensity: string;
|
|
187
|
+
topicGetVoltage: string;
|
|
188
|
+
topicGetVolume: string;
|
|
180
189
|
topicResetFilterIndication: string;
|
|
181
190
|
topicSetActive: string;
|
|
182
191
|
topicSetBrightness: string;
|
|
@@ -186,6 +195,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
186
195
|
topicSetHoldPosition: string;
|
|
187
196
|
topicSetHue: string;
|
|
188
197
|
topicSetLockPhysicalControls: string;
|
|
198
|
+
topicSetMuted: string;
|
|
189
199
|
topicSetOn: string;
|
|
190
200
|
topicSetRotationDirection: string;
|
|
191
201
|
topicSetRotationSpeed: string;
|
|
@@ -207,6 +217,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
207
217
|
topicSetValveActive: string;
|
|
208
218
|
topicSetValveIsConfigured: string;
|
|
209
219
|
topicSetValveSetDuration: string;
|
|
220
|
+
topicSetVolume: string;
|
|
210
221
|
topics: string;
|
|
211
222
|
type: string;
|
|
212
223
|
username: string;
|
|
@@ -261,6 +272,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
261
272
|
valueModeOff: string;
|
|
262
273
|
valueModePurifying: string;
|
|
263
274
|
valueMotionDetected: string;
|
|
275
|
+
valueMuted: string;
|
|
264
276
|
valueNotConfigured: string;
|
|
265
277
|
valueOccupancyDetected: string;
|
|
266
278
|
valueOff: string;
|
|
@@ -281,10 +293,25 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
281
293
|
valueSwingEnabled: string;
|
|
282
294
|
valueSwingDisabled: string;
|
|
283
295
|
valueTampered: string;
|
|
296
|
+
valueUnmuted: string;
|
|
284
297
|
values: string;
|
|
285
298
|
verbose: string;
|
|
286
299
|
};
|
|
287
300
|
};
|
|
301
|
+
doorbell: {
|
|
302
|
+
brightnessPercent: string;
|
|
303
|
+
brightnessPercentFuture: string;
|
|
304
|
+
brightnessValue: string;
|
|
305
|
+
brightnessValueFuture: string;
|
|
306
|
+
muted: string;
|
|
307
|
+
mutedFuture: string;
|
|
308
|
+
volumePercent: string;
|
|
309
|
+
volumePercentFuture: string;
|
|
310
|
+
volumeValue: string;
|
|
311
|
+
volumeValueFuture: string;
|
|
312
|
+
unmuted: string;
|
|
313
|
+
unmutedFuture: string;
|
|
314
|
+
};
|
|
288
315
|
error: {
|
|
289
316
|
hasFault: string;
|
|
290
317
|
isTampered: string;
|
|
@@ -305,7 +332,6 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
305
332
|
stateInactive: string;
|
|
306
333
|
stateManual: string;
|
|
307
334
|
stateUnknown: string;
|
|
308
|
-
unknownValue: string;
|
|
309
335
|
};
|
|
310
336
|
filter: {
|
|
311
337
|
change: string;
|
|
@@ -325,7 +351,6 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
325
351
|
stateOpenFuture: string;
|
|
326
352
|
stateOpening: string;
|
|
327
353
|
stateStopped: string;
|
|
328
|
-
stateUnknown: string;
|
|
329
354
|
unknownValue: string;
|
|
330
355
|
unobstructed: string;
|
|
331
356
|
};
|
|
@@ -342,6 +367,12 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
342
367
|
stateUnknown: string;
|
|
343
368
|
unknownValue: string;
|
|
344
369
|
};
|
|
370
|
+
history: {
|
|
371
|
+
cleanup: string;
|
|
372
|
+
cleanupFailed: string;
|
|
373
|
+
entry: string;
|
|
374
|
+
updatedCharacteristic: string;
|
|
375
|
+
};
|
|
345
376
|
lightbulb: {
|
|
346
377
|
brightnessPercent: string;
|
|
347
378
|
brightnessPercentFuture: string;
|
|
@@ -378,18 +409,24 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
378
409
|
receivedMessage: string;
|
|
379
410
|
reconnectMinutes: string;
|
|
380
411
|
reconnectSeconds: string;
|
|
412
|
+
transformFailed: string;
|
|
413
|
+
transformedValue: string;
|
|
381
414
|
};
|
|
382
415
|
onOff: {
|
|
383
416
|
stateOff: string;
|
|
384
417
|
stateOffFuture: string;
|
|
385
418
|
stateOn: string;
|
|
386
419
|
stateOnFuture: string;
|
|
387
|
-
unknownValue: string;
|
|
388
420
|
};
|
|
389
421
|
outlet: {
|
|
390
422
|
badValue: string;
|
|
423
|
+
currentConsumption: string;
|
|
424
|
+
electricCurrent: string;
|
|
391
425
|
inUse: string;
|
|
392
426
|
notInUse: string;
|
|
427
|
+
totalConsumption: string;
|
|
428
|
+
totalConsumptionReset: string;
|
|
429
|
+
voltage: string;
|
|
393
430
|
};
|
|
394
431
|
position: {
|
|
395
432
|
blind: {
|
|
@@ -409,7 +446,6 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
409
446
|
stateDecreasing: string;
|
|
410
447
|
stateIncreasing: string;
|
|
411
448
|
stateStopped: string;
|
|
412
|
-
stateUnknown: string;
|
|
413
449
|
targetPercent: string;
|
|
414
450
|
targetPercentSet: string;
|
|
415
451
|
targetValue: string;
|
|
@@ -427,7 +463,6 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
427
463
|
stateManual: string;
|
|
428
464
|
statePurifying: string;
|
|
429
465
|
stateUnknown: string;
|
|
430
|
-
unknownValue: string;
|
|
431
466
|
};
|
|
432
467
|
security: {
|
|
433
468
|
badValue: string;
|
|
@@ -476,6 +511,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
476
511
|
contact: {
|
|
477
512
|
active: string;
|
|
478
513
|
inactive: string;
|
|
514
|
+
timesOpenedReset: string;
|
|
479
515
|
};
|
|
480
516
|
leak: {
|
|
481
517
|
active: string;
|
package/dist/i18n/vi.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare const vi: {
|
|
|
37
37
|
badValue: string;
|
|
38
38
|
outOfRange: string;
|
|
39
39
|
updated: string;
|
|
40
|
+
unknownValue: string;
|
|
40
41
|
};
|
|
41
42
|
climate: {
|
|
42
43
|
badTemperatureValue: string;
|
|
@@ -66,6 +67,7 @@ declare const vi: {
|
|
|
66
67
|
carbonMonoxideSensor: string;
|
|
67
68
|
celsius: string;
|
|
68
69
|
contactSensor: string;
|
|
70
|
+
doorbell: string;
|
|
69
71
|
fahrenheit: string;
|
|
70
72
|
fanv2: string;
|
|
71
73
|
garageDoorOpener: string;
|
|
@@ -96,6 +98,7 @@ declare const vi: {
|
|
|
96
98
|
broker: string;
|
|
97
99
|
disableLogging: string;
|
|
98
100
|
group: string;
|
|
101
|
+
historyEnabled: string;
|
|
99
102
|
maximum: string;
|
|
100
103
|
name: string;
|
|
101
104
|
options: string;
|
|
@@ -118,6 +121,7 @@ declare const vi: {
|
|
|
118
121
|
topicGetContactSensorState: string;
|
|
119
122
|
topicGetCoolingThresholdTemperature: string;
|
|
120
123
|
topicGetCurrentAmbientLightLevel: string;
|
|
124
|
+
topicGetCurrentConsumption: string;
|
|
121
125
|
topicGetCurrentDoorState: string;
|
|
122
126
|
topicGetCurrentFanState: string;
|
|
123
127
|
topicGetCurrentHeaterCoolerState: string;
|
|
@@ -132,6 +136,7 @@ declare const vi: {
|
|
|
132
136
|
topicGetCurrentSecurityState: string;
|
|
133
137
|
topicGetCurrentTemperature: string;
|
|
134
138
|
topicGetCurrentVerticalTiltAngle: string;
|
|
139
|
+
topicGetElectricCurrent: string;
|
|
135
140
|
topicGetFilterChangeIndication: string;
|
|
136
141
|
topicGetFilterLifeLevel: string;
|
|
137
142
|
topicGetHeatingThresholdTemperature: string;
|
|
@@ -139,6 +144,7 @@ declare const vi: {
|
|
|
139
144
|
topicGetLeakDetected: string;
|
|
140
145
|
topicGetLockPhysicalControls: string;
|
|
141
146
|
topicGetMotionDetected: string;
|
|
147
|
+
topicGetMuted: string;
|
|
142
148
|
topicGetNitrogenDioxideDensity: string;
|
|
143
149
|
topicGetObstructionDetected: string;
|
|
144
150
|
topicGetObstructionDetectedOptional: string;
|
|
@@ -171,12 +177,15 @@ declare const vi: {
|
|
|
171
177
|
topicGetTargetSecurityState: string;
|
|
172
178
|
topicGetTargetTemperature: string;
|
|
173
179
|
topicGetTargetVerticalTiltAngle: string;
|
|
180
|
+
topicGetTotalConsumption: string;
|
|
174
181
|
topicGetValveActive: string;
|
|
175
182
|
topicGetValveInUse: string;
|
|
176
183
|
topicGetValveIsConfigured: string;
|
|
177
184
|
topicGetValveRemainingDuration: string;
|
|
178
185
|
topicGetValveSetDuration: string;
|
|
179
186
|
topicGetVOCDensity: string;
|
|
187
|
+
topicGetVoltage: string;
|
|
188
|
+
topicGetVolume: string;
|
|
180
189
|
topicResetFilterIndication: string;
|
|
181
190
|
topicSetActive: string;
|
|
182
191
|
topicSetBrightness: string;
|
|
@@ -186,6 +195,7 @@ declare const vi: {
|
|
|
186
195
|
topicSetHoldPosition: string;
|
|
187
196
|
topicSetHue: string;
|
|
188
197
|
topicSetLockPhysicalControls: string;
|
|
198
|
+
topicSetMuted: string;
|
|
189
199
|
topicSetOn: string;
|
|
190
200
|
topicSetRotationDirection: string;
|
|
191
201
|
topicSetRotationSpeed: string;
|
|
@@ -207,6 +217,7 @@ declare const vi: {
|
|
|
207
217
|
topicSetValveActive: string;
|
|
208
218
|
topicSetValveIsConfigured: string;
|
|
209
219
|
topicSetValveSetDuration: string;
|
|
220
|
+
topicSetVolume: string;
|
|
210
221
|
topics: string;
|
|
211
222
|
type: string;
|
|
212
223
|
username: string;
|
|
@@ -261,6 +272,7 @@ declare const vi: {
|
|
|
261
272
|
valueModeOff: string;
|
|
262
273
|
valueModePurifying: string;
|
|
263
274
|
valueMotionDetected: string;
|
|
275
|
+
valueMuted: string;
|
|
264
276
|
valueNotConfigured: string;
|
|
265
277
|
valueOccupancyDetected: string;
|
|
266
278
|
valueOff: string;
|
|
@@ -281,10 +293,25 @@ declare const vi: {
|
|
|
281
293
|
valueSwingEnabled: string;
|
|
282
294
|
valueSwingDisabled: string;
|
|
283
295
|
valueTampered: string;
|
|
296
|
+
valueUnmuted: string;
|
|
284
297
|
values: string;
|
|
285
298
|
verbose: string;
|
|
286
299
|
};
|
|
287
300
|
};
|
|
301
|
+
doorbell: {
|
|
302
|
+
brightnessPercent: string;
|
|
303
|
+
brightnessPercentFuture: string;
|
|
304
|
+
brightnessValue: string;
|
|
305
|
+
brightnessValueFuture: string;
|
|
306
|
+
muted: string;
|
|
307
|
+
mutedFuture: string;
|
|
308
|
+
volumePercent: string;
|
|
309
|
+
volumePercentFuture: string;
|
|
310
|
+
volumeValue: string;
|
|
311
|
+
volumeValueFuture: string;
|
|
312
|
+
unmuted: string;
|
|
313
|
+
unmutedFuture: string;
|
|
314
|
+
};
|
|
288
315
|
error: {
|
|
289
316
|
hasFault: string;
|
|
290
317
|
isTampered: string;
|
|
@@ -305,7 +332,6 @@ declare const vi: {
|
|
|
305
332
|
stateInactive: string;
|
|
306
333
|
stateManual: string;
|
|
307
334
|
stateUnknown: string;
|
|
308
|
-
unknownValue: string;
|
|
309
335
|
};
|
|
310
336
|
filter: {
|
|
311
337
|
change: string;
|
|
@@ -325,7 +351,6 @@ declare const vi: {
|
|
|
325
351
|
stateOpenFuture: string;
|
|
326
352
|
stateOpening: string;
|
|
327
353
|
stateStopped: string;
|
|
328
|
-
stateUnknown: string;
|
|
329
354
|
unknownValue: string;
|
|
330
355
|
unobstructed: string;
|
|
331
356
|
};
|
|
@@ -342,6 +367,12 @@ declare const vi: {
|
|
|
342
367
|
stateUnknown: string;
|
|
343
368
|
unknownValue: string;
|
|
344
369
|
};
|
|
370
|
+
history: {
|
|
371
|
+
cleanup: string;
|
|
372
|
+
cleanupFailed: string;
|
|
373
|
+
entry: string;
|
|
374
|
+
updatedCharacteristic: string;
|
|
375
|
+
};
|
|
345
376
|
lightbulb: {
|
|
346
377
|
brightnessPercent: string;
|
|
347
378
|
brightnessPercentFuture: string;
|
|
@@ -378,18 +409,24 @@ declare const vi: {
|
|
|
378
409
|
receivedMessage: string;
|
|
379
410
|
reconnectMinutes: string;
|
|
380
411
|
reconnectSeconds: string;
|
|
412
|
+
transformFailed: string;
|
|
413
|
+
transformedValue: string;
|
|
381
414
|
};
|
|
382
415
|
onOff: {
|
|
383
416
|
stateOff: string;
|
|
384
417
|
stateOffFuture: string;
|
|
385
418
|
stateOn: string;
|
|
386
419
|
stateOnFuture: string;
|
|
387
|
-
unknownValue: string;
|
|
388
420
|
};
|
|
389
421
|
outlet: {
|
|
390
422
|
badValue: string;
|
|
423
|
+
currentConsumption: string;
|
|
424
|
+
electricCurrent: string;
|
|
391
425
|
inUse: string;
|
|
392
426
|
notInUse: string;
|
|
427
|
+
totalConsumption: string;
|
|
428
|
+
totalConsumptionReset: string;
|
|
429
|
+
voltage: string;
|
|
393
430
|
};
|
|
394
431
|
position: {
|
|
395
432
|
blind: {
|
|
@@ -409,7 +446,6 @@ declare const vi: {
|
|
|
409
446
|
stateDecreasing: string;
|
|
410
447
|
stateIncreasing: string;
|
|
411
448
|
stateStopped: string;
|
|
412
|
-
stateUnknown: string;
|
|
413
449
|
targetPercent: string;
|
|
414
450
|
targetPercentSet: string;
|
|
415
451
|
targetValue: string;
|
|
@@ -427,7 +463,6 @@ declare const vi: {
|
|
|
427
463
|
stateManual: string;
|
|
428
464
|
statePurifying: string;
|
|
429
465
|
stateUnknown: string;
|
|
430
|
-
unknownValue: string;
|
|
431
466
|
};
|
|
432
467
|
security: {
|
|
433
468
|
badValue: string;
|
|
@@ -476,6 +511,7 @@ declare const vi: {
|
|
|
476
511
|
contact: {
|
|
477
512
|
active: string;
|
|
478
513
|
inactive: string;
|
|
514
|
+
timesOpenedReset: string;
|
|
479
515
|
};
|
|
480
516
|
leak: {
|
|
481
517
|
active: string;
|
package/dist/model/enums.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare enum AccessoryType {
|
|
|
4
4
|
CarbonDioxideSensor = "CarbonDioxideSensor",
|
|
5
5
|
CarbonMonoxideSensor = "CarbonMonoxideSensor",
|
|
6
6
|
ContactSensor = "ContactSensor",
|
|
7
|
+
Doorbell = "Doorbell",
|
|
7
8
|
Fanv2 = "Fanv2",
|
|
8
9
|
GarageDoorOpener = "GarageDoorOpener",
|
|
9
10
|
HeaterCooler = "HeaterCooler",
|
|
@@ -27,7 +28,8 @@ export declare enum AccessoryType {
|
|
|
27
28
|
export declare enum AddonType {
|
|
28
29
|
FilterMaintenance = "FilterMaintenance"
|
|
29
30
|
}
|
|
30
|
-
export
|
|
31
|
+
export type CharacteristicKey = HKCharacteristicKey | EveCharacteristicKey;
|
|
32
|
+
export declare enum HKCharacteristicKey {
|
|
31
33
|
Active = "Active",
|
|
32
34
|
AirQuality = "AirQuality",
|
|
33
35
|
BatteryLevel = "BatteryLevel",
|
|
@@ -64,6 +66,7 @@ export declare enum CharacteristicKey {
|
|
|
64
66
|
LockPhysicalControls = "LockPhysicalControls",
|
|
65
67
|
LockTargetState = "LockTargetState",
|
|
66
68
|
MotionDetected = "MotionDetected",
|
|
69
|
+
Mute = "Mute",
|
|
67
70
|
NitrogenDioxideDensity = "NitrogenDioxideDensity",
|
|
68
71
|
ObstructionDetected = "ObstructionDetected",
|
|
69
72
|
OccupancyDetected = "OccupancyDetected",
|
|
@@ -101,7 +104,19 @@ export declare enum CharacteristicKey {
|
|
|
101
104
|
TargetVerticalTiltAngle = "TargetVerticalTiltAngle",
|
|
102
105
|
TemperatureDisplayUnits = "TemperatureDisplayUnits",
|
|
103
106
|
ValveType = "ValveType",
|
|
104
|
-
VOCDensity = "VOCDensity"
|
|
107
|
+
VOCDensity = "VOCDensity",
|
|
108
|
+
Volume = "Volume"
|
|
109
|
+
}
|
|
110
|
+
export declare enum EveCharacteristicKey {
|
|
111
|
+
ClosedDuration = "ClosedDuration",
|
|
112
|
+
CurrentConsumption = "CurrentConsumption",
|
|
113
|
+
ElectricCurrent = "ElectricCurrent",
|
|
114
|
+
LastActivation = "LastActivation",
|
|
115
|
+
OpenDuration = "OpenDuration",
|
|
116
|
+
ResetTotal = "ResetTotal",
|
|
117
|
+
TimesOpened = "TimesOpened",
|
|
118
|
+
TotalConsumption = "TotalConsumption",
|
|
119
|
+
Voltage = "Voltage"
|
|
105
120
|
}
|
|
106
121
|
export declare enum ValveType {
|
|
107
122
|
GENERIC_VALVE = "GENERIC_VALVE",
|
package/dist/model/enums.js
CHANGED
|
@@ -5,6 +5,7 @@ export var AccessoryType;
|
|
|
5
5
|
AccessoryType["CarbonDioxideSensor"] = "CarbonDioxideSensor";
|
|
6
6
|
AccessoryType["CarbonMonoxideSensor"] = "CarbonMonoxideSensor";
|
|
7
7
|
AccessoryType["ContactSensor"] = "ContactSensor";
|
|
8
|
+
AccessoryType["Doorbell"] = "Doorbell";
|
|
8
9
|
AccessoryType["Fanv2"] = "Fanv2";
|
|
9
10
|
AccessoryType["GarageDoorOpener"] = "GarageDoorOpener";
|
|
10
11
|
AccessoryType["HeaterCooler"] = "HeaterCooler";
|
|
@@ -29,83 +30,97 @@ export var AddonType;
|
|
|
29
30
|
(function (AddonType) {
|
|
30
31
|
AddonType["FilterMaintenance"] = "FilterMaintenance";
|
|
31
32
|
})(AddonType || (AddonType = {}));
|
|
32
|
-
export var
|
|
33
|
-
(function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
33
|
+
export var HKCharacteristicKey;
|
|
34
|
+
(function (HKCharacteristicKey) {
|
|
35
|
+
HKCharacteristicKey["Active"] = "Active";
|
|
36
|
+
HKCharacteristicKey["AirQuality"] = "AirQuality";
|
|
37
|
+
HKCharacteristicKey["BatteryLevel"] = "BatteryLevel";
|
|
38
|
+
HKCharacteristicKey["Brightness"] = "Brightness";
|
|
39
|
+
HKCharacteristicKey["CarbonDioxideDetected"] = "CarbonDioxideDetected";
|
|
40
|
+
HKCharacteristicKey["CarbonDioxideLevel"] = "CarbonDioxideLevel";
|
|
41
|
+
HKCharacteristicKey["CarbonDioxidePeakLevel"] = "CarbonDioxidePeakLevel";
|
|
42
|
+
HKCharacteristicKey["CarbonMonoxideDetected"] = "CarbonMonoxideDetected";
|
|
43
|
+
HKCharacteristicKey["CarbonMonoxideLevel"] = "CarbonMonoxideLevel";
|
|
44
|
+
HKCharacteristicKey["CarbonMonoxidePeakLevel"] = "CarbonMonoxidePeakLevel";
|
|
45
|
+
HKCharacteristicKey["ColorTemperature"] = "ColorTemperature";
|
|
46
|
+
HKCharacteristicKey["ContactSensorState"] = "ContactSensorState";
|
|
47
|
+
HKCharacteristicKey["CoolingThresholdTemperature"] = "CoolingThresholdTemperature";
|
|
48
|
+
HKCharacteristicKey["CurrentAmbientLightLevel"] = "CurrentAmbientLightLevel";
|
|
49
|
+
HKCharacteristicKey["CurrentAirPurifierState"] = "CurrentAirPurifierState";
|
|
50
|
+
HKCharacteristicKey["CurrentDoorState"] = "CurrentDoorState";
|
|
51
|
+
HKCharacteristicKey["CurrentFanState"] = "CurrentFanState";
|
|
52
|
+
HKCharacteristicKey["CurrentHeaterCoolerState"] = "CurrentHeaterCoolerState";
|
|
53
|
+
HKCharacteristicKey["CurrentHeatingCoolingState"] = "CurrentHeatingCoolingState";
|
|
54
|
+
HKCharacteristicKey["CurrentHorizontalTiltAngle"] = "CurrentHorizontalTiltAngle";
|
|
55
|
+
HKCharacteristicKey["CurrentPosition"] = "CurrentPosition";
|
|
56
|
+
HKCharacteristicKey["CurrentRelativeHumidity"] = "CurrentRelativeHumidity";
|
|
57
|
+
HKCharacteristicKey["CurrentTemperature"] = "CurrentTemperature";
|
|
58
|
+
HKCharacteristicKey["CurrentVerticalTiltAngle"] = "CurrentVerticalTiltAngle";
|
|
59
|
+
HKCharacteristicKey["FilterChangeIndication"] = "FilterChangeIndication";
|
|
60
|
+
HKCharacteristicKey["FilterLifeLevel"] = "FilterLifeLevel";
|
|
61
|
+
HKCharacteristicKey["HeatingThresholdTemperature"] = "HeatingThresholdTemperature";
|
|
62
|
+
HKCharacteristicKey["HoldPosition"] = "HoldPosition";
|
|
63
|
+
HKCharacteristicKey["Hue"] = "Hue";
|
|
64
|
+
HKCharacteristicKey["InUse"] = "InUse";
|
|
65
|
+
HKCharacteristicKey["IsConfigured"] = "IsConfigured";
|
|
66
|
+
HKCharacteristicKey["LeakDetected"] = "LeakDetected";
|
|
67
|
+
HKCharacteristicKey["LockCurrentState"] = "LockCurrentState";
|
|
68
|
+
HKCharacteristicKey["LockPhysicalControls"] = "LockPhysicalControls";
|
|
69
|
+
HKCharacteristicKey["LockTargetState"] = "LockTargetState";
|
|
70
|
+
HKCharacteristicKey["MotionDetected"] = "MotionDetected";
|
|
71
|
+
HKCharacteristicKey["Mute"] = "Mute";
|
|
72
|
+
HKCharacteristicKey["NitrogenDioxideDensity"] = "NitrogenDioxideDensity";
|
|
73
|
+
HKCharacteristicKey["ObstructionDetected"] = "ObstructionDetected";
|
|
74
|
+
HKCharacteristicKey["OccupancyDetected"] = "OccupancyDetected";
|
|
75
|
+
HKCharacteristicKey["On"] = "On";
|
|
76
|
+
HKCharacteristicKey["OutletInUse"] = "OutletInUse";
|
|
77
|
+
HKCharacteristicKey["OzoneDensity"] = "OzoneDensity";
|
|
78
|
+
HKCharacteristicKey["PM10Density"] = "PM10Density";
|
|
79
|
+
HKCharacteristicKey["PM2_5Density"] = "PM2_5Density";
|
|
80
|
+
HKCharacteristicKey["PositionState"] = "PositionState";
|
|
81
|
+
HKCharacteristicKey["ProgrammableSwitchEvent"] = "ProgrammableSwitchEvent";
|
|
82
|
+
HKCharacteristicKey["RemainingDuration"] = "RemainingDuration";
|
|
83
|
+
HKCharacteristicKey["ResetFilterIndication"] = "ResetFilterIndication";
|
|
84
|
+
HKCharacteristicKey["RotationDirection"] = "RotationDirection";
|
|
85
|
+
HKCharacteristicKey["RotationSpeed"] = "RotationSpeed";
|
|
86
|
+
HKCharacteristicKey["Saturation"] = "Saturation";
|
|
87
|
+
HKCharacteristicKey["SecuritySystemCurrentState"] = "SecuritySystemCurrentState";
|
|
88
|
+
HKCharacteristicKey["SecuritySystemTargetState"] = "SecuritySystemTargetState";
|
|
89
|
+
HKCharacteristicKey["SetDuration"] = "SetDuration";
|
|
90
|
+
HKCharacteristicKey["SmokeDetected"] = "SmokeDetected";
|
|
91
|
+
HKCharacteristicKey["StatusActive"] = "StatusActive";
|
|
92
|
+
HKCharacteristicKey["StatusFault"] = "StatusFault";
|
|
93
|
+
HKCharacteristicKey["StatusLowBattery"] = "StatusLowBattery";
|
|
94
|
+
HKCharacteristicKey["StatusTampered"] = "StatusTampered";
|
|
95
|
+
HKCharacteristicKey["SulphurDioxideDensity"] = "SulphurDioxideDensity";
|
|
96
|
+
HKCharacteristicKey["SwingMode"] = "SwingMode";
|
|
97
|
+
HKCharacteristicKey["TargetAirPurifierState"] = "TargetAirPurifierState";
|
|
98
|
+
HKCharacteristicKey["TargetDoorState"] = "TargetDoorState";
|
|
99
|
+
HKCharacteristicKey["TargetFanState"] = "TargetFanState";
|
|
100
|
+
HKCharacteristicKey["TargetHeaterCoolerState"] = "TargetHeaterCoolerState";
|
|
101
|
+
HKCharacteristicKey["TargetHeatingCoolingState"] = "TargetHeatingCoolingState";
|
|
102
|
+
HKCharacteristicKey["TargetHorizontalTiltAngle"] = "TargetHorizontalTiltAngle";
|
|
103
|
+
HKCharacteristicKey["TargetPosition"] = "TargetPosition";
|
|
104
|
+
HKCharacteristicKey["TargetRelativeHumidity"] = "TargetRelativeHumidity";
|
|
105
|
+
HKCharacteristicKey["TargetTemperature"] = "TargetTemperature";
|
|
106
|
+
HKCharacteristicKey["TargetVerticalTiltAngle"] = "TargetVerticalTiltAngle";
|
|
107
|
+
HKCharacteristicKey["TemperatureDisplayUnits"] = "TemperatureDisplayUnits";
|
|
108
|
+
HKCharacteristicKey["ValveType"] = "ValveType";
|
|
109
|
+
HKCharacteristicKey["VOCDensity"] = "VOCDensity";
|
|
110
|
+
HKCharacteristicKey["Volume"] = "Volume";
|
|
111
|
+
})(HKCharacteristicKey || (HKCharacteristicKey = {}));
|
|
112
|
+
export var EveCharacteristicKey;
|
|
113
|
+
(function (EveCharacteristicKey) {
|
|
114
|
+
EveCharacteristicKey["ClosedDuration"] = "ClosedDuration";
|
|
115
|
+
EveCharacteristicKey["CurrentConsumption"] = "CurrentConsumption";
|
|
116
|
+
EveCharacteristicKey["ElectricCurrent"] = "ElectricCurrent";
|
|
117
|
+
EveCharacteristicKey["LastActivation"] = "LastActivation";
|
|
118
|
+
EveCharacteristicKey["OpenDuration"] = "OpenDuration";
|
|
119
|
+
EveCharacteristicKey["ResetTotal"] = "ResetTotal";
|
|
120
|
+
EveCharacteristicKey["TimesOpened"] = "TimesOpened";
|
|
121
|
+
EveCharacteristicKey["TotalConsumption"] = "TotalConsumption";
|
|
122
|
+
EveCharacteristicKey["Voltage"] = "Voltage";
|
|
123
|
+
})(EveCharacteristicKey || (EveCharacteristicKey = {}));
|
|
109
124
|
export var ValveType;
|
|
110
125
|
(function (ValveType) {
|
|
111
126
|
ValveType["GENERIC_VALVE"] = "GENERIC_VALVE";
|
package/dist/model/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/model/enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/model/enums.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { API } from 'homebridge';
|
|
2
|
+
import { HistoryConfig, MQTTAccessoryConfig } from './types.js';
|
|
3
|
+
import { MQTTAccessory } from '../accessory/abstract/mqtt.js';
|
|
4
|
+
import { Log } from '../tools/log.js';
|
|
5
|
+
export declare enum HistoryType {
|
|
6
|
+
CUSTOM = "custom",
|
|
7
|
+
WEATHER = "weather",
|
|
8
|
+
DOOR = "door",
|
|
9
|
+
MOTION = "motion"
|
|
10
|
+
}
|
|
11
|
+
export type HistoryEntry = {
|
|
12
|
+
humidity?: number;
|
|
13
|
+
power?: number;
|
|
14
|
+
status?: number;
|
|
15
|
+
temp?: number;
|
|
16
|
+
time?: number;
|
|
17
|
+
};
|
|
18
|
+
type Accessory = MQTTAccessory<MQTTAccessoryConfig>;
|
|
19
|
+
export declare class History {
|
|
20
|
+
private readonly api;
|
|
21
|
+
private readonly log;
|
|
22
|
+
private readonly historyServices;
|
|
23
|
+
private readonly persistPath;
|
|
24
|
+
private readonly cleanedUp;
|
|
25
|
+
constructor(api: API, log: Log);
|
|
26
|
+
record(accessory: Accessory, config: HistoryConfig | undefined, type: HistoryType, entry: HistoryEntry, updateLastActivation?: boolean): boolean;
|
|
27
|
+
private createHistoryService;
|
|
28
|
+
private getFilename;
|
|
29
|
+
private cleanup;
|
|
30
|
+
private fileExists;
|
|
31
|
+
}
|
|
32
|
+
export {};
|