homebridge-dummy 1.2.0 → 1.3.0-beta.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.
- package/CHANGELOG.md +13 -5
- package/README.md +61 -24
- package/config.schema.json +92 -0
- package/dist/accessory/base.d.ts +2 -2
- package/dist/accessory/base.js +12 -7
- package/dist/accessory/base.js.map +1 -1
- package/dist/accessory/group.d.ts +1 -1
- package/dist/accessory/group.js +2 -2
- package/dist/accessory/group.js.map +1 -1
- package/dist/accessory/helpers.d.ts +1 -1
- package/dist/accessory/helpers.js +9 -9
- package/dist/accessory/helpers.js.map +1 -1
- package/dist/accessory/lock.d.ts +1 -1
- package/dist/accessory/lock.js +22 -16
- package/dist/accessory/lock.js.map +1 -1
- package/dist/accessory/onoff/lightbulb.d.ts +1 -1
- package/dist/accessory/onoff/lightbulb.js +16 -11
- package/dist/accessory/onoff/lightbulb.js.map +1 -1
- package/dist/accessory/onoff/onoff.d.ts +1 -1
- package/dist/accessory/onoff/onoff.js +17 -14
- package/dist/accessory/onoff/onoff.js.map +1 -1
- package/dist/accessory/position/position.d.ts +1 -1
- package/dist/accessory/position/position.js +22 -16
- package/dist/accessory/position/position.js.map +1 -1
- package/dist/accessory/sensor.d.ts +0 -1
- package/dist/accessory/sensor.js +6 -4
- package/dist/accessory/sensor.js.map +1 -1
- package/dist/accessory/thermostat.d.ts +1 -1
- package/dist/accessory/thermostat.js +33 -20
- package/dist/accessory/thermostat.js.map +1 -1
- package/dist/homebridge/platform.js +4 -3
- 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 +94 -67
- package/dist/i18n/en.js +94 -67
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/i18n.d.ts +95 -69
- package/dist/i18n/i18n.js +0 -6
- package/dist/i18n/i18n.js.map +1 -1
- package/dist/i18n/template.d.ts +96 -69
- package/dist/i18n/template.js +2 -2
- package/dist/i18n/template.js.map +1 -1
- package/dist/model/enums.d.ts +17 -2
- package/dist/model/enums.js +30 -2
- package/dist/model/enums.js.map +1 -1
- package/dist/model/types.d.ts +8 -1
- package/dist/model/webhook.js +6 -1
- package/dist/model/webhook.js.map +1 -1
- package/dist/timeout/limiter.d.ts +18 -0
- package/dist/timeout/limiter.js +147 -0
- package/dist/timeout/limiter.js.map +1 -0
- package/dist/timeout/schedule.d.ts +0 -1
- package/dist/timeout/schedule.js +11 -6
- package/dist/timeout/schedule.js.map +1 -1
- package/dist/timeout/timeout.d.ts +6 -2
- package/dist/timeout/timeout.js +62 -58
- package/dist/timeout/timeout.js.map +1 -1
- package/dist/timeout/timer.d.ts +1 -1
- package/dist/timeout/timer.js +13 -5
- package/dist/timeout/timer.js.map +1 -1
- package/dist/tools/storage.d.ts +14 -5
- package/dist/tools/storage.js +35 -20
- package/dist/tools/storage.js.map +1 -1
- package/package.json +4 -8
- package/dist/i18n/zz.d.ts +0 -206
- package/dist/i18n/zz.js +0 -6
- package/dist/i18n/zz.js.map +0 -1
package/dist/i18n/i18n.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import en from './en.js';
|
|
2
2
|
export declare enum Language {
|
|
3
|
-
EN = "en"
|
|
4
|
-
ZZ = "zz"
|
|
3
|
+
EN = "en"
|
|
5
4
|
}
|
|
6
5
|
export type Translation = typeof en;
|
|
7
6
|
export declare function getLanguage(): Language;
|
|
@@ -9,73 +8,79 @@ export declare function setLanguage(i18nLang: string): void;
|
|
|
9
8
|
export declare function getAllTranslations(): Translation;
|
|
10
9
|
declare const translations: {
|
|
11
10
|
accessory: {
|
|
11
|
+
badValueType: string;
|
|
12
12
|
invalidCron: string;
|
|
13
13
|
missingRequired: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
14
|
+
};
|
|
15
|
+
command: {
|
|
16
|
+
error: string;
|
|
17
|
+
executed: string;
|
|
18
|
+
};
|
|
19
|
+
lightbulb: {
|
|
20
|
+
brightness: string;
|
|
21
|
+
stateOn: string;
|
|
22
|
+
};
|
|
23
|
+
limiter: {
|
|
24
|
+
badPeriod: string;
|
|
25
|
+
badUnits: string;
|
|
26
|
+
expired: string;
|
|
27
|
+
limitExceedsPeriod: string;
|
|
28
|
+
remainingDayPlus: string;
|
|
29
|
+
remainingHours: string;
|
|
30
|
+
remainingMinutes: string;
|
|
31
|
+
remainingSeconds: string;
|
|
32
|
+
};
|
|
33
|
+
lock: {
|
|
34
|
+
badDefault: string;
|
|
35
|
+
secured: string;
|
|
36
|
+
unsecured: string;
|
|
37
|
+
};
|
|
38
|
+
onOff: {
|
|
39
|
+
stateOff: string;
|
|
40
|
+
stateOn: string;
|
|
41
|
+
};
|
|
42
|
+
position: {
|
|
43
|
+
badDefault: string;
|
|
44
|
+
closed: string;
|
|
45
|
+
open: string;
|
|
46
|
+
};
|
|
47
|
+
schedule: {
|
|
48
|
+
badType: string;
|
|
49
|
+
badUnits: string;
|
|
50
|
+
cron: string;
|
|
51
|
+
intervalMilliseconds: string;
|
|
52
|
+
intervalSeconds: string;
|
|
53
|
+
intervalMinutes: string;
|
|
54
|
+
intervalHours: string;
|
|
55
|
+
};
|
|
56
|
+
thermostat: {
|
|
57
|
+
auto: string;
|
|
58
|
+
badDefault: string;
|
|
59
|
+
badUnits: string;
|
|
60
|
+
cool: string;
|
|
61
|
+
heat: string;
|
|
62
|
+
off: string;
|
|
63
|
+
temperatureC: string;
|
|
64
|
+
temperatureF: string;
|
|
65
|
+
unsupportedFunction: string;
|
|
66
|
+
};
|
|
67
|
+
timer: {
|
|
68
|
+
badUnits: string;
|
|
69
|
+
cancel: string;
|
|
70
|
+
setMilliseconds: string;
|
|
71
|
+
setSeconds: string;
|
|
72
|
+
setMinutes: string;
|
|
73
|
+
setHours: string;
|
|
58
74
|
};
|
|
59
75
|
config: {
|
|
60
|
-
migrate: string;
|
|
61
|
-
migrationDetails1: string;
|
|
62
|
-
migrationDetails2: string;
|
|
63
|
-
migrationDetails3: string;
|
|
64
|
-
migrationDetails4: string;
|
|
65
|
-
migrationDetails5: string;
|
|
66
|
-
migrationRestartTitle: string;
|
|
67
|
-
migrationRestartDescription: string;
|
|
68
|
-
support: string;
|
|
69
|
-
thankYou: string;
|
|
70
|
-
yes: string;
|
|
71
|
-
no: string;
|
|
72
76
|
description: {
|
|
73
77
|
commands: string;
|
|
74
78
|
cron: string;
|
|
79
|
+
limiter: string;
|
|
75
80
|
random: string;
|
|
76
|
-
timerControlled: string;
|
|
77
|
-
timer: string;
|
|
78
81
|
schedule: string;
|
|
82
|
+
timer: string;
|
|
83
|
+
timerControlled: string;
|
|
79
84
|
};
|
|
80
85
|
enumNames: {
|
|
81
86
|
auto: string;
|
|
@@ -88,9 +93,11 @@ declare const translations: {
|
|
|
88
93
|
cron: string;
|
|
89
94
|
custom: string;
|
|
90
95
|
daily: string;
|
|
96
|
+
day: string;
|
|
91
97
|
door: string;
|
|
92
98
|
fahrenheit: string;
|
|
93
99
|
heat: string;
|
|
100
|
+
hour: string;
|
|
94
101
|
hourly: string;
|
|
95
102
|
hours: string;
|
|
96
103
|
interval: string;
|
|
@@ -98,9 +105,10 @@ declare const translations: {
|
|
|
98
105
|
lightbulb: string;
|
|
99
106
|
lockMechanism: string;
|
|
100
107
|
minutely: string;
|
|
108
|
+
month: string;
|
|
101
109
|
monthly: string;
|
|
102
|
-
off: string;
|
|
103
110
|
occupancySensor: string;
|
|
111
|
+
off: string;
|
|
104
112
|
on: string;
|
|
105
113
|
open: string;
|
|
106
114
|
outlet: string;
|
|
@@ -114,6 +122,7 @@ declare const translations: {
|
|
|
114
122
|
switch: string;
|
|
115
123
|
thermostat: string;
|
|
116
124
|
unsecured: string;
|
|
125
|
+
week: string;
|
|
117
126
|
weekdays: string;
|
|
118
127
|
weekends: string;
|
|
119
128
|
weekly: string;
|
|
@@ -121,16 +130,28 @@ declare const translations: {
|
|
|
121
130
|
windowCovering: string;
|
|
122
131
|
yearly: string;
|
|
123
132
|
};
|
|
133
|
+
migrate: string;
|
|
134
|
+
migrationDetails1: string;
|
|
135
|
+
migrationDetails2: string;
|
|
136
|
+
migrationDetails3: string;
|
|
137
|
+
migrationDetails4: string;
|
|
138
|
+
migrationDetails5: string;
|
|
139
|
+
migrationRestartDescription: string;
|
|
140
|
+
migrationRestartTitle: string;
|
|
141
|
+
no: string;
|
|
142
|
+
support: string;
|
|
143
|
+
thankYou: string;
|
|
144
|
+
yes: string;
|
|
124
145
|
title: {
|
|
125
146
|
accessory: string;
|
|
126
|
-
commands: string;
|
|
127
147
|
commandClose: string;
|
|
128
|
-
commandOn: string;
|
|
129
148
|
commandOff: string;
|
|
149
|
+
commandOn: string;
|
|
130
150
|
commandOpen: string;
|
|
131
151
|
commandLock: string;
|
|
132
|
-
|
|
152
|
+
commands: string;
|
|
133
153
|
commandTemperature: string;
|
|
154
|
+
commandUnlock: string;
|
|
134
155
|
cron: string;
|
|
135
156
|
cronCustom: string;
|
|
136
157
|
defaultBrightness: string;
|
|
@@ -142,19 +163,23 @@ declare const translations: {
|
|
|
142
163
|
enableWebook: string;
|
|
143
164
|
groupName: string;
|
|
144
165
|
interval: string;
|
|
166
|
+
limit: string;
|
|
167
|
+
limiter: string;
|
|
145
168
|
name: string;
|
|
169
|
+
period: string;
|
|
146
170
|
preset: string;
|
|
171
|
+
random: string;
|
|
147
172
|
resetOnRestart: string;
|
|
148
|
-
timer: string;
|
|
149
|
-
timerControlled: string;
|
|
150
173
|
schedule: string;
|
|
151
174
|
sensor: string;
|
|
175
|
+
timer: string;
|
|
176
|
+
timerControlled: string;
|
|
152
177
|
type: string;
|
|
153
178
|
units: string;
|
|
154
|
-
random: string;
|
|
155
179
|
};
|
|
156
180
|
};
|
|
157
181
|
sensor: {
|
|
182
|
+
badType: string;
|
|
158
183
|
carbonDioxide: {
|
|
159
184
|
active: string;
|
|
160
185
|
inactive: string;
|
|
@@ -187,9 +212,9 @@ declare const translations: {
|
|
|
187
212
|
startup: {
|
|
188
213
|
migrationBridge: string;
|
|
189
214
|
migrationComplete: string;
|
|
190
|
-
migrationNoAccessories: string;
|
|
191
|
-
migrationIgnore: string;
|
|
192
215
|
migrationFailed: string;
|
|
216
|
+
migrationIgnore: string;
|
|
217
|
+
migrationNoAccessories: string;
|
|
193
218
|
migrationRevert: string;
|
|
194
219
|
newAccessory: string;
|
|
195
220
|
removeAccessory: string;
|
|
@@ -199,6 +224,7 @@ declare const translations: {
|
|
|
199
224
|
welcome: string[];
|
|
200
225
|
};
|
|
201
226
|
webhook: {
|
|
227
|
+
badUnits: string;
|
|
202
228
|
missing: string;
|
|
203
229
|
received: string;
|
|
204
230
|
register: string;
|
package/dist/i18n/i18n.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import en from './en.js';
|
|
2
|
-
import zz from './zz.js';
|
|
3
2
|
export var Language;
|
|
4
3
|
(function (Language) {
|
|
5
4
|
Language["EN"] = "en";
|
|
6
|
-
Language["ZZ"] = "zz";
|
|
7
5
|
})(Language || (Language = {}));
|
|
8
6
|
const Translations = {
|
|
9
7
|
[Language.EN]: en,
|
|
10
|
-
[Language.ZZ]: zz,
|
|
11
8
|
};
|
|
12
9
|
let currentLanguage = Language.EN;
|
|
13
10
|
export function getLanguage() {
|
|
@@ -19,9 +16,6 @@ export function setLanguage(i18nLang) {
|
|
|
19
16
|
case Language.EN:
|
|
20
17
|
language = Language.EN;
|
|
21
18
|
break;
|
|
22
|
-
case Language.ZZ:
|
|
23
|
-
language = Language.ZZ;
|
|
24
|
-
break;
|
|
25
19
|
}
|
|
26
20
|
currentLanguage = Translations[language] ? language : Language.EN;
|
|
27
21
|
}
|
package/dist/i18n/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,CAAN,IAAY,QAEX;AAFD,WAAY,QAAQ;IAClB,qBAAS,CAAA;AACX,CAAC,EAFW,QAAQ,KAAR,QAAQ,QAEnB;AAED,MAAM,YAAY,GAAkC;IAClD,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE;CAClB,CAAC;AAIF,IAAI,eAAe,GAAa,QAAQ,CAAC,EAAE,CAAC;AAE5C,MAAM,UAAU,WAAW;IACzB,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,QAAgB;IAE1C,IAAI,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAC;IAC3B,QAAO,QAAQ,EAAE,CAAC;QAClB,KAAK,QAAQ,CAAC,EAAE;YACd,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAC;YACvB,MAAM;IACR,CAAC;IAED,eAAe,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,KAAK,CAAC,EAAiB,EAAE;IAChD,GAAG,CAAC,OAAO,EAAE,IAAY;QACvB,OAAO,CACL,YAAY,CAAC,eAAe,CAAC,CAAC,IAAyB,CAAC;YACxD,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAyB,CAAC,CACrD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,CAAC"}
|
package/dist/i18n/template.d.ts
CHANGED
|
@@ -1,72 +1,78 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const TODO_REPLACE_THIS_WITH_ISO_CODE: {
|
|
2
2
|
accessory: {
|
|
3
|
+
badValueType: string;
|
|
3
4
|
invalidCron: string;
|
|
4
5
|
missingRequired: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
6
|
+
};
|
|
7
|
+
command: {
|
|
8
|
+
error: string;
|
|
9
|
+
executed: string;
|
|
10
|
+
};
|
|
11
|
+
lightbulb: {
|
|
12
|
+
brightness: string;
|
|
13
|
+
stateOn: string;
|
|
14
|
+
};
|
|
15
|
+
limiter: {
|
|
16
|
+
badPeriod: string;
|
|
17
|
+
badUnits: string;
|
|
18
|
+
expired: string;
|
|
19
|
+
limitExceedsPeriod: string;
|
|
20
|
+
remainingDayPlus: string;
|
|
21
|
+
remainingHours: string;
|
|
22
|
+
remainingMinutes: string;
|
|
23
|
+
remainingSeconds: string;
|
|
24
|
+
};
|
|
25
|
+
lock: {
|
|
26
|
+
badDefault: string;
|
|
27
|
+
secured: string;
|
|
28
|
+
unsecured: string;
|
|
29
|
+
};
|
|
30
|
+
onOff: {
|
|
31
|
+
stateOff: string;
|
|
32
|
+
stateOn: string;
|
|
33
|
+
};
|
|
34
|
+
position: {
|
|
35
|
+
badDefault: string;
|
|
36
|
+
closed: string;
|
|
37
|
+
open: string;
|
|
38
|
+
};
|
|
39
|
+
schedule: {
|
|
40
|
+
badType: string;
|
|
41
|
+
badUnits: string;
|
|
42
|
+
cron: string;
|
|
43
|
+
intervalMilliseconds: string;
|
|
44
|
+
intervalSeconds: string;
|
|
45
|
+
intervalMinutes: string;
|
|
46
|
+
intervalHours: string;
|
|
47
|
+
};
|
|
48
|
+
thermostat: {
|
|
49
|
+
auto: string;
|
|
50
|
+
badDefault: string;
|
|
51
|
+
badUnits: string;
|
|
52
|
+
cool: string;
|
|
53
|
+
heat: string;
|
|
54
|
+
off: string;
|
|
55
|
+
temperatureC: string;
|
|
56
|
+
temperatureF: string;
|
|
57
|
+
unsupportedFunction: string;
|
|
58
|
+
};
|
|
59
|
+
timer: {
|
|
60
|
+
badUnits: string;
|
|
61
|
+
cancel: string;
|
|
62
|
+
setMilliseconds: string;
|
|
63
|
+
setSeconds: string;
|
|
64
|
+
setMinutes: string;
|
|
65
|
+
setHours: string;
|
|
49
66
|
};
|
|
50
67
|
config: {
|
|
51
|
-
migrate: string;
|
|
52
|
-
migrationDetails1: string;
|
|
53
|
-
migrationDetails2: string;
|
|
54
|
-
migrationDetails3: string;
|
|
55
|
-
migrationDetails4: string;
|
|
56
|
-
migrationDetails5: string;
|
|
57
|
-
migrationRestartTitle: string;
|
|
58
|
-
migrationRestartDescription: string;
|
|
59
|
-
support: string;
|
|
60
|
-
thankYou: string;
|
|
61
|
-
yes: string;
|
|
62
|
-
no: string;
|
|
63
68
|
description: {
|
|
64
69
|
commands: string;
|
|
65
70
|
cron: string;
|
|
71
|
+
limiter: string;
|
|
66
72
|
random: string;
|
|
67
|
-
timerControlled: string;
|
|
68
|
-
timer: string;
|
|
69
73
|
schedule: string;
|
|
74
|
+
timer: string;
|
|
75
|
+
timerControlled: string;
|
|
70
76
|
};
|
|
71
77
|
enumNames: {
|
|
72
78
|
auto: string;
|
|
@@ -79,9 +85,11 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
79
85
|
cron: string;
|
|
80
86
|
custom: string;
|
|
81
87
|
daily: string;
|
|
88
|
+
day: string;
|
|
82
89
|
door: string;
|
|
83
90
|
fahrenheit: string;
|
|
84
91
|
heat: string;
|
|
92
|
+
hour: string;
|
|
85
93
|
hourly: string;
|
|
86
94
|
hours: string;
|
|
87
95
|
interval: string;
|
|
@@ -89,9 +97,10 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
89
97
|
lightbulb: string;
|
|
90
98
|
lockMechanism: string;
|
|
91
99
|
minutely: string;
|
|
100
|
+
month: string;
|
|
92
101
|
monthly: string;
|
|
93
|
-
off: string;
|
|
94
102
|
occupancySensor: string;
|
|
103
|
+
off: string;
|
|
95
104
|
on: string;
|
|
96
105
|
open: string;
|
|
97
106
|
outlet: string;
|
|
@@ -105,6 +114,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
105
114
|
switch: string;
|
|
106
115
|
thermostat: string;
|
|
107
116
|
unsecured: string;
|
|
117
|
+
week: string;
|
|
108
118
|
weekdays: string;
|
|
109
119
|
weekends: string;
|
|
110
120
|
weekly: string;
|
|
@@ -112,16 +122,28 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
112
122
|
windowCovering: string;
|
|
113
123
|
yearly: string;
|
|
114
124
|
};
|
|
125
|
+
migrate: string;
|
|
126
|
+
migrationDetails1: string;
|
|
127
|
+
migrationDetails2: string;
|
|
128
|
+
migrationDetails3: string;
|
|
129
|
+
migrationDetails4: string;
|
|
130
|
+
migrationDetails5: string;
|
|
131
|
+
migrationRestartDescription: string;
|
|
132
|
+
migrationRestartTitle: string;
|
|
133
|
+
no: string;
|
|
134
|
+
support: string;
|
|
135
|
+
thankYou: string;
|
|
136
|
+
yes: string;
|
|
115
137
|
title: {
|
|
116
138
|
accessory: string;
|
|
117
|
-
commands: string;
|
|
118
139
|
commandClose: string;
|
|
119
|
-
commandOn: string;
|
|
120
140
|
commandOff: string;
|
|
141
|
+
commandOn: string;
|
|
121
142
|
commandOpen: string;
|
|
122
143
|
commandLock: string;
|
|
123
|
-
|
|
144
|
+
commands: string;
|
|
124
145
|
commandTemperature: string;
|
|
146
|
+
commandUnlock: string;
|
|
125
147
|
cron: string;
|
|
126
148
|
cronCustom: string;
|
|
127
149
|
defaultBrightness: string;
|
|
@@ -133,19 +155,23 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
133
155
|
enableWebook: string;
|
|
134
156
|
groupName: string;
|
|
135
157
|
interval: string;
|
|
158
|
+
limit: string;
|
|
159
|
+
limiter: string;
|
|
136
160
|
name: string;
|
|
161
|
+
period: string;
|
|
137
162
|
preset: string;
|
|
163
|
+
random: string;
|
|
138
164
|
resetOnRestart: string;
|
|
139
|
-
timer: string;
|
|
140
|
-
timerControlled: string;
|
|
141
165
|
schedule: string;
|
|
142
166
|
sensor: string;
|
|
167
|
+
timer: string;
|
|
168
|
+
timerControlled: string;
|
|
143
169
|
type: string;
|
|
144
170
|
units: string;
|
|
145
|
-
random: string;
|
|
146
171
|
};
|
|
147
172
|
};
|
|
148
173
|
sensor: {
|
|
174
|
+
badType: string;
|
|
149
175
|
carbonDioxide: {
|
|
150
176
|
active: string;
|
|
151
177
|
inactive: string;
|
|
@@ -178,9 +204,9 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
178
204
|
startup: {
|
|
179
205
|
migrationBridge: string;
|
|
180
206
|
migrationComplete: string;
|
|
181
|
-
migrationNoAccessories: string;
|
|
182
|
-
migrationIgnore: string;
|
|
183
207
|
migrationFailed: string;
|
|
208
|
+
migrationIgnore: string;
|
|
209
|
+
migrationNoAccessories: string;
|
|
184
210
|
migrationRevert: string;
|
|
185
211
|
newAccessory: string;
|
|
186
212
|
removeAccessory: string;
|
|
@@ -190,6 +216,7 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
190
216
|
welcome: string[];
|
|
191
217
|
};
|
|
192
218
|
webhook: {
|
|
219
|
+
badUnits: string;
|
|
193
220
|
missing: string;
|
|
194
221
|
received: string;
|
|
195
222
|
register: string;
|
|
@@ -203,4 +230,4 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
203
230
|
unregisteredId: string;
|
|
204
231
|
};
|
|
205
232
|
};
|
|
206
|
-
export default
|
|
233
|
+
export default TODO_REPLACE_THIS_WITH_ISO_CODE;
|
package/dist/i18n/template.js
CHANGED
|
@@ -3,6 +3,6 @@ import en from './en.js';
|
|
|
3
3
|
const overrides = {
|
|
4
4
|
// Copy strings from en.js to here and translate
|
|
5
5
|
};
|
|
6
|
-
const
|
|
7
|
-
export default
|
|
6
|
+
const TODO_REPLACE_THIS_WITH_ISO_CODE = merge({}, en, overrides);
|
|
7
|
+
export default TODO_REPLACE_THIS_WITH_ISO_CODE;
|
|
8
8
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/i18n/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,SAAS,GAAG;AAEhB,gDAAgD;CAEjD,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/i18n/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,SAAS,GAAG;AAEhB,gDAAgD;CAEjD,CAAC;AAEF,MAAM,+BAA+B,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;AAEjE,eAAe,+BAA+B,CAAC"}
|
package/dist/model/enums.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare enum SensorType {
|
|
|
17
17
|
OccupancySensor = "OccupancySensor",
|
|
18
18
|
SmokeSensor = "SmokeSensor"
|
|
19
19
|
}
|
|
20
|
+
export declare function isValidSensorType(input: SensorType): boolean;
|
|
20
21
|
export declare enum SensorCharacteristic {
|
|
21
22
|
CarbonDioxideDetected = "CarbonDioxideDetected",
|
|
22
23
|
CarbonMonoxideDetected = "CarbonMonoxideDetected",
|
|
@@ -30,15 +31,24 @@ export declare enum DefaultLockState {
|
|
|
30
31
|
LOCKED = "locked",
|
|
31
32
|
UNLOCKED = "unlocked"
|
|
32
33
|
}
|
|
34
|
+
export declare function isValidLockState(input?: DefaultLockState): boolean;
|
|
33
35
|
export declare enum DefaultPosition {
|
|
34
36
|
OPEN = "open",
|
|
35
37
|
CLOSED = "closed"
|
|
36
38
|
}
|
|
39
|
+
export declare function isValidPosition(input?: DefaultPosition): boolean;
|
|
37
40
|
export declare enum DefaultThermostatState {
|
|
38
|
-
|
|
41
|
+
AUTO = "auto",
|
|
39
42
|
COOL = "cool",
|
|
40
43
|
HEAT = "heat",
|
|
41
|
-
|
|
44
|
+
OFF = "off"
|
|
45
|
+
}
|
|
46
|
+
export declare function isValidThermostatState(input?: DefaultThermostatState): boolean;
|
|
47
|
+
export declare enum TimePeriod {
|
|
48
|
+
HOUR = "HOUR",
|
|
49
|
+
DAY = "DAY",
|
|
50
|
+
WEEK = "WEEK",
|
|
51
|
+
MONTH = "MONTH"
|
|
42
52
|
}
|
|
43
53
|
export declare enum TimeUnits {
|
|
44
54
|
MILLISECONDS = "MILLISECONDS",
|
|
@@ -46,6 +56,7 @@ export declare enum TimeUnits {
|
|
|
46
56
|
MINUTES = "MINUTES",
|
|
47
57
|
HOURS = "HOURS"
|
|
48
58
|
}
|
|
59
|
+
export declare function isValidTimeUnits(input: TimeUnits): boolean;
|
|
49
60
|
export declare enum ScheduleType {
|
|
50
61
|
INTERVAL = "INTERVAL",
|
|
51
62
|
CRON = "CRON"
|
|
@@ -54,6 +65,7 @@ export declare enum TemperatureUnits {
|
|
|
54
65
|
CELSIUS = "C",
|
|
55
66
|
FAHRENHEIT = "F"
|
|
56
67
|
}
|
|
68
|
+
export declare function isValidTemperatureUnits(input?: TemperatureUnits): boolean;
|
|
57
69
|
export declare enum WebhookCommand {
|
|
58
70
|
Brightness = "Brightness",
|
|
59
71
|
LockTargetState = "LockTargetState",
|
|
@@ -62,3 +74,6 @@ export declare enum WebhookCommand {
|
|
|
62
74
|
TargetPosition = "TargetPosition",
|
|
63
75
|
TargetTemperature = "TargetTemperature"
|
|
64
76
|
}
|
|
77
|
+
export declare function printableValues<T>(o: {
|
|
78
|
+
[s: string]: T;
|
|
79
|
+
} | ArrayLike<T>): string;
|
package/dist/model/enums.js
CHANGED
|
@@ -19,6 +19,9 @@ export var SensorType;
|
|
|
19
19
|
SensorType["OccupancySensor"] = "OccupancySensor";
|
|
20
20
|
SensorType["SmokeSensor"] = "SmokeSensor";
|
|
21
21
|
})(SensorType || (SensorType = {}));
|
|
22
|
+
export function isValidSensorType(input) {
|
|
23
|
+
return Object.values(SensorType).includes(input);
|
|
24
|
+
}
|
|
22
25
|
export var SensorCharacteristic;
|
|
23
26
|
(function (SensorCharacteristic) {
|
|
24
27
|
SensorCharacteristic["CarbonDioxideDetected"] = "CarbonDioxideDetected";
|
|
@@ -34,18 +37,34 @@ export var DefaultLockState;
|
|
|
34
37
|
DefaultLockState["LOCKED"] = "locked";
|
|
35
38
|
DefaultLockState["UNLOCKED"] = "unlocked";
|
|
36
39
|
})(DefaultLockState || (DefaultLockState = {}));
|
|
40
|
+
export function isValidLockState(input) {
|
|
41
|
+
return input === undefined || Object.values(DefaultLockState).includes(input);
|
|
42
|
+
}
|
|
37
43
|
export var DefaultPosition;
|
|
38
44
|
(function (DefaultPosition) {
|
|
39
45
|
DefaultPosition["OPEN"] = "open";
|
|
40
46
|
DefaultPosition["CLOSED"] = "closed";
|
|
41
47
|
})(DefaultPosition || (DefaultPosition = {}));
|
|
48
|
+
export function isValidPosition(input) {
|
|
49
|
+
return input === undefined || Object.values(DefaultPosition).includes(input);
|
|
50
|
+
}
|
|
42
51
|
export var DefaultThermostatState;
|
|
43
52
|
(function (DefaultThermostatState) {
|
|
44
|
-
DefaultThermostatState["
|
|
53
|
+
DefaultThermostatState["AUTO"] = "auto";
|
|
45
54
|
DefaultThermostatState["COOL"] = "cool";
|
|
46
55
|
DefaultThermostatState["HEAT"] = "heat";
|
|
47
|
-
DefaultThermostatState["
|
|
56
|
+
DefaultThermostatState["OFF"] = "off";
|
|
48
57
|
})(DefaultThermostatState || (DefaultThermostatState = {}));
|
|
58
|
+
export function isValidThermostatState(input) {
|
|
59
|
+
return input === undefined || Object.values(DefaultThermostatState).includes(input);
|
|
60
|
+
}
|
|
61
|
+
export var TimePeriod;
|
|
62
|
+
(function (TimePeriod) {
|
|
63
|
+
TimePeriod["HOUR"] = "HOUR";
|
|
64
|
+
TimePeriod["DAY"] = "DAY";
|
|
65
|
+
TimePeriod["WEEK"] = "WEEK";
|
|
66
|
+
TimePeriod["MONTH"] = "MONTH";
|
|
67
|
+
})(TimePeriod || (TimePeriod = {}));
|
|
49
68
|
export var TimeUnits;
|
|
50
69
|
(function (TimeUnits) {
|
|
51
70
|
TimeUnits["MILLISECONDS"] = "MILLISECONDS";
|
|
@@ -53,6 +72,9 @@ export var TimeUnits;
|
|
|
53
72
|
TimeUnits["MINUTES"] = "MINUTES";
|
|
54
73
|
TimeUnits["HOURS"] = "HOURS";
|
|
55
74
|
})(TimeUnits || (TimeUnits = {}));
|
|
75
|
+
export function isValidTimeUnits(input) {
|
|
76
|
+
return Object.values(TimeUnits).includes(input);
|
|
77
|
+
}
|
|
56
78
|
export var ScheduleType;
|
|
57
79
|
(function (ScheduleType) {
|
|
58
80
|
ScheduleType["INTERVAL"] = "INTERVAL";
|
|
@@ -63,6 +85,9 @@ export var TemperatureUnits;
|
|
|
63
85
|
TemperatureUnits["CELSIUS"] = "C";
|
|
64
86
|
TemperatureUnits["FAHRENHEIT"] = "F";
|
|
65
87
|
})(TemperatureUnits || (TemperatureUnits = {}));
|
|
88
|
+
export function isValidTemperatureUnits(input) {
|
|
89
|
+
return input === undefined || Object.values(TemperatureUnits).includes(input);
|
|
90
|
+
}
|
|
66
91
|
export var WebhookCommand;
|
|
67
92
|
(function (WebhookCommand) {
|
|
68
93
|
WebhookCommand["Brightness"] = "Brightness";
|
|
@@ -72,4 +97,7 @@ export var WebhookCommand;
|
|
|
72
97
|
WebhookCommand["TargetPosition"] = "TargetPosition";
|
|
73
98
|
WebhookCommand["TargetTemperature"] = "TargetTemperature";
|
|
74
99
|
})(WebhookCommand || (WebhookCommand = {}));
|
|
100
|
+
export function printableValues(o) {
|
|
101
|
+
return Object.values(o).map(value => `'${value}'`).join(', ');
|
|
102
|
+
}
|
|
75
103
|
//# sourceMappingURL=enums.js.map
|