homebridge-securitysystem 6.4.0 → 6.5.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/.eslintrc.js CHANGED
@@ -1,290 +1,16 @@
1
1
  module.exports = {
2
- 'env': {
3
- 'node': true,
4
- 'commonjs': true,
5
- 'es2021': true
6
- },
7
- 'extends': 'eslint:recommended',
8
- 'parserOptions': {
9
- 'ecmaVersion': 12
10
- },
11
- 'rules': {
12
- 'accessor-pairs': 'error',
13
- 'array-bracket-newline': 'error',
14
- 'array-bracket-spacing': [
15
- 'error',
16
- 'never'
17
- ],
18
- 'array-callback-return': 'error',
19
- 'array-element-newline': 'off',
20
- 'arrow-body-style': 'off',
21
- 'arrow-parens': 'off',
22
- 'arrow-spacing': [
23
- 'error',
24
- {
25
- 'after': true,
26
- 'before': true
27
- }
28
- ],
29
- 'block-scoped-var': 'error',
30
- 'block-spacing': 'error',
31
- 'brace-style': [
32
- 'error',
33
- 'stroustrup'
34
- ],
35
- 'camelcase': 'error',
36
- 'capitalized-comments': 'off',
37
- 'class-methods-use-this': 'error',
38
- 'comma-dangle': 'error',
39
- 'comma-spacing': [
40
- 'error',
41
- {
42
- 'after': true,
43
- 'before': false
44
- }
45
- ],
46
- 'comma-style': [
47
- 'error',
48
- 'last'
49
- ],
50
- 'complexity': 'off',
51
- 'computed-property-spacing': [
52
- 'error',
53
- 'never'
54
- ],
55
- 'consistent-return': 'error',
56
- 'consistent-this': 'error',
57
- 'curly': 'error',
58
- 'default-case': 'off',
59
- 'default-case-last': 'error',
60
- 'default-param-last': 'error',
61
- 'dot-location': [
62
- 'error',
63
- 'property'
64
- ],
65
- 'dot-notation': 'off',
66
- 'eol-last': 'error',
67
- 'eqeqeq': 'error',
68
- 'func-call-spacing': 'error',
69
- 'func-name-matching': 'error',
70
- 'func-names': 'off',
71
- 'func-style': [
72
- 'error',
73
- 'declaration'
74
- ],
75
- 'function-call-argument-newline': [
76
- 'error',
77
- 'consistent'
78
- ],
79
- 'function-paren-newline': 'error',
80
- 'generator-star-spacing': 'error',
81
- 'grouped-accessor-pairs': 'error',
82
- 'guard-for-in': 'error',
83
- 'id-denylist': 'error',
84
- 'id-length': 'error',
85
- 'id-match': 'error',
86
- 'implicit-arrow-linebreak': [
87
- 'error',
88
- 'beside'
89
- ],
90
- 'indent': 'off',
91
- 'init-declarations': 'off',
92
- 'jsx-quotes': 'error',
93
- 'key-spacing': 'error',
94
- 'keyword-spacing': 'error',
95
- 'line-comment-position': 'error',
96
- 'linebreak-style': [
97
- 'error',
98
- 'windows'
99
- ],
100
- 'lines-around-comment': 'error',
101
- 'lines-between-class-members': 'error',
102
- 'max-classes-per-file': 'error',
103
- 'max-depth': 'error',
104
- 'max-len': 'off',
105
- 'max-lines': 'off',
106
- 'max-lines-per-function': 'off',
107
- 'max-nested-callbacks': 'error',
108
- 'max-params': 'off',
109
- 'max-statements': 'off',
110
- 'max-statements-per-line': 'error',
111
- 'multiline-comment-style': [
112
- 'error',
113
- 'separate-lines'
114
- ],
115
- 'new-parens': 'error',
116
- 'newline-per-chained-call': 'error',
117
- 'no-alert': 'error',
118
- 'no-array-constructor': 'error',
119
- 'no-await-in-loop': 'error',
120
- 'no-bitwise': 'error',
121
- 'no-caller': 'error',
122
- 'no-confusing-arrow': 'error',
123
- 'no-console': 'error',
124
- 'no-constructor-return': 'error',
125
- 'no-continue': 'error',
126
- 'no-div-regex': 'error',
127
- 'no-duplicate-imports': 'error',
128
- 'no-else-return': 'error',
129
- 'no-empty-function': 'error',
130
- 'no-eq-null': 'error',
131
- 'no-eval': 'error',
132
- 'no-extend-native': 'error',
133
- 'no-extra-bind': 'error',
134
- 'no-extra-label': 'error',
135
- 'no-extra-parens': 'off',
136
- 'no-floating-decimal': 'error',
137
- 'no-implicit-coercion': 'error',
138
- 'no-implicit-globals': 'error',
139
- 'no-implied-eval': 'error',
140
- 'no-inline-comments': 'error',
141
- 'no-invalid-this': 'error',
142
- 'no-iterator': 'error',
143
- 'no-label-var': 'error',
144
- 'no-labels': 'error',
145
- 'no-lone-blocks': 'error',
146
- 'no-lonely-if': 'error',
147
- 'no-loop-func': 'error',
148
- 'no-loss-of-precision': 'error',
149
- 'no-magic-numbers': 'off',
150
- 'no-mixed-operators': 'error',
151
- 'no-multi-assign': 'error',
152
- 'no-multi-spaces': 'error',
153
- 'no-multi-str': 'error',
154
- 'no-multiple-empty-lines': 'error',
155
- 'no-negated-condition': 'error',
156
- 'no-nested-ternary': 'error',
157
- 'no-new': 'error',
158
- 'no-new-func': 'error',
159
- 'no-new-object': 'error',
160
- 'no-new-wrappers': 'error',
161
- 'no-nonoctal-decimal-escape': 'error',
162
- 'no-octal-escape': 'error',
163
- 'no-param-reassign': 'error',
164
- 'no-plusplus': 'off',
165
- 'no-promise-executor-return': 'error',
166
- 'no-proto': 'error',
167
- 'no-restricted-exports': 'error',
168
- 'no-restricted-globals': 'error',
169
- 'no-restricted-imports': 'error',
170
- 'no-restricted-properties': 'error',
171
- 'no-restricted-syntax': 'error',
172
- 'no-return-assign': 'error',
173
- 'no-return-await': 'error',
174
- 'no-script-url': 'error',
175
- 'no-self-compare': 'error',
176
- 'no-sequences': 'error',
177
- 'no-shadow': 'off',
178
- 'no-tabs': 'error',
179
- 'no-template-curly-in-string': 'off',
180
- 'no-ternary': 'off',
181
- 'no-throw-literal': 'error',
182
- 'no-trailing-spaces': 'off',
183
- 'no-undef-init': 'error',
184
- 'no-undefined': 'off',
185
- 'no-underscore-dangle': 'error',
186
- 'no-unmodified-loop-condition': 'error',
187
- 'no-unneeded-ternary': 'off',
188
- 'no-unreachable-loop': 'error',
189
- 'no-unsafe-optional-chaining': 'error',
190
- 'no-unused-expressions': 'error',
191
- 'no-use-before-define': 'off',
192
- 'no-useless-backreference': 'error',
193
- 'no-useless-call': 'off',
194
- 'no-useless-computed-key': 'error',
195
- 'no-useless-concat': 'error',
196
- 'no-useless-constructor': 'error',
197
- 'no-useless-rename': 'error',
198
- 'no-useless-return': 'error',
199
- 'no-var': 'error',
200
- 'no-void': 'error',
201
- 'no-warning-comments': 'error',
202
- 'no-whitespace-before-property': 'error',
203
- 'nonblock-statement-body-position': 'error',
204
- 'object-curly-newline': 'error',
205
- 'object-curly-spacing': [
206
- 'error',
207
- 'always'
208
- ],
209
- 'object-property-newline': 'error',
210
- 'object-shorthand': 'error',
211
- 'one-var': 'off',
212
- 'one-var-declaration-per-line': [
213
- 'error',
214
- 'initializations'
215
- ],
216
- 'operator-assignment': 'error',
217
- 'operator-linebreak': 'error',
218
- 'padded-blocks': 'off',
219
- 'padding-line-between-statements': 'error',
220
- 'prefer-arrow-callback': 'error',
221
- 'prefer-const': 'off',
222
- 'prefer-destructuring': 'off',
223
- 'prefer-exponentiation-operator': 'error',
224
- 'prefer-named-capture-group': 'error',
225
- 'prefer-numeric-literals': 'error',
226
- 'prefer-object-spread': 'error',
227
- 'prefer-promise-reject-errors': 'error',
228
- 'prefer-regex-literals': 'error',
229
- 'prefer-rest-params': 'error',
230
- 'prefer-spread': 'error',
231
- 'prefer-template': 'error',
232
- 'quote-props': 'off',
233
- 'quotes': [
234
- 'error',
235
- 'single'
236
- ],
237
- 'radix': [
238
- 'error',
239
- 'as-needed'
240
- ],
241
- 'require-atomic-updates': 'error',
242
- 'require-await': 'off',
243
- 'require-unicode-regexp': 'error',
244
- 'rest-spread-spacing': 'error',
245
- 'semi': 'off',
246
- 'semi-spacing': 'error',
247
- 'semi-style': [
248
- 'error',
249
- 'last'
250
- ],
251
- 'sort-imports': 'error',
252
- 'sort-keys': 'off',
253
- 'sort-vars': 'off',
254
- 'space-before-blocks': 'error',
255
- 'space-before-function-paren': 'off',
256
- 'space-in-parens': [
257
- 'error',
258
- 'never'
259
- ],
260
- 'space-infix-ops': 'error',
261
- 'space-unary-ops': 'error',
262
- 'spaced-comment': [
263
- 'error',
264
- 'always'
265
- ],
266
- 'strict': [
267
- 'error',
268
- 'never'
269
- ],
270
- 'switch-colon-spacing': 'error',
271
- 'symbol-description': 'error',
272
- 'template-curly-spacing': [
273
- 'error',
274
- 'never'
275
- ],
276
- 'template-tag-spacing': 'error',
277
- 'unicode-bom': [
278
- 'error',
279
- 'never'
280
- ],
281
- 'vars-on-top': 'error',
282
- 'wrap-iife': 'error',
283
- 'wrap-regex': 'error',
284
- 'yield-star-spacing': 'error',
285
- 'yoda': [
286
- 'error',
287
- 'never'
288
- ]
289
- }
2
+ env: {
3
+ browser: true,
4
+ commonjs: true,
5
+ es2021: true,
6
+ },
7
+ extends: "eslint:recommended",
8
+ parserOptions: {
9
+ ecmaVersion: "latest",
10
+ },
11
+ rules: {},
12
+ globalVariables: {
13
+ process: "readonly",
14
+ _dirname: "readonly",
15
+ },
290
16
  };
