homebridge-http-advanced-platform 2.0.0-alpha.6

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.
Files changed (56) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +175 -0
  3. package/config.schema.json +449 -0
  4. package/dist/accessory.d.ts +27 -0
  5. package/dist/accessory.js +164 -0
  6. package/dist/accessory.js.map +1 -0
  7. package/dist/actions.d.ts +8 -0
  8. package/dist/actions.js +47 -0
  9. package/dist/actions.js.map +1 -0
  10. package/dist/compatibility.d.ts +3 -0
  11. package/dist/compatibility.js +26 -0
  12. package/dist/compatibility.js.map +1 -0
  13. package/dist/config.d.ts +2 -0
  14. package/dist/config.js +81 -0
  15. package/dist/config.js.map +1 -0
  16. package/dist/coordinator.d.ts +51 -0
  17. package/dist/coordinator.js +145 -0
  18. package/dist/coordinator.js.map +1 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +8 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/mappers.d.ts +3 -0
  23. package/dist/mappers.js +116 -0
  24. package/dist/mappers.js.map +1 -0
  25. package/dist/metadata.d.ts +5 -0
  26. package/dist/metadata.js +8 -0
  27. package/dist/metadata.js.map +1 -0
  28. package/dist/platform.d.ts +18 -0
  29. package/dist/platform.js +129 -0
  30. package/dist/platform.js.map +1 -0
  31. package/dist/runtime.d.ts +54 -0
  32. package/dist/runtime.js +376 -0
  33. package/dist/runtime.js.map +1 -0
  34. package/dist/settings.d.ts +21 -0
  35. package/dist/settings.js +51 -0
  36. package/dist/settings.js.map +1 -0
  37. package/dist/transport.d.ts +25 -0
  38. package/dist/transport.js +139 -0
  39. package/dist/transport.js.map +1 -0
  40. package/dist/types.d.ts +106 -0
  41. package/dist/types.js +10 -0
  42. package/dist/types.js.map +1 -0
  43. package/dist/ui-config.d.ts +27 -0
  44. package/dist/ui-config.js +208 -0
  45. package/dist/ui-config.js.map +1 -0
  46. package/docs/alpha-release-notes.md +19 -0
  47. package/docs/legacy-reference.md +678 -0
  48. package/docs/migration.md +43 -0
  49. package/docs/modernization.md +211 -0
  50. package/docs/performance.md +37 -0
  51. package/docs/service-support.md +47 -0
  52. package/homebridge-ui/public/index.html +74 -0
  53. package/homebridge-ui/public/settings.js +132 -0
  54. package/homebridge-ui/server.js +17 -0
  55. package/package.json +83 -0
  56. package/sample-config.json +39 -0
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "displayName": "Homebridge HTTP Advanced Platform",
3
+ "name": "homebridge-http-advanced-platform",
4
+ "version": "2.0.0-alpha.6",
5
+ "description": "A platform conversion of staromeste's homebridge-http-advanced-accessory, with shared cached HTTP reads and support for existing accessory configurations.",
6
+ "license": "Apache-2.0",
7
+ "keywords": [
8
+ "homebridge-plugin",
9
+ "supports-hap",
10
+ "http",
11
+ "https",
12
+ "advanced",
13
+ "platform",
14
+ "accessory",
15
+ "homekit",
16
+ "cache",
17
+ "homebridge-http-advanced-accessory"
18
+ ],
19
+ "engines": {
20
+ "node": "^22.13.0 || ^24.0.0",
21
+ "homebridge": "^1.11.4 || ^2.4.0"
22
+ },
23
+ "author": "Shane McWhorter",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/shanemcw/homebridge-http-advanced-platform.git"
27
+ },
28
+ "dependencies": {
29
+ "@homebridge/plugin-ui-utils": "^2.2.6",
30
+ "@xmldom/xmldom": "^0.9.12",
31
+ "jsonpath-plus": "^10.4.0",
32
+ "xpath": "0.0.34"
33
+ },
34
+ "homepage": "https://github.com/shanemcw/homebridge-http-advanced-platform#readme",
35
+ "devDependencies": {
36
+ "@eslint/js": "^10.0.1",
37
+ "@types/node": "^22.0.0",
38
+ "eslint": "^10.10.0",
39
+ "homebridge": "^2.4.0",
40
+ "homebridge-v1": "npm:homebridge@^1.11.4",
41
+ "legacy-plugin": "npm:homebridge-http-advanced-accessory@1.3.0",
42
+ "typescript": "^6.0.3",
43
+ "typescript-eslint": "^8.67.0"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc",
47
+ "typecheck": "tsc --noEmit",
48
+ "lint": "eslint src test scripts homebridge-ui --max-warnings=0",
49
+ "test": "npm run build && node --test test/*.test.mjs",
50
+ "benchmark": "npm run build && node scripts/benchmark.mjs",
51
+ "check": "npm run typecheck && npm run lint && npm test",
52
+ "prepack": "npm run build",
53
+ "prepublishOnly": "npm run check && node scripts/release-guard.mjs"
54
+ },
55
+ "type": "module",
56
+ "main": "dist/index.js",
57
+ "types": "dist/index.d.ts",
58
+ "files": [
59
+ "dist",
60
+ "config.schema.json",
61
+ "README.md",
62
+ "LICENSE",
63
+ "docs/migration.md",
64
+ "docs/performance.md",
65
+ "docs/service-support.md",
66
+ "docs/modernization.md",
67
+ "docs/legacy-reference.md",
68
+ "docs/alpha-release-notes.md",
69
+ "sample-config.json",
70
+ "homebridge-ui"
71
+ ],
72
+ "bugs": {
73
+ "url": "https://github.com/shanemcw/homebridge-http-advanced-platform/issues"
74
+ },
75
+ "contributors": [
76
+ "tasict",
77
+ "staromeste",
78
+ "Shane McWhorter"
79
+ ],
80
+ "publishConfig": {
81
+ "tag": "alpha"
82
+ }
83
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "accessories": [
3
+ {
4
+ "accessory": "HttpAdvancedAccessory",
5
+ "name": "Example Legacy Switch",
6
+ "service": "Switch",
7
+ "urls": {
8
+ "getOn": {
9
+ "url": "http://legacy-device.example/state"
10
+ },
11
+ "setOn": {
12
+ "url": "http://legacy-device.example/set/{value}"
13
+ }
14
+ }
15
+ }
16
+ ],
17
+ "platforms": [
18
+ {
19
+ "platform": "HttpAdvanced",
20
+ "name": "HTTP Advanced",
21
+ "enabled": true,
22
+ "devices": [
23
+ {
24
+ "id": "example-platform-switch",
25
+ "name": "Example Platform Switch",
26
+ "service": "Switch",
27
+ "urls": {
28
+ "getOn": {
29
+ "url": "http://platform-device.example/state"
30
+ },
31
+ "setOn": {
32
+ "url": "http://platform-device.example/set/{value}"
33
+ }
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ ]
39
+ }