@camstack/addon-provider-enpal 0.1.1 → 0.1.3
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 +2 -0
- package/README.md +50 -16
- package/dist/addon.js +928 -554
- package/dist/addon.mjs +916 -547
- package/dist/index.js +13 -8
- package/dist/index.mjs +2 -2
- package/i18n/en.json +0 -1
- package/i18n/it.json +0 -1
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_addon = require("./addon.js");
|
|
3
|
+
exports.ENPAL_EQUIPMENT = require_addon.ENPAL_EQUIPMENT;
|
|
3
4
|
exports.ENPAL_SPECS = require_addon.ENPAL_SPECS;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
5
|
+
exports.ENPAL_SYSTEM = require_addon.ENPAL_SYSTEM;
|
|
6
|
+
exports.EnpalClientRegistry = require_addon.EnpalClientRegistry;
|
|
7
|
+
exports.EnpalConnectionResolver = require_addon.EnpalConnectionResolver;
|
|
8
|
+
exports.EnpalEquipmentDevice = require_addon.EnpalEquipmentDevice;
|
|
6
9
|
exports.EnpalError = require_addon.EnpalError;
|
|
7
10
|
exports.EnpalIntegrationManager = require_addon.EnpalIntegrationManager;
|
|
8
11
|
exports.EnpalProviderAddon = require_addon.EnpalProviderAddon;
|
|
9
12
|
exports.EnpalSensorDevice = require_addon.EnpalSensorDevice;
|
|
10
13
|
exports.LifetimeCounterGuard = require_addon.LifetimeCounterGuard;
|
|
14
|
+
exports.accessoryChildSpecs = require_addon.accessoryChildSpecs;
|
|
11
15
|
exports.availableSpecs = require_addon.availableSpecs;
|
|
12
|
-
exports.buildCandidates = require_addon.buildCandidates;
|
|
13
16
|
exports.buildConnectionFormSchema = require_addon.buildConnectionFormSchema;
|
|
17
|
+
exports.buildEnpalAdoptionProvider = require_addon.buildEnpalAdoptionProvider;
|
|
18
|
+
exports.buildEnpalCandidates = require_addon.buildEnpalCandidates;
|
|
14
19
|
exports.capsOfSpec = require_addon.capsOfSpec;
|
|
15
20
|
exports.computeSlices = require_addon.computeSlices;
|
|
16
|
-
exports.
|
|
17
|
-
exports.enpalBoxes = require_addon.enpalBoxes;
|
|
21
|
+
exports.connectionFromSettings = require_addon.connectionFromSettings;
|
|
18
22
|
exports.enpalConnectionSchema = require_addon.enpalConnectionSchema;
|
|
23
|
+
exports.enpalConnections = require_addon.enpalConnections;
|
|
24
|
+
exports.enpalEquipmentSchema = require_addon.enpalEquipmentSchema;
|
|
19
25
|
exports.enpalSensorSchema = require_addon.enpalSensorSchema;
|
|
26
|
+
exports.findEquipment = require_addon.findEquipment;
|
|
20
27
|
exports.findSpec = require_addon.findSpec;
|
|
21
|
-
exports.parseSpecNativeId = require_addon.parseSpecNativeId;
|
|
22
28
|
exports.readConnection = require_addon.readConnection;
|
|
23
29
|
exports.readEnpalSnapshot = require_addon.readEnpalSnapshot;
|
|
30
|
+
exports.sameConnection = require_addon.sameConnection;
|
|
24
31
|
exports.settingsToConnection = require_addon.settingsToConnection;
|
|
25
|
-
exports.slugifyHost = require_addon.slugifyHost;
|
|
26
|
-
exports.specNativeId = require_addon.specNativeId;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { ENPAL_SPECS,
|
|
1
|
+
import { C as buildConnectionFormSchema, D as sameConnection, E as readConnection, EnpalProviderAddon, O as settingsToConnection, S as ENPAL_SYSTEM, T as enpalConnectionSchema, _ as ENPAL_SPECS, a as buildEnpalAdoptionProvider, b as computeSlices, c as ENPAL_EQUIPMENT, d as findEquipment, f as EnpalSensorDevice, g as LifetimeCounterGuard, h as enpalConnections, i as readEnpalSnapshot, l as accessoryChildSpecs, m as EnpalConnectionResolver, n as EnpalIntegrationManager, o as buildEnpalCandidates, p as enpalSensorSchema, r as EnpalError, s as EnpalEquipmentDevice, t as EnpalClientRegistry, u as enpalEquipmentSchema, v as availableSpecs, w as connectionFromSettings, x as findSpec, y as capsOfSpec } from "./addon.mjs";
|
|
2
|
+
export { ENPAL_EQUIPMENT, ENPAL_SPECS, ENPAL_SYSTEM, EnpalClientRegistry, EnpalConnectionResolver, EnpalEquipmentDevice, EnpalError, EnpalIntegrationManager, EnpalProviderAddon, EnpalSensorDevice, LifetimeCounterGuard, accessoryChildSpecs, availableSpecs, buildConnectionFormSchema, buildEnpalAdoptionProvider, buildEnpalCandidates, capsOfSpec, computeSlices, connectionFromSettings, enpalConnectionSchema, enpalConnections, enpalEquipmentSchema, enpalSensorSchema, findEquipment, findSpec, readConnection, readEnpalSnapshot, sameConnection, settingsToConnection };
|
package/i18n/en.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connection.s_identity.title": "Box",
|
|
3
|
-
"connection.s_identity.name.label": "Name",
|
|
4
3
|
"connection.s_identity.host.label": "Box host / IP",
|
|
5
4
|
"connection.s_source.title": "Data source",
|
|
6
5
|
"connection.s_source.description": "InfluxDB needs the access token Enpal support issues (ask in the Enpal app chat). Without it the box device page is used.",
|
package/i18n/it.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connection.s_identity.title": "Box",
|
|
3
|
-
"connection.s_identity.name.label": "Nome",
|
|
4
3
|
"connection.s_identity.host.label": "Host / IP del box",
|
|
5
4
|
"connection.s_source.title": "Origine dei dati",
|
|
6
5
|
"connection.s_source.description": "InfluxDB richiede il token di accesso rilasciato dal supporto Enpal (chiedilo nella chat dell'app Enpal). Senza token si usa la pagina del dispositivo.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-enpal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Enpal solar-box device-provider addon for CamStack — PV, battery, grid, house and heat-pump readings from the box's local InfluxDB (device page as fallback)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -39,18 +39,21 @@
|
|
|
39
39
|
"category": "providers",
|
|
40
40
|
"name": "Enpal",
|
|
41
41
|
"version": "0.1.0",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Add an Enpal solar box as an integration (InfluxDB, device page as fallback) and adopt its equipment: photovoltaic, battery, grid, house and heat pump",
|
|
43
43
|
"entry": "./dist/addon.js",
|
|
44
44
|
"icon": "assets/icon.svg",
|
|
45
45
|
"color": "#f5a623",
|
|
46
46
|
"instanceMode": "multiple",
|
|
47
|
-
"mode": "
|
|
47
|
+
"mode": "account",
|
|
48
48
|
"execution": {
|
|
49
49
|
"placement": "hub-only"
|
|
50
50
|
},
|
|
51
51
|
"capabilities": [
|
|
52
52
|
{
|
|
53
53
|
"name": "device-provider"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "device-adoption"
|
|
54
57
|
}
|
|
55
58
|
]
|
|
56
59
|
}
|