homebridge-dummy 0.9.2 → 1.0.0-alpha.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 +6 -0
- package/README.md +146 -81
- package/config.schema.json +150 -54
- package/dist/accessory/base.d.ts +23 -0
- package/dist/accessory/base.js +69 -0
- package/dist/accessory/base.js.map +1 -0
- package/dist/accessory/lightbulb.d.ts +15 -0
- package/dist/accessory/lightbulb.js +50 -0
- package/dist/accessory/lightbulb.js.map +1 -0
- package/dist/accessory/onoff.d.ts +16 -0
- package/dist/accessory/onoff.js +56 -0
- package/dist/accessory/onoff.js.map +1 -0
- package/dist/accessory/switch.d.ts +8 -0
- package/dist/accessory/switch.js +10 -0
- package/dist/accessory/switch.js.map +1 -0
- package/dist/homebridge/index.d.ts +3 -5
- package/dist/homebridge/index.js +4 -131
- package/dist/homebridge/index.js.map +1 -1
- package/dist/homebridge/platform.d.ts +15 -0
- package/dist/homebridge/platform.js +97 -0
- package/dist/homebridge/platform.js.map +1 -0
- package/dist/homebridge/settings.d.ts +3 -1
- package/dist/homebridge/settings.js +3 -1
- package/dist/homebridge/settings.js.map +1 -1
- package/dist/homebridge-ui/public/index.html +35 -0
- package/dist/homebridge-ui/public/ui.js +1 -0
- package/dist/homebridge-ui/server.d.ts +1 -0
- package/dist/homebridge-ui/server.js +15 -0
- package/dist/homebridge-ui/server.js.map +1 -0
- package/dist/i18n/en.d.ts +47 -12
- package/dist/i18n/en.js +53 -13
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/i18n.d.ts +47 -12
- package/dist/i18n/template.d.ts +47 -12
- package/dist/i18n/zz.d.ts +47 -12
- package/dist/model/timer.d.ts +12 -0
- package/dist/model/timer.js +64 -0
- package/dist/model/timer.js.map +1 -0
- package/dist/model/types.d.ts +60 -0
- package/dist/model/types.js +13 -0
- package/dist/model/types.js.map +1 -0
- package/dist/tools/configMigration.d.ts +3 -0
- package/dist/tools/configMigration.js +86 -0
- package/dist/tools/configMigration.js.map +1 -0
- package/dist/tools/log.d.ts +14 -0
- package/dist/tools/log.js +25 -0
- package/dist/tools/log.js.map +1 -0
- package/dist/tools/storage.d.ts +4 -2
- package/dist/tools/storage.js +7 -4
- package/dist/tools/storage.js.map +1 -1
- package/dist/tools/validation.d.ts +3 -0
- package/dist/tools/validation.js +13 -0
- package/dist/tools/validation.js.map +1 -0
- package/package.json +33 -24
- package/src/homebridge-ui/public/index.html +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/tools/validation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAI1C,8DAA8D;AAC9D,MAAM,UAAU,MAAM,CAAC,GAAQ,EAAE,MAAc,EAAE,UAAsB,EAAE,GAAG,IAAmB;IAC7F,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAK,UAAsC,CAAC,GAAa,CAAC,KAAK,SAAS,EAAE,CAAC;YACzE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAC5E,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-dummy",
|
|
3
|
+
"platform": "HomebridgeDummy",
|
|
3
4
|
"displayName": "Homebridge Dummy",
|
|
4
|
-
"
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "mpatfield"
|
|
7
|
-
},
|
|
8
|
-
"description": "Dummy switches for Homebridge",
|
|
9
|
-
"homepage": "https://github.com/mpatfield/homebridge-dummy#readme",
|
|
5
|
+
"description": "Dummy devices for Homebridge",
|
|
10
6
|
"type": "module",
|
|
7
|
+
"version": "1.0.0-alpha.1",
|
|
8
|
+
"homepage": "https://github.com/mpatfield/homebridge-dummy#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/mpatfield/homebridge-dummy.git"
|
|
12
|
+
},
|
|
13
|
+
"funding": {
|
|
14
|
+
"type": "github",
|
|
15
|
+
"url": "https://github.com/sponsors/mpatfield"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/mpatfield/homebridge-dummy/issues"
|
|
19
|
+
},
|
|
11
20
|
"main": "dist/homebridge/index.js",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "rimraf ./dist && tsc && npm run build:html && npm run build:ui",
|
|
23
|
+
"build:html": "mkdir ./dist/homebridge-ui/public && cp -r ./src/homebridge-ui/public/* ./dist/homebridge-ui/public/",
|
|
24
|
+
"build:ui": "esbuild src/homebridge-ui/ui.ts --bundle --outfile=dist/homebridge-ui/public/ui.js --minify",
|
|
25
|
+
"lint": "eslint . --max-warnings=0",
|
|
26
|
+
"prepublishOnly": "npm run lint && npm run build"
|
|
27
|
+
},
|
|
12
28
|
"keywords": [
|
|
13
29
|
"homebridge",
|
|
14
30
|
"homebridge-plugin",
|
|
@@ -17,27 +33,12 @@
|
|
|
17
33
|
"hoobs-plugin",
|
|
18
34
|
"homekit"
|
|
19
35
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "rimraf ./dist && tsc",
|
|
22
|
-
"lint": "eslint . --max-warnings=0",
|
|
23
|
-
"prepublishOnly": "npm run lint && npm run build"
|
|
24
|
-
},
|
|
25
36
|
"engines": {
|
|
26
37
|
"homebridge": "^1.8.0 || ^2.0.0-beta.0",
|
|
27
|
-
"node": "^18.20.4 || ^20.
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/mpatfield/homebridge-dummy.git"
|
|
32
|
-
},
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/mpatfield/homebridge-dummy/issues"
|
|
35
|
-
},
|
|
36
|
-
"funding": {
|
|
37
|
-
"type": "github",
|
|
38
|
-
"url": "https://github.com/sponsors/mpatfield"
|
|
38
|
+
"node": "^18.20.4 || ^20.18.0 || ^22.10.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@homebridge/plugin-ui-utils": "^2.0.2",
|
|
41
42
|
"homebridge-lib": "^7.1.4",
|
|
42
43
|
"lodash.merge": "^4.6.2",
|
|
43
44
|
"node-persist": "^4.0.4"
|
|
@@ -45,11 +46,19 @@
|
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/lodash.merge": "^4.6.9",
|
|
47
48
|
"@types/node-persist": "^3.1.8",
|
|
49
|
+
"esbuild": "^0.25.5",
|
|
48
50
|
"eslint": "^9.27.0",
|
|
49
51
|
"homebridge": "^2.0.0-beta.0",
|
|
50
52
|
"rimraf": "^6.0.1",
|
|
51
53
|
"ts-node": "^10.9.2",
|
|
52
|
-
"typescript-eslint": "^8.
|
|
54
|
+
"typescript-eslint": "^8.35.1"
|
|
55
|
+
},
|
|
56
|
+
"homebridge": {
|
|
57
|
+
"platform": "HomebridgeDummy",
|
|
58
|
+
"name": "homebridge-dummy"
|
|
59
|
+
},
|
|
60
|
+
"author": {
|
|
61
|
+
"name": "mpatfield"
|
|
53
62
|
},
|
|
54
63
|
"license": "Apache-2.0"
|
|
55
64
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!-- <p class="text-center">
|
|
2
|
+
<img
|
|
3
|
+
src="https://github.com/mpatfield/homebridge-dummy/blob/latest/img/banner.png?raw=true"
|
|
4
|
+
alt="Homebridge Dummy"
|
|
5
|
+
style="width: 60%;"
|
|
6
|
+
/>
|
|
7
|
+
</p> -->
|
|
8
|
+
|
|
9
|
+
<div id="support" class="text-center" style="display: none;">
|
|
10
|
+
<p i18n="support" i18n_replace="github"></p>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div id="intro" class="text-center" style="display: none;">
|
|
14
|
+
<p class="lead" i18n="thankYou" i18n_replace="dummy"></p></br>
|
|
15
|
+
<p i18n="migrate"></p></br>
|
|
16
|
+
<button type="button" class="btn btn-primary" id="showSettings" i18n="no"></button>
|
|
17
|
+
<button type="button" class="btn btn-primary" id="showMigration" i18n="yes"></button>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div id="migration" class="text-center" style="display: none;">
|
|
21
|
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Warning.svg/156px-Warning.svg.png"/>
|
|
22
|
+
</br></br>
|
|
23
|
+
<p class="lead" i18n="migrationDetails1"></p>
|
|
24
|
+
<p class="lead" i18n="migrationDetails2" i18n_replace="dummy"></p>
|
|
25
|
+
</br>
|
|
26
|
+
<p i18n="migrationDetails3" i18n_replace="dummy"></p>
|
|
27
|
+
<p i18n="migrationDetails4"></p>
|
|
28
|
+
</br>
|
|
29
|
+
<button type="button" class="btn btn-primary" id="skipMigration" i18n="no"></button>
|
|
30
|
+
<button type="button" class="btn btn-primary" id="doMigration" i18n="yes"></button>
|
|
31
|
+
</br></br></br>
|
|
32
|
+
<em><p i18n="migrationDetails5" i18n_replace="migration"></p></em></br>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<script src="ui.js?v1.0.0-alpha.1"></script>
|