@camstack/addon-provider-homeassistant 1.2.640 → 1.2.641
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/dist/addon.js +8 -2
- package/dist/addon.mjs +8 -2
- package/dist/{ha-broker-source-0HGmZj7D.js → ha-broker-source-D3_ZXq6l.js} +66769 -65868
- package/dist/{ha-broker-source-FHFpUlgq.mjs → ha-broker-source-vytM8SXk.mjs} +67379 -66490
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.641] - 2026-10-31
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A test notification's sample image now reaches Home Assistant as an absolute public URL
|
|
15
|
+
|
|
10
16
|
## [1.2.640] - 2026-10-30
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ha_broker_source = require("./ha-broker-source-
|
|
2
|
+
const require_ha_broker_source = require("./ha-broker-source-D3_ZXq6l.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-admin-link.ts
|
|
@@ -7565,7 +7565,12 @@ function createHaNotificationOutputProvider(deps) {
|
|
|
7565
7565
|
return deps.listBrokerIds()[0] ?? null;
|
|
7566
7566
|
}
|
|
7567
7567
|
/** Degrade → build → publish. NEVER throws through the cap. */
|
|
7568
|
-
async function dispatch(target,
|
|
7568
|
+
async function dispatch(target, raw) {
|
|
7569
|
+
const notification = deps.readPublicEndpoint === void 0 ? raw : await require_ha_broker_source.resolveAttachmentUrls({
|
|
7570
|
+
notification: raw,
|
|
7571
|
+
readPublicEndpoint: deps.readPublicEndpoint,
|
|
7572
|
+
...logger !== void 0 ? { logger } : {}
|
|
7573
|
+
});
|
|
7569
7574
|
const prepared = require_ha_broker_source.prepareNotification(descriptor.caps, notification);
|
|
7570
7575
|
const service = readService(target.config);
|
|
7571
7576
|
if (!service) return {
|
|
@@ -8518,6 +8523,7 @@ var HaProviderAddon = class HaProviderAddon extends require_ha_broker_source.Bas
|
|
|
8518
8523
|
return manager.sendMessage({ type: "config/device_registry/list" });
|
|
8519
8524
|
},
|
|
8520
8525
|
listBrokerIds: () => this.activeBrokers.map((b) => b.id),
|
|
8526
|
+
readPublicEndpoint: require_ha_broker_source.publicEndpointReaderFrom(this.ctx.api.localNetwork),
|
|
8521
8527
|
logger: this.ctx.logger.child("notification-output")
|
|
8522
8528
|
});
|
|
8523
8529
|
}
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as humiditySensorCapability, $t as
|
|
1
|
+
import { $ as humiditySensorCapability, $t as array, A as brokerCapability, At as temperatureSensorCapability, Bt as DeviceRole, C as alarmPanelCapability, Ct as runningFromVacuumState, D as bestLocationMatch, Dt as smokeCapability, E as batteryCapability, F as carbonMonoxideCapability, Ft as valveCapability, G as deviceAdoptionCapability, Gt as baseUnitOf, H as controlCapability, Ht as errMsg, I as climateControlCapability, It as vibrationCapability, J as eventEmitterCapability, Jt as defineRecordKinds, Kt as createEvent, L as colorCapability, Lt as waterHeaterCapability, M as buildDeviceAdminUrl, Mt as tryConvertUnit, N as buttonCapability, Nt as updateCapability, O as binaryCapability, Ot as switchCapability, P as calendarSourceCapability, Pt as vacuumControlCapability, Q as humidifierCapability, Qt as _enum, R as connectivityCapability, Rt as weatherCapability, S as airQualitySensorCapability, St as runningFromMediaPlayer, T as automationControlCapability, Tt as scriptRunnerCapability, U as coverCapability, V as contactCapability, Vt as DeviceType, W as deviceAdminLinkCapability, Wt as RecordSecretUnavailableError, X as floodCapability, Y as fanControlCapability, Yt as entryBody, Z as gasCapability, _t as publicEndpointReaderFrom, a as BaseDevice, an as record, at as motionCapability, b as accessoriesCapability, cn as unknown, ct as notifierCapability, dt as parseAdminBase, en as boolean, et as imageCapability, ft as powerMeterCapability, ht as pressureSensorCapability, in as object, it as mediaPlayerCapability, j as buildAddonRouteProvider, jt as tryConvertDelta, k as brightnessCapability, kt as tamperCapability, ln as url, lt as numericSensorCapability, mt as presenceCapability, nn as literal, nt as lawnMowerControlCapability, o as BaseDeviceProvider, on as string, ot as normalizeUnit, p as EnumSensorDateTimeFormatSchema, pt as prepareNotification, q as enumSensorCapability, qt as defineEntryKind, rn as number, rt as lockControlCapability, sn as union, st as notificationOutputCapability, t as HA_BROKER_KIND, tn as discriminatedUnion, tt as ingestReading, un as EventCategory, v as RUNNING_STATE_COLD, vt as quantityFromUnit, w as ambientLightSensorCapability, wt as runningStateCapability, x as addonRoutesCapability, xt as runningFromLawnMower, y as TargetSchema, yt as resolveAttachmentUrls, zt as DeviceFeature } from "./ha-broker-source-vytM8SXk.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-admin-link.ts
|
|
@@ -7547,7 +7547,12 @@ function createHaNotificationOutputProvider(deps) {
|
|
|
7547
7547
|
return deps.listBrokerIds()[0] ?? null;
|
|
7548
7548
|
}
|
|
7549
7549
|
/** Degrade → build → publish. NEVER throws through the cap. */
|
|
7550
|
-
async function dispatch(target,
|
|
7550
|
+
async function dispatch(target, raw) {
|
|
7551
|
+
const notification = deps.readPublicEndpoint === void 0 ? raw : await resolveAttachmentUrls({
|
|
7552
|
+
notification: raw,
|
|
7553
|
+
readPublicEndpoint: deps.readPublicEndpoint,
|
|
7554
|
+
...logger !== void 0 ? { logger } : {}
|
|
7555
|
+
});
|
|
7551
7556
|
const prepared = prepareNotification(descriptor.caps, notification);
|
|
7552
7557
|
const service = readService(target.config);
|
|
7553
7558
|
if (!service) return {
|
|
@@ -8500,6 +8505,7 @@ var HaProviderAddon = class HaProviderAddon extends BaseDeviceProvider {
|
|
|
8500
8505
|
return manager.sendMessage({ type: "config/device_registry/list" });
|
|
8501
8506
|
},
|
|
8502
8507
|
listBrokerIds: () => this.activeBrokers.map((b) => b.id),
|
|
8508
|
+
readPublicEndpoint: publicEndpointReaderFrom(this.ctx.api.localNetwork),
|
|
8503
8509
|
logger: this.ctx.logger.child("notification-output")
|
|
8504
8510
|
});
|
|
8505
8511
|
}
|