@camstack/addon-provider-homeassistant 1.2.171 → 1.2.173
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/dist/addon.js +47 -9
- package/dist/addon.mjs +47 -9
- package/dist/{dist-DgmndKq0.mjs → dist-CSIrSsu7.mjs} +21859 -1708
- package/dist/{dist-C6CIOXDB.js → dist-DTt9hwTQ.js} +21859 -1708
- package/dist/ha-export/ha-export.addon.js +10 -1
- package/dist/ha-export/ha-export.addon.mjs +10 -1
- package/i18n/en.json +30 -0
- package/i18n/it.json +30 -0
- package/package.json +2 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-DTt9hwTQ.js");
|
|
28
28
|
let node_crypto = require("node:crypto");
|
|
29
29
|
require("node:zlib");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -7970,12 +7970,14 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
7970
7970
|
{
|
|
7971
7971
|
id: "ha-export-brokers",
|
|
7972
7972
|
title: "Home Assistant instances",
|
|
7973
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-brokers.title",
|
|
7973
7974
|
description: brokerFields.length > 0 ? "One switch per Home Assistant broker. An instance that is off receives nothing; the devices exported to it are remembered and resume when it is turned back on." : "No Home Assistant broker is registered yet. Add one under External systems → Brokers and it will appear here.",
|
|
7974
7975
|
columns: 1,
|
|
7975
7976
|
fields: brokerFields.length > 0 ? brokerFields : [{
|
|
7976
7977
|
type: "info",
|
|
7977
7978
|
key: "ha-export:__no-brokers",
|
|
7978
7979
|
label: "No brokers",
|
|
7980
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-brokers.ha-export___no-brokers.label",
|
|
7979
7981
|
content: "Register a Home Assistant broker to enable the export.",
|
|
7980
7982
|
variant: "warning"
|
|
7981
7983
|
}]
|
|
@@ -7983,18 +7985,22 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
7983
7985
|
{
|
|
7984
7986
|
id: "ha-export-transport",
|
|
7985
7987
|
title: "Connection",
|
|
7988
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-transport.title",
|
|
7986
7989
|
columns: 1,
|
|
7987
7990
|
fields: [{
|
|
7988
7991
|
type: "text",
|
|
7989
7992
|
key: "publicBaseUrl",
|
|
7990
7993
|
label: "Hub URL Home Assistant can reach",
|
|
7994
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-transport.publicBaseUrl.label",
|
|
7991
7995
|
description: "Used to build the signed image links Home Assistant fetches. Leave empty to derive one from the network capabilities; a link that cannot be built is never sent.",
|
|
7996
|
+
descriptionKey: "provider-homeassistant:globalSettings.s_ha-export-transport.publicBaseUrl.description",
|
|
7992
7997
|
default: ""
|
|
7993
7998
|
}]
|
|
7994
7999
|
},
|
|
7995
8000
|
{
|
|
7996
8001
|
id: "ha-export-advanced",
|
|
7997
8002
|
title: "Advanced",
|
|
8003
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.title",
|
|
7998
8004
|
style: "accordion",
|
|
7999
8005
|
defaultCollapsed: true,
|
|
8000
8006
|
columns: 1,
|
|
@@ -8002,7 +8008,9 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
8002
8008
|
type: "number",
|
|
8003
8009
|
key: "reconcileIntervalSec",
|
|
8004
8010
|
label: "Reconcile interval (s)",
|
|
8011
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.reconcileIntervalSec.label",
|
|
8005
8012
|
description: "Full re-announce and re-push cadence. Bus events are telemetry and may be dropped; this is the contract.",
|
|
8013
|
+
descriptionKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.reconcileIntervalSec.description",
|
|
8006
8014
|
default: DEFAULT_CONFIG.reconcileIntervalSec
|
|
8007
8015
|
}]
|
|
8008
8016
|
}
|
|
@@ -8040,6 +8048,7 @@ var HaExportAddon = class extends require_dist.BaseAddon {
|
|
|
8040
8048
|
sections: [{
|
|
8041
8049
|
id: "ha-export",
|
|
8042
8050
|
title: "Home Assistant",
|
|
8051
|
+
titleKey: "provider-homeassistant:contribution.s_ha-export.title",
|
|
8043
8052
|
description: enabled.length > 0 ? "Each Home Assistant instance receives only the devices switched on for it." : "No Home Assistant instance is enabled for export. Turn one on in the Home Assistant Export addon settings.",
|
|
8044
8053
|
tab: "export",
|
|
8045
8054
|
columns: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as oauthIntegrationCapability, C as buildAddonRouteProvider, Ft as EventCategory, I as deviceExportCapability, St as nodePin, a as COCO_TO_MACRO, bt as BaseAddon, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, jt as string, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema } from "../dist-
|
|
1
|
+
import { $ as oauthIntegrationCapability, C as buildAddonRouteProvider, Ft as EventCategory, I as deviceExportCapability, St as nodePin, a as COCO_TO_MACRO, bt as BaseAddon, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, jt as string, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema } from "../dist-CSIrSsu7.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
import "node:zlib";
|
|
4
4
|
import "node:fs";
|
|
@@ -7942,12 +7942,14 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
7942
7942
|
{
|
|
7943
7943
|
id: "ha-export-brokers",
|
|
7944
7944
|
title: "Home Assistant instances",
|
|
7945
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-brokers.title",
|
|
7945
7946
|
description: brokerFields.length > 0 ? "One switch per Home Assistant broker. An instance that is off receives nothing; the devices exported to it are remembered and resume when it is turned back on." : "No Home Assistant broker is registered yet. Add one under External systems → Brokers and it will appear here.",
|
|
7946
7947
|
columns: 1,
|
|
7947
7948
|
fields: brokerFields.length > 0 ? brokerFields : [{
|
|
7948
7949
|
type: "info",
|
|
7949
7950
|
key: "ha-export:__no-brokers",
|
|
7950
7951
|
label: "No brokers",
|
|
7952
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-brokers.ha-export___no-brokers.label",
|
|
7951
7953
|
content: "Register a Home Assistant broker to enable the export.",
|
|
7952
7954
|
variant: "warning"
|
|
7953
7955
|
}]
|
|
@@ -7955,18 +7957,22 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
7955
7957
|
{
|
|
7956
7958
|
id: "ha-export-transport",
|
|
7957
7959
|
title: "Connection",
|
|
7960
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-transport.title",
|
|
7958
7961
|
columns: 1,
|
|
7959
7962
|
fields: [{
|
|
7960
7963
|
type: "text",
|
|
7961
7964
|
key: "publicBaseUrl",
|
|
7962
7965
|
label: "Hub URL Home Assistant can reach",
|
|
7966
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-transport.publicBaseUrl.label",
|
|
7963
7967
|
description: "Used to build the signed image links Home Assistant fetches. Leave empty to derive one from the network capabilities; a link that cannot be built is never sent.",
|
|
7968
|
+
descriptionKey: "provider-homeassistant:globalSettings.s_ha-export-transport.publicBaseUrl.description",
|
|
7964
7969
|
default: ""
|
|
7965
7970
|
}]
|
|
7966
7971
|
},
|
|
7967
7972
|
{
|
|
7968
7973
|
id: "ha-export-advanced",
|
|
7969
7974
|
title: "Advanced",
|
|
7975
|
+
titleKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.title",
|
|
7970
7976
|
style: "accordion",
|
|
7971
7977
|
defaultCollapsed: true,
|
|
7972
7978
|
columns: 1,
|
|
@@ -7974,7 +7980,9 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
7974
7980
|
type: "number",
|
|
7975
7981
|
key: "reconcileIntervalSec",
|
|
7976
7982
|
label: "Reconcile interval (s)",
|
|
7983
|
+
labelKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.reconcileIntervalSec.label",
|
|
7977
7984
|
description: "Full re-announce and re-push cadence. Bus events are telemetry and may be dropped; this is the contract.",
|
|
7985
|
+
descriptionKey: "provider-homeassistant:globalSettings.s_ha-export-advanced.reconcileIntervalSec.description",
|
|
7978
7986
|
default: DEFAULT_CONFIG.reconcileIntervalSec
|
|
7979
7987
|
}]
|
|
7980
7988
|
}
|
|
@@ -8012,6 +8020,7 @@ var HaExportAddon = class extends BaseAddon {
|
|
|
8012
8020
|
sections: [{
|
|
8013
8021
|
id: "ha-export",
|
|
8014
8022
|
title: "Home Assistant",
|
|
8023
|
+
titleKey: "provider-homeassistant:contribution.s_ha-export.title",
|
|
8015
8024
|
description: enabled.length > 0 ? "Each Home Assistant instance receives only the devices switched on for it." : "No Home Assistant instance is enabled for export. Turn one on in the Home Assistant Export addon settings.",
|
|
8016
8025
|
tab: "export",
|
|
8017
8026
|
columns: 1,
|
package/i18n/en.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"globalSettings.s_ha-calendars-import.title": "Calendars to import",
|
|
3
|
+
"globalSettings.s_ha-calendars-import.description": "Pick which Home Assistant calendar entities feed System → Calendars. Nothing selected = no calendars imported.",
|
|
4
|
+
"globalSettings.s_ha-calendars-import.calendarIds.label": "Calendars",
|
|
5
|
+
"globalSettings.s_ha-calendars-import.calendarIds.description": "Discovered from connected HA brokers. Select at least one to import; leave empty to import none.",
|
|
6
|
+
"globalSettings.s_ha-broker.title": "Home Assistant broker",
|
|
7
|
+
"globalSettings.s_ha-broker.description": "Home Assistant brokers are managed in Connectivity → Brokers.",
|
|
8
|
+
"globalSettings.s_ha-broker.brokerHelp.label": "Brokers are managed separately",
|
|
9
|
+
"haBrokerSettings.s_ha-broker-credentials.title": "Home Assistant connection",
|
|
10
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.label": "Auth mode",
|
|
11
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.o_long-lived.label": "Long-lived token",
|
|
12
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.o_supervisor.label": "Supervisor (HA add-on)",
|
|
13
|
+
"haBrokerSettings.s_ha-broker-credentials.baseUrl.label": "HA base URL",
|
|
14
|
+
"haBrokerSettings.s_ha-broker-credentials.accessToken.label": "Long-lived access token",
|
|
15
|
+
"haBrokerSettings.s_ha-broker-credentials.supervisorToken.label": "Supervisor token",
|
|
16
|
+
"globalSettings.s_ha-export-brokers.title": "Home Assistant instances",
|
|
17
|
+
"globalSettings.s_ha-export-brokers.ha-export___no-brokers.label": "No brokers",
|
|
18
|
+
"globalSettings.s_ha-export-transport.title": "Connection",
|
|
19
|
+
"globalSettings.s_ha-export-transport.publicBaseUrl.label": "Hub URL Home Assistant can reach",
|
|
20
|
+
"globalSettings.s_ha-export-transport.publicBaseUrl.description": "Used to build the signed image links Home Assistant fetches. Leave empty to derive one from the network capabilities; a link that cannot be built is never sent.",
|
|
21
|
+
"globalSettings.s_ha-export-advanced.title": "Advanced",
|
|
22
|
+
"globalSettings.s_ha-export-advanced.reconcileIntervalSec.label": "Reconcile interval (s)",
|
|
23
|
+
"globalSettings.s_ha-export-advanced.reconcileIntervalSec.description": "Full re-announce and re-push cadence. Bus events are telemetry and may be dropped; this is the contract.",
|
|
24
|
+
"contribution.s_ha-export.title": "Home Assistant",
|
|
25
|
+
"haConfig.s_connection.title": "Home Assistant notify",
|
|
26
|
+
"haConfig.s_connection.service.label": "Notify service",
|
|
27
|
+
"haConfig.s_connection.service.description": "The Home Assistant notify service to call — the part after `notify.` (e.g. `mobile_app_pixel_7`). Use Discover to list available services.",
|
|
28
|
+
"haConfig.s_connection.brokerId.label": "Broker",
|
|
29
|
+
"haConfig.s_connection.brokerId.description": "Optional — the Home Assistant broker id to route through. Leave blank to use the only configured broker."
|
|
30
|
+
}
|
package/i18n/it.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"globalSettings.s_ha-calendars-import.title": "Calendari da importare",
|
|
3
|
+
"globalSettings.s_ha-calendars-import.description": "Scegli quali entità calendario di Home Assistant alimentano Sistema → Calendari. Nessuna selezione = nessun calendario importato.",
|
|
4
|
+
"globalSettings.s_ha-calendars-import.calendarIds.label": "Calendari",
|
|
5
|
+
"globalSettings.s_ha-calendars-import.calendarIds.description": "Rilevati dai broker HA collegati. Seleziona almeno un calendario da importare; lascia vuoto per non importarne nessuno.",
|
|
6
|
+
"globalSettings.s_ha-broker.title": "Broker Home Assistant",
|
|
7
|
+
"globalSettings.s_ha-broker.description": "I broker Home Assistant si gestiscono in Connettività → Broker.",
|
|
8
|
+
"globalSettings.s_ha-broker.brokerHelp.label": "I broker si gestiscono separatamente",
|
|
9
|
+
"haBrokerSettings.s_ha-broker-credentials.title": "Connessione a Home Assistant",
|
|
10
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.label": "Modalità di autenticazione",
|
|
11
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.o_long-lived.label": "Token a lunga durata",
|
|
12
|
+
"haBrokerSettings.s_ha-broker-credentials.authKind.o_supervisor.label": "Supervisor (add-on di HA)",
|
|
13
|
+
"haBrokerSettings.s_ha-broker-credentials.baseUrl.label": "URL base di HA",
|
|
14
|
+
"haBrokerSettings.s_ha-broker-credentials.accessToken.label": "Token di accesso a lunga durata",
|
|
15
|
+
"haBrokerSettings.s_ha-broker-credentials.supervisorToken.label": "Token del Supervisor",
|
|
16
|
+
"globalSettings.s_ha-export-brokers.title": "Istanze di Home Assistant",
|
|
17
|
+
"globalSettings.s_ha-export-brokers.ha-export___no-brokers.label": "Nessun broker",
|
|
18
|
+
"globalSettings.s_ha-export-transport.title": "Connessione",
|
|
19
|
+
"globalSettings.s_ha-export-transport.publicBaseUrl.label": "URL dell'hub raggiungibile da Home Assistant",
|
|
20
|
+
"globalSettings.s_ha-export-transport.publicBaseUrl.description": "Serve a costruire i link firmati alle immagini che Home Assistant scarica. Lascia vuoto per ricavarlo dalle capacità di rete; un link che non si può costruire non viene mai inviato.",
|
|
21
|
+
"globalSettings.s_ha-export-advanced.title": "Avanzate",
|
|
22
|
+
"globalSettings.s_ha-export-advanced.reconcileIntervalSec.label": "Intervallo di riconciliazione (s)",
|
|
23
|
+
"globalSettings.s_ha-export-advanced.reconcileIntervalSec.description": "Frequenza di ripubblicazione completa e di nuovo invio. Gli eventi del bus sono telemetria e possono andare persi: questo è il contratto.",
|
|
24
|
+
"contribution.s_ha-export.title": "Home Assistant",
|
|
25
|
+
"haConfig.s_connection.title": "Notifica Home Assistant",
|
|
26
|
+
"haConfig.s_connection.service.label": "Servizio di notifica",
|
|
27
|
+
"haConfig.s_connection.service.description": "Il servizio di notifica di Home Assistant da chiamare: la parte dopo `notify.` (ad es. `mobile_app_pixel_7`). Usa Rileva per elencare i servizi disponibili.",
|
|
28
|
+
"haConfig.s_connection.brokerId.label": "Broker",
|
|
29
|
+
"haConfig.s_connection.brokerId.description": "Facoltativo: l'id del broker Home Assistant da cui passare. Lascia vuoto per usare l'unico broker configurato."
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-homeassistant",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.173",
|
|
4
4
|
"description": "Home Assistant device provider addon for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
},
|
|
121
121
|
"files": [
|
|
122
122
|
"dist",
|
|
123
|
+
"i18n",
|
|
123
124
|
"assets"
|
|
124
125
|
],
|
|
125
126
|
"scripts": {
|