homebridge-dummy 1.0.0-alpha.1 → 1.0.0-alpha.2
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 +1 -1
- package/config.schema.json +6 -1
- package/dist/homebridge-ui/public/index.html +1 -1
- package/dist/i18n/en.d.ts +19 -1
- package/dist/i18n/en.js +19 -1
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/i18n.d.ts +19 -1
- package/dist/i18n/template.d.ts +19 -1
- package/dist/i18n/zz.d.ts +19 -1
- package/package.json +2 -2
- package/src/homebridge-ui/public/index.html +1 -1
- package/.gitattributes +0 -2
- package/eslint.config.ts +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ All notable changes to homebridge-dummy will be documented in this file.
|
|
|
6
6
|
|
|
7
7
|
Please report any issues you encounter here: https://github.com/mpatfield/homebridge-dummy/issues
|
|
8
8
|
|
|
9
|
-
## 1.0.0-alpha.
|
|
9
|
+
## 1.0.0-alpha.2 (2025-07-01)
|
|
10
10
|
|
|
11
11
|
### ‼️ BREAKING This version is a complete code rewrite. Automations using Homebridge Dummy accessories will need to be reconfigured.
|
|
12
12
|
|
package/config.schema.json
CHANGED
package/dist/i18n/en.d.ts
CHANGED
|
@@ -30,11 +30,29 @@ declare const en: {
|
|
|
30
30
|
thankYou: string;
|
|
31
31
|
yes: string;
|
|
32
32
|
no: string;
|
|
33
|
-
description: {
|
|
33
|
+
description: {
|
|
34
|
+
random: string;
|
|
35
|
+
timer: string;
|
|
36
|
+
};
|
|
37
|
+
enumNames: {
|
|
38
|
+
hours: string;
|
|
39
|
+
lightbulb: string;
|
|
40
|
+
minutes: string;
|
|
41
|
+
seconds: string;
|
|
42
|
+
switch: string;
|
|
43
|
+
};
|
|
34
44
|
title: {
|
|
35
45
|
accessory: string;
|
|
46
|
+
defaultBrightness: string;
|
|
47
|
+
defaultOn: string;
|
|
48
|
+
delay: string;
|
|
36
49
|
disableLogging: string;
|
|
37
50
|
name: string;
|
|
51
|
+
options: string;
|
|
52
|
+
timer: string;
|
|
53
|
+
type: string;
|
|
54
|
+
units: string;
|
|
55
|
+
random: string;
|
|
38
56
|
};
|
|
39
57
|
};
|
|
40
58
|
startup: {
|
package/dist/i18n/en.js
CHANGED
|
@@ -30,11 +30,29 @@ const en = {
|
|
|
30
30
|
thankYou: 'Thank you for installing %s',
|
|
31
31
|
yes: 'Yes',
|
|
32
32
|
no: 'No',
|
|
33
|
-
description: {
|
|
33
|
+
description: {
|
|
34
|
+
random: 'Delay will be randomized with the above value as a maximum',
|
|
35
|
+
timer: 'Optional settings to automatically toggle the accessory',
|
|
36
|
+
},
|
|
37
|
+
enumNames: {
|
|
38
|
+
hours: 'Hours',
|
|
39
|
+
lightbulb: 'Lightbulb',
|
|
40
|
+
minutes: 'Minutes',
|
|
41
|
+
seconds: 'Seconds',
|
|
42
|
+
switch: 'Switch',
|
|
43
|
+
},
|
|
34
44
|
title: {
|
|
35
45
|
accessory: 'Accessory',
|
|
46
|
+
defaultBrightness: 'Default Brightness',
|
|
47
|
+
defaultOn: 'Default to On',
|
|
48
|
+
delay: 'Delay',
|
|
36
49
|
disableLogging: 'Disable Logging',
|
|
37
50
|
name: 'Name',
|
|
51
|
+
options: 'Additional Settings',
|
|
52
|
+
timer: 'Timer',
|
|
53
|
+
type: 'Type',
|
|
54
|
+
units: 'Units',
|
|
55
|
+
random: 'Random',
|
|
38
56
|
},
|
|
39
57
|
},
|
|
40
58
|
startup: {
|
package/dist/i18n/en.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,MAAM,EAAE,GAAG;IAET,SAAS,EAAE;QAET,eAAe,EAAE,2CAA2C;QAE5D,SAAS,EAAE;YACT,UAAU,EAAE,qBAAqB;YACjC,OAAO,EAAE,cAAc;SACxB;QAED,KAAK,EAAE;YACL,OAAO,EAAE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;QAC3C,2BAA2B,EAAE,iDAAiD;QAC9E,OAAO,EAAE,+CAA+C;QACxD,QAAQ,EAAE,6BAA6B;QACvC,GAAG,EAAE,KAAK;QACV,EAAE,EAAE,IAAI;QAER,WAAW,EAAE;YACX,MAAM,EAAE,4DAA4D;YACpE,KAAK,EAAE,yDAAyD;SACjE;QAED,SAAS,EAAE;YACT,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;SACjB;QAED,KAAK,EAAE;YACL,SAAS,EAAE,WAAW;YACtB,iBAAiB,EAAE,oBAAoB;YACvC,SAAS,EAAE,eAAe;YAC1B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,iBAAiB;YACjC,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,qBAAqB;YAC9B,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;SACjB;KACF;IAED,OAAO,EAAE;QACP,eAAe,EAAE,iFAAiF;QAClG,iBAAiB,EAAE,uCAAuC;QAC1D,sBAAsB,EAAE,2CAA2C;QACnE,eAAe,EAAE,kHAAkH;QACnI,eAAe,EAAE,0DAA0D;QAC3E,eAAe,EAAE,+FAA+F;QAChH,YAAY,EAAE,uBAAuB;QACrC,eAAe,EAAE,qBAAqB;QACtC,kBAAkB,EAAE,sBAAsB;QAC1C,aAAa,EAAE,kBAAkB;QACjC,eAAe,EAAE,+BAA+B;QAChD,OAAO,EAAE;YACP,4GAA4G;YAC5G,8EAA8E;YAC9E,4EAA4E;YAC5E,qHAAqH;SACtH;KACF;CACF,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/i18n/i18n.d.ts
CHANGED
|
@@ -39,11 +39,29 @@ declare const translations: {
|
|
|
39
39
|
thankYou: string;
|
|
40
40
|
yes: string;
|
|
41
41
|
no: string;
|
|
42
|
-
description: {
|
|
42
|
+
description: {
|
|
43
|
+
random: string;
|
|
44
|
+
timer: string;
|
|
45
|
+
};
|
|
46
|
+
enumNames: {
|
|
47
|
+
hours: string;
|
|
48
|
+
lightbulb: string;
|
|
49
|
+
minutes: string;
|
|
50
|
+
seconds: string;
|
|
51
|
+
switch: string;
|
|
52
|
+
};
|
|
43
53
|
title: {
|
|
44
54
|
accessory: string;
|
|
55
|
+
defaultBrightness: string;
|
|
56
|
+
defaultOn: string;
|
|
57
|
+
delay: string;
|
|
45
58
|
disableLogging: string;
|
|
46
59
|
name: string;
|
|
60
|
+
options: string;
|
|
61
|
+
timer: string;
|
|
62
|
+
type: string;
|
|
63
|
+
units: string;
|
|
64
|
+
random: string;
|
|
47
65
|
};
|
|
48
66
|
};
|
|
49
67
|
startup: {
|
package/dist/i18n/template.d.ts
CHANGED
|
@@ -30,11 +30,29 @@ declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
30
30
|
thankYou: string;
|
|
31
31
|
yes: string;
|
|
32
32
|
no: string;
|
|
33
|
-
description: {
|
|
33
|
+
description: {
|
|
34
|
+
random: string;
|
|
35
|
+
timer: string;
|
|
36
|
+
};
|
|
37
|
+
enumNames: {
|
|
38
|
+
hours: string;
|
|
39
|
+
lightbulb: string;
|
|
40
|
+
minutes: string;
|
|
41
|
+
seconds: string;
|
|
42
|
+
switch: string;
|
|
43
|
+
};
|
|
34
44
|
title: {
|
|
35
45
|
accessory: string;
|
|
46
|
+
defaultBrightness: string;
|
|
47
|
+
defaultOn: string;
|
|
48
|
+
delay: string;
|
|
36
49
|
disableLogging: string;
|
|
37
50
|
name: string;
|
|
51
|
+
options: string;
|
|
52
|
+
timer: string;
|
|
53
|
+
type: string;
|
|
54
|
+
units: string;
|
|
55
|
+
random: string;
|
|
38
56
|
};
|
|
39
57
|
};
|
|
40
58
|
startup: {
|
package/dist/i18n/zz.d.ts
CHANGED
|
@@ -30,11 +30,29 @@ declare const zz: {
|
|
|
30
30
|
thankYou: string;
|
|
31
31
|
yes: string;
|
|
32
32
|
no: string;
|
|
33
|
-
description: {
|
|
33
|
+
description: {
|
|
34
|
+
random: string;
|
|
35
|
+
timer: string;
|
|
36
|
+
};
|
|
37
|
+
enumNames: {
|
|
38
|
+
hours: string;
|
|
39
|
+
lightbulb: string;
|
|
40
|
+
minutes: string;
|
|
41
|
+
seconds: string;
|
|
42
|
+
switch: string;
|
|
43
|
+
};
|
|
34
44
|
title: {
|
|
35
45
|
accessory: string;
|
|
46
|
+
defaultBrightness: string;
|
|
47
|
+
defaultOn: string;
|
|
48
|
+
delay: string;
|
|
36
49
|
disableLogging: string;
|
|
37
50
|
name: string;
|
|
51
|
+
options: string;
|
|
52
|
+
timer: string;
|
|
53
|
+
type: string;
|
|
54
|
+
units: string;
|
|
55
|
+
random: string;
|
|
38
56
|
};
|
|
39
57
|
};
|
|
40
58
|
startup: {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName": "Homebridge Dummy",
|
|
5
5
|
"description": "Dummy devices for Homebridge",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "1.0.0-alpha.
|
|
7
|
+
"version": "1.0.0-alpha.2",
|
|
8
8
|
"homepage": "https://github.com/mpatfield/homebridge-dummy#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"main": "dist/homebridge/index.js",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "rimraf ./dist && tsc && npm run build:html && npm run build:ui",
|
|
23
|
-
"build:html": "
|
|
23
|
+
"build:html": "node --loader ts-node/esm ./scripts/build-html.ts",
|
|
24
24
|
"build:ui": "esbuild src/homebridge-ui/ui.ts --bundle --outfile=dist/homebridge-ui/public/ui.js --minify",
|
|
25
25
|
"lint": "eslint . --max-warnings=0",
|
|
26
26
|
"prepublishOnly": "npm run lint && npm run build"
|
package/.gitattributes
DELETED
package/eslint.config.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
|
|
4
|
-
export default tseslint.config(
|
|
5
|
-
{
|
|
6
|
-
ignores: ['dist/**'],
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
rules: {
|
|
10
|
-
'quotes': ['error', 'single'],
|
|
11
|
-
'indent': ['error', 2, { 'SwitchCase': 0 }],
|
|
12
|
-
'linebreak-style': ['error', 'unix'],
|
|
13
|
-
'semi': ['error', 'always'],
|
|
14
|
-
'comma-dangle': ['error', 'always-multiline'],
|
|
15
|
-
'dot-notation': 'error',
|
|
16
|
-
'eqeqeq': ['error', 'smart'],
|
|
17
|
-
'curly': ['error', 'all'],
|
|
18
|
-
'brace-style': ['error'],
|
|
19
|
-
'prefer-arrow-callback': 'warn',
|
|
20
|
-
'max-len': ['warn', 160],
|
|
21
|
-
'object-curly-spacing': ['error', 'always'],
|
|
22
|
-
'no-use-before-define': 'off',
|
|
23
|
-
'@typescript-eslint/no-use-before-define': ['error', { 'classes': false, 'enums': false }],
|
|
24
|
-
'@typescript-eslint/no-unused-vars': ['error', { 'caughtErrors': 'none' }],
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
languageOptions: {
|
|
29
|
-
ecmaVersion: 2022,
|
|
30
|
-
sourceType: 'module',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
eslint.configs.recommended,
|
|
34
|
-
...tseslint.configs.recommended,
|
|
35
|
-
);
|