@@ -333,6 +333,28 @@
333
333
  "de-DE"
334
334
  ]
335
335
  },
336
+ "audio_extra_variables": {
337
+ "title": "Audio Extra Variables",
338
+ "type": "array",
339
+ "items": {
340
+ "title": "Environment Variable",
341
+ "type": "object",
342
+ "properties": {
343
+ "key": {
344
+ "title": "Name",
345
+ "type": "string",
346
+ "required": true
347
+ },
348
+ "value": {
349
+ "title": "Value",
350
+ "type": "string",
351
+ "required": true
352
+ }
353
+ }
354
+ },
355
+ "required": true,
356
+ "description": "Add extra environment variables to the ffplay command that will be executed"
357
+ },
336
358
  "audio_path": {
337
359
  "title": "Custom Audio Path",
338
360
  "description": "Instructions will be created in this path.",
@@ -664,7 +686,16 @@
664
686
  ]
665
687
  },
666
688
  "audio_arming_looped",
667
- "audio_alert_looped"
689
+ "audio_alert_looped",
690
+ {
691
+ "key": "audio_extra_variables",
692
+ "type": "tabarray",
693
+ "title": "{{ value.key || 'Environment Variable' }}",
694
+ "items": [
695
+ "audio_extra_variables[].key",
696
+ "audio_extra_variables[].value"
697
+ ]
698
+ }
668
699
  ]
669
700
  },
670
701
  {
@@ -718,4 +749,4 @@
718
749
  ]
719
750
  }
720
751
  ]
721
- }
752
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-securitysystem",
3
3
  "displayName": "Homebridge Security System",
4
- "version": "6.4.0",
4
+ "version": "6.5.0",
5
5
  "description": "Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.",
6
6
  "main": "src/index.js",
7
7
  "scripts": {