homebridge-easy-mqtt 1.4.0-beta.3 → 1.4.0-beta.5
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 +3 -3
- package/README.md +23 -5
- package/config.schema.json +514 -13
- package/dist/accessory/abstract/helper.js +3 -0
- package/dist/accessory/abstract/helper.js.map +1 -1
- package/dist/accessory/climate/heaterCooler.js +2 -2
- package/dist/accessory/climate/heaterCooler.js.map +1 -1
- package/dist/accessory/valve.d.ts +14 -0
- package/dist/accessory/valve.js +71 -0
- package/dist/accessory/valve.js.map +1 -0
- package/dist/homebridge/platform.js +1 -1
- 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 +36 -2
- package/dist/i18n/en.js +36 -2
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/fr.d.ts +36 -2
- package/dist/i18n/i18n.d.ts +36 -2
- package/dist/i18n/template.d.ts +36 -2
- package/dist/model/enums.d.ts +14 -2
- package/dist/model/enums.js +13 -0
- package/dist/model/enums.js.map +1 -1
- package/dist/model/types.d.ts +21 -3
- package/package.json +1 -1
package/dist/i18n/template.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
50
50
|
switch: string;
|
|
51
51
|
temperatureSensor: string;
|
|
52
52
|
thermostat: string;
|
|
53
|
+
valve: string;
|
|
54
|
+
valveGeneric: string;
|
|
55
|
+
valveIrrigation: string;
|
|
56
|
+
valveShower: string;
|
|
57
|
+
valveFaucet: string;
|
|
53
58
|
};
|
|
54
59
|
title: {
|
|
55
60
|
accessory: string;
|
|
@@ -60,7 +65,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
60
65
|
options: string;
|
|
61
66
|
password: string;
|
|
62
67
|
sourceUnits: string;
|
|
63
|
-
|
|
68
|
+
topicGetHeaterCoolerActive: string;
|
|
64
69
|
topicGetBatteryLevel: string;
|
|
65
70
|
topicGetBatteryLow: string;
|
|
66
71
|
topicGetBrightness: string;
|
|
@@ -102,7 +107,12 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
102
107
|
topicGetTargetRelativeHumidity: string;
|
|
103
108
|
topicGetTargetSecurityState: string;
|
|
104
109
|
topicGetTargetTemperature: string;
|
|
105
|
-
|
|
110
|
+
topicGetValveActive: string;
|
|
111
|
+
topicGetValveInUse: string;
|
|
112
|
+
topicGetValveIsConfigured: string;
|
|
113
|
+
topicGetValveRemainingDuration: string;
|
|
114
|
+
topicGetValveSetDuration: string;
|
|
115
|
+
topicSetHeaterCoolerActive: string;
|
|
106
116
|
topicSetBrightness: string;
|
|
107
117
|
topicSetColorTemperature: string;
|
|
108
118
|
topicSetCoolingThresholdTemperature: string;
|
|
@@ -119,9 +129,14 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
119
129
|
topicSetTargetRelativeHumidity: string;
|
|
120
130
|
topicSetTargetSecurityState: string;
|
|
121
131
|
topicSetTargetTemperature: string;
|
|
132
|
+
topicSetValveActive: string;
|
|
133
|
+
topicSetValveIsConfigured: string;
|
|
134
|
+
topicSetValveSetDuration: string;
|
|
122
135
|
topics: string;
|
|
123
136
|
type: string;
|
|
124
137
|
username: string;
|
|
138
|
+
valveType: string;
|
|
139
|
+
valueActive: string;
|
|
125
140
|
valueAlarmTriggered: string;
|
|
126
141
|
valueArmAway: string;
|
|
127
142
|
valueArmNight: string;
|
|
@@ -129,11 +144,14 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
129
144
|
valueBatteryLow: string;
|
|
130
145
|
valueCarbonDioxideDetected: string;
|
|
131
146
|
valueCarbonMonoxideDetected: string;
|
|
147
|
+
valueConfigured: string;
|
|
132
148
|
valueContactDetected: string;
|
|
133
149
|
valueControlLock: string;
|
|
134
150
|
valueControlUnlock: string;
|
|
135
151
|
valueDisarm: string;
|
|
136
152
|
valueFault: string;
|
|
153
|
+
valueInactive: string;
|
|
154
|
+
valueInUse: string;
|
|
137
155
|
valueLeakDetected: string;
|
|
138
156
|
valueLockStateJammed: string;
|
|
139
157
|
valueLockStateSecured: string;
|
|
@@ -145,6 +163,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
145
163
|
valueModeInactive: string;
|
|
146
164
|
valueModeOff: string;
|
|
147
165
|
valueMotionDetected: string;
|
|
166
|
+
valueNotConfigured: string;
|
|
148
167
|
valueOccupancyDetected: string;
|
|
149
168
|
valueOff: string;
|
|
150
169
|
valueOn: string;
|
|
@@ -316,5 +335,20 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
316
335
|
temperatureTargetFuture: string;
|
|
317
336
|
unknownValue: string;
|
|
318
337
|
};
|
|
338
|
+
valve: {
|
|
339
|
+
active: string;
|
|
340
|
+
activeSet: string;
|
|
341
|
+
configured: string;
|
|
342
|
+
configuredFuture: string;
|
|
343
|
+
durationRemaining: string;
|
|
344
|
+
inactive: string;
|
|
345
|
+
inactiveSet: string;
|
|
346
|
+
inUse: string;
|
|
347
|
+
notConfigured: string;
|
|
348
|
+
notConfiguredFuture: string;
|
|
349
|
+
notInUse: string;
|
|
350
|
+
setDuration: string;
|
|
351
|
+
setDurationFuture: string;
|
|
352
|
+
};
|
|
319
353
|
};
|
|
320
354
|
export default REPLACE_THIS_WITH_ISO_CODE;
|
package/dist/model/enums.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export declare enum AccessoryType {
|
|
|
15
15
|
SmokeSensor = "SmokeSensor",
|
|
16
16
|
Switch = "Switch",
|
|
17
17
|
TemperatureSensor = "TemperatureSensor",
|
|
18
|
-
Thermostat = "Thermostat"
|
|
18
|
+
Thermostat = "Thermostat",
|
|
19
|
+
Valve = "Valve"
|
|
19
20
|
}
|
|
20
21
|
export declare enum CharacteristicKey {
|
|
21
22
|
Active = "Active",
|
|
@@ -37,6 +38,8 @@ export declare enum CharacteristicKey {
|
|
|
37
38
|
CurrentTemperature = "CurrentTemperature",
|
|
38
39
|
HeatingThresholdTemperature = "HeatingThresholdTemperature",
|
|
39
40
|
Hue = "Hue",
|
|
41
|
+
InUse = "InUse",
|
|
42
|
+
IsConfigured = "IsConfigured",
|
|
40
43
|
LeakDetected = "LeakDetected",
|
|
41
44
|
LockCurrentState = "LockCurrentState",
|
|
42
45
|
LockPhysicalControls = "LockPhysicalControls",
|
|
@@ -45,10 +48,12 @@ export declare enum CharacteristicKey {
|
|
|
45
48
|
OccupancyDetected = "OccupancyDetected",
|
|
46
49
|
On = "On",
|
|
47
50
|
OutletInUse = "OutletInUse",
|
|
51
|
+
RemainingDuration = "RemainingDuration",
|
|
48
52
|
RotationSpeed = "RotationSpeed",
|
|
49
53
|
Saturation = "Saturation",
|
|
50
54
|
SecuritySystemCurrentState = "SecuritySystemCurrentState",
|
|
51
55
|
SecuritySystemTargetState = "SecuritySystemTargetState",
|
|
56
|
+
SetDuration = "SetDuration",
|
|
52
57
|
SmokeDetected = "SmokeDetected",
|
|
53
58
|
StatusActive = "StatusActive",
|
|
54
59
|
StatusFault = "StatusFault",
|
|
@@ -59,9 +64,16 @@ export declare enum CharacteristicKey {
|
|
|
59
64
|
TargetHeatingCoolingState = "TargetHeatingCoolingState",
|
|
60
65
|
TargetRelativeHumidity = "TargetRelativeHumidity",
|
|
61
66
|
TargetTemperature = "TargetTemperature",
|
|
62
|
-
TemperatureDisplayUnits = "TemperatureDisplayUnits"
|
|
67
|
+
TemperatureDisplayUnits = "TemperatureDisplayUnits",
|
|
68
|
+
ValveType = "ValveType"
|
|
63
69
|
}
|
|
64
70
|
export declare enum TemperatureUnits {
|
|
65
71
|
CELSIUS = "C",
|
|
66
72
|
FAHRENHEIT = "F"
|
|
67
73
|
}
|
|
74
|
+
export declare enum ValveType {
|
|
75
|
+
GENERIC_VALVE = "GENERIC_VALVE",
|
|
76
|
+
IRRIGATION = "IRRIGATION",
|
|
77
|
+
SHOWER_HEAD = "SHOWER_HEAD",
|
|
78
|
+
WATER_FAUCET = "WATER_FAUCET"
|
|
79
|
+
}
|
package/dist/model/enums.js
CHANGED
|
@@ -17,6 +17,7 @@ export var AccessoryType;
|
|
|
17
17
|
AccessoryType["Switch"] = "Switch";
|
|
18
18
|
AccessoryType["TemperatureSensor"] = "TemperatureSensor";
|
|
19
19
|
AccessoryType["Thermostat"] = "Thermostat";
|
|
20
|
+
AccessoryType["Valve"] = "Valve";
|
|
20
21
|
})(AccessoryType || (AccessoryType = {}));
|
|
21
22
|
export var CharacteristicKey;
|
|
22
23
|
(function (CharacteristicKey) {
|
|
@@ -39,6 +40,8 @@ export var CharacteristicKey;
|
|
|
39
40
|
CharacteristicKey["CurrentTemperature"] = "CurrentTemperature";
|
|
40
41
|
CharacteristicKey["HeatingThresholdTemperature"] = "HeatingThresholdTemperature";
|
|
41
42
|
CharacteristicKey["Hue"] = "Hue";
|
|
43
|
+
CharacteristicKey["InUse"] = "InUse";
|
|
44
|
+
CharacteristicKey["IsConfigured"] = "IsConfigured";
|
|
42
45
|
CharacteristicKey["LeakDetected"] = "LeakDetected";
|
|
43
46
|
CharacteristicKey["LockCurrentState"] = "LockCurrentState";
|
|
44
47
|
CharacteristicKey["LockPhysicalControls"] = "LockPhysicalControls";
|
|
@@ -47,10 +50,12 @@ export var CharacteristicKey;
|
|
|
47
50
|
CharacteristicKey["OccupancyDetected"] = "OccupancyDetected";
|
|
48
51
|
CharacteristicKey["On"] = "On";
|
|
49
52
|
CharacteristicKey["OutletInUse"] = "OutletInUse";
|
|
53
|
+
CharacteristicKey["RemainingDuration"] = "RemainingDuration";
|
|
50
54
|
CharacteristicKey["RotationSpeed"] = "RotationSpeed";
|
|
51
55
|
CharacteristicKey["Saturation"] = "Saturation";
|
|
52
56
|
CharacteristicKey["SecuritySystemCurrentState"] = "SecuritySystemCurrentState";
|
|
53
57
|
CharacteristicKey["SecuritySystemTargetState"] = "SecuritySystemTargetState";
|
|
58
|
+
CharacteristicKey["SetDuration"] = "SetDuration";
|
|
54
59
|
CharacteristicKey["SmokeDetected"] = "SmokeDetected";
|
|
55
60
|
CharacteristicKey["StatusActive"] = "StatusActive";
|
|
56
61
|
CharacteristicKey["StatusFault"] = "StatusFault";
|
|
@@ -62,10 +67,18 @@ export var CharacteristicKey;
|
|
|
62
67
|
CharacteristicKey["TargetRelativeHumidity"] = "TargetRelativeHumidity";
|
|
63
68
|
CharacteristicKey["TargetTemperature"] = "TargetTemperature";
|
|
64
69
|
CharacteristicKey["TemperatureDisplayUnits"] = "TemperatureDisplayUnits";
|
|
70
|
+
CharacteristicKey["ValveType"] = "ValveType";
|
|
65
71
|
})(CharacteristicKey || (CharacteristicKey = {}));
|
|
66
72
|
export var TemperatureUnits;
|
|
67
73
|
(function (TemperatureUnits) {
|
|
68
74
|
TemperatureUnits["CELSIUS"] = "C";
|
|
69
75
|
TemperatureUnits["FAHRENHEIT"] = "F";
|
|
70
76
|
})(TemperatureUnits || (TemperatureUnits = {}));
|
|
77
|
+
export var ValveType;
|
|
78
|
+
(function (ValveType) {
|
|
79
|
+
ValveType["GENERIC_VALVE"] = "GENERIC_VALVE";
|
|
80
|
+
ValveType["IRRIGATION"] = "IRRIGATION";
|
|
81
|
+
ValveType["SHOWER_HEAD"] = "SHOWER_HEAD";
|
|
82
|
+
ValveType["WATER_FAUCET"] = "WATER_FAUCET";
|
|
83
|
+
})(ValveType || (ValveType = {}));
|
|
71
84
|
//# sourceMappingURL=enums.js.map
|
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":"AAAA,MAAM,CAAN,IAAY,aAmBX;AAnBD,WAAY,aAAa;IACvB,4DAA2C,CAAA;IAC3C,8DAA6C,CAAA;IAC7C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AA;IACrC,sDAAiC,CAAA;IACjC,4CAAuB,CAAA;IACvB,wEAAmD,CAAA;IACnD,4EAAuD,CAAA;IACvD,sEAAiD,CAAA;IACjD,4DAAuC,CAAA;IACvC,wEAAmD,CAAA;IACnD,4CAAuB,CAAA;AACzB,CAAC,EAhDW,iBAAiB,KAAjB,iBAAiB,QAgD5B;AAED,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,oCAAgB,CAAA;AAClB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4CAA+B,CAAA;IAC/B,sCAAyB,CAAA;IACzB,wCAA2B,CAAA;IAC3B,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB"}
|
package/dist/model/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlatformConfig as HBPlatformConfig } from 'homebridge';
|
|
2
2
|
export type ServiceType = typeof import('homebridge').Service;
|
|
3
3
|
export type CharacteristicType = typeof import('homebridge').Characteristic;
|
|
4
|
-
import { AccessoryType, TemperatureUnits } from './enums.js';
|
|
4
|
+
import { AccessoryType, TemperatureUnits, ValveType } from './enums.js';
|
|
5
5
|
import { Assertable } from '../tools/validation.js';
|
|
6
6
|
export type PlatformConfig = HBPlatformConfig & {
|
|
7
7
|
accessories?: BaseAccessoryConfig[];
|
|
@@ -124,13 +124,13 @@ export type ClimateControlConfig = BaseAccessoryConfig & TemperatureConfig & {
|
|
|
124
124
|
topicSetHeatingThresholdTemperature?: string;
|
|
125
125
|
};
|
|
126
126
|
export type HeaterCoolerConfig = ClimateControlConfig & {
|
|
127
|
-
|
|
127
|
+
topicGetHeaterCoolerActive: string;
|
|
128
128
|
topicGetCurrentHeaterCoolerState: string;
|
|
129
129
|
topicGetLockPhysicalControls?: string;
|
|
130
130
|
topicGetRotationSpeed?: string;
|
|
131
131
|
topicGetSwingMode?: string;
|
|
132
132
|
topicGetTargetHeaterCoolerState: string;
|
|
133
|
-
|
|
133
|
+
topicSetHeaterCoolerActive: string;
|
|
134
134
|
topicSetLockPhysicalControls?: string;
|
|
135
135
|
topicSetRotationSpeed?: string;
|
|
136
136
|
topicSetSwingMode?: string;
|
|
@@ -182,4 +182,22 @@ export type SecurityConfig = BaseAccessoryConfig & ErrorStatusConfig & {
|
|
|
182
182
|
valueDisarm?: string;
|
|
183
183
|
valueAlarmTriggered?: string;
|
|
184
184
|
};
|
|
185
|
+
export type ValveConfig = BaseAccessoryConfig & {
|
|
186
|
+
valveType?: ValveType;
|
|
187
|
+
topicGetStatusFault?: string;
|
|
188
|
+
topicGetValveActive: string;
|
|
189
|
+
topicGetValveInUse: string;
|
|
190
|
+
topicGetValveIsConfigured?: string;
|
|
191
|
+
topicGetValveRemainingDuration?: string;
|
|
192
|
+
topicGetValveSetDuration?: string;
|
|
193
|
+
topicSetValveActive: string;
|
|
194
|
+
topicSetValveIsConfigured?: string;
|
|
195
|
+
topicSetValveSetDuration?: string;
|
|
196
|
+
valueActive: string;
|
|
197
|
+
valueConfigured?: string;
|
|
198
|
+
valueFault?: string;
|
|
199
|
+
valueInactive: string;
|
|
200
|
+
valueInUse: string;
|
|
201
|
+
valueNotConfigured?: string;
|
|
202
|
+
};
|
|
185
203
|
export {};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName": "Homebridge Easy MQTT",
|
|
5
5
|
"description": "Homebridge plugin for easy control of MQTT devices",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "1.4.0-beta.
|
|
7
|
+
"version": "1.4.0-beta.5",
|
|
8
8
|
"homepage": "https://github.com/mpatfield/homebridge-easy-mqtt#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|