@camstack/addon-provider-esphome 0.0.0-stage → 0.1.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 -0
- package/README.md +52 -2
- package/assets/icon.svg +9 -0
- package/dist/addon.js +106946 -0
- package/dist/addon.mjs +106940 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +2 -0
- package/i18n/en.json +31 -0
- package/i18n/it.json +31 -0
- package/package.json +90 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_addon = require("./addon.js");
|
|
3
|
+
exports.ESPHomeProviderAddon = require_addon.ESPHomeProviderAddon;
|
|
4
|
+
exports.EspContainerDevice = require_addon.EspContainerDevice;
|
|
5
|
+
exports.buildConnectionFormSchema = require_addon.buildConnectionFormSchema;
|
|
6
|
+
exports.espConnectionSchema = require_addon.espConnectionSchema;
|
|
7
|
+
exports.espContainerSchema = require_addon.espContainerSchema;
|
|
8
|
+
exports.planBoard = require_addon.planBoard;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ESPHomeProviderAddon, a as espConnectionSchema, i as buildConnectionFormSchema, n as espContainerSchema, r as planBoard, t as EspContainerDevice } from "./addon.mjs";
|
|
2
|
+
export { ESPHomeProviderAddon, EspContainerDevice, buildConnectionFormSchema, espConnectionSchema, espContainerSchema, planBoard };
|
package/i18n/en.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"connection": {
|
|
3
|
+
"s_connection": {
|
|
4
|
+
"title": "Board",
|
|
5
|
+
"host": {
|
|
6
|
+
"label": "Host / IP"
|
|
7
|
+
},
|
|
8
|
+
"port": {
|
|
9
|
+
"label": "API port"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"s_security": {
|
|
13
|
+
"title": "API security",
|
|
14
|
+
"noisePsk": {
|
|
15
|
+
"label": "Encryption key"
|
|
16
|
+
},
|
|
17
|
+
"password": {
|
|
18
|
+
"label": "Legacy API password"
|
|
19
|
+
},
|
|
20
|
+
"description": "The encryption key is the one in the board YAML under api: encryption: key:. Leave both empty for an unencrypted board."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"globalSettings": {
|
|
24
|
+
"s_esp-broker": {
|
|
25
|
+
"title": "ESPHome board",
|
|
26
|
+
"brokerHelp": {
|
|
27
|
+
"label": "Boards are managed separately"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/i18n/it.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"connection": {
|
|
3
|
+
"s_connection": {
|
|
4
|
+
"title": "Scheda",
|
|
5
|
+
"host": {
|
|
6
|
+
"label": "Host / IP"
|
|
7
|
+
},
|
|
8
|
+
"port": {
|
|
9
|
+
"label": "Porta API"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"s_security": {
|
|
13
|
+
"title": "Sicurezza API",
|
|
14
|
+
"noisePsk": {
|
|
15
|
+
"label": "Chiave di cifratura"
|
|
16
|
+
},
|
|
17
|
+
"password": {
|
|
18
|
+
"label": "Password API (legacy)"
|
|
19
|
+
},
|
|
20
|
+
"description": "La chiave di cifratura e quella nello YAML della scheda sotto api: encryption: key:. Lascia entrambi i campi vuoti per una scheda non cifrata."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"globalSettings": {
|
|
24
|
+
"s_esp-broker": {
|
|
25
|
+
"title": "Scheda ESPHome",
|
|
26
|
+
"brokerHelp": {
|
|
27
|
+
"label": "Le schede sono gestite separatamente"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,92 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-esphome",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "ESPHome device-provider addon for CamStack: one broker per board, spoken over the native API (Noise) with esphome-client",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"camstack",
|
|
7
|
+
"addon",
|
|
8
|
+
"camstack-addon",
|
|
9
|
+
"esphome",
|
|
10
|
+
"esp32",
|
|
11
|
+
"esp8266",
|
|
12
|
+
"provider"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/camstack/server.git",
|
|
18
|
+
"directory": "packages/addon-provider-esphome"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://camstack-docs.zentik.app",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/camstack/server/issues"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.mjs",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
|
+
"require": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"camstack": {
|
|
34
|
+
"displayName": "ESPHome Provider",
|
|
35
|
+
"addons": [
|
|
36
|
+
{
|
|
37
|
+
"id": "provider-esphome",
|
|
38
|
+
"category": "providers",
|
|
39
|
+
"name": "ESPHome",
|
|
40
|
+
"version": "0.1.0",
|
|
41
|
+
"description": "Connect to an ESPHome board over its native API and adopt its switches, lights, covers, buttons, sensors, numbers and selects",
|
|
42
|
+
"entry": "./dist/addon.js",
|
|
43
|
+
"icon": "assets/icon.svg",
|
|
44
|
+
"color": "#000000",
|
|
45
|
+
"instanceMode": "multiple",
|
|
46
|
+
"brokerKind": "esphome",
|
|
47
|
+
"execution": {
|
|
48
|
+
"placement": "hub-only"
|
|
49
|
+
},
|
|
50
|
+
"capabilities": [
|
|
51
|
+
{
|
|
52
|
+
"name": "device-provider"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "broker"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "device-adoption"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist",
|
|
66
|
+
"i18n",
|
|
67
|
+
"assets",
|
|
68
|
+
"README.md",
|
|
69
|
+
"CHANGELOG.md"
|
|
70
|
+
],
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "vite build",
|
|
73
|
+
"dev": "vite build --watch",
|
|
74
|
+
"typecheck": "tsc --noEmit -p tsconfig.spec.json",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"publish:npm": "npm publish --access public"
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"esphome-client": "2.0.0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@camstack/types": "*",
|
|
83
|
+
"zod": "^4.3.6"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@camstack/types": "*",
|
|
87
|
+
"typescript": "~6.0.3",
|
|
88
|
+
"vite": "^8.0.11",
|
|
89
|
+
"vitest": "^2.0.0",
|
|
90
|
+
"zod": "^4.3.6"
|
|
91
|
+
}
|
|
92
|
+
}
|