@camstack/addon-provider-homeassistant 1.2.31 → 1.2.33
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CkXDV-PV.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-
|
|
1
|
+
import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-BlSbw9vH.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -19695,7 +19695,31 @@ DeviceType.Camera, method(object({
|
|
|
19695
19695
|
lastCapturedAt: number().nullable(),
|
|
19696
19696
|
cacheAgeMs: number().nullable(),
|
|
19697
19697
|
etag: string().nullable()
|
|
19698
|
-
}))), systemMethod(object({
|
|
19698
|
+
}))), systemMethod(object({ deviceId: number() }), object({
|
|
19699
|
+
/** The battery slice as read, or null when the device has none. */
|
|
19700
|
+
battery: object({
|
|
19701
|
+
sleeping: boolean(),
|
|
19702
|
+
lastUpdated: number(),
|
|
19703
|
+
lastContactAt: number().optional()
|
|
19704
|
+
}).nullable(),
|
|
19705
|
+
/** The resolved snapshot state (what the overlay decision used). */
|
|
19706
|
+
state: object({
|
|
19707
|
+
isBattery: boolean(),
|
|
19708
|
+
reason: _enum([
|
|
19709
|
+
"disabled",
|
|
19710
|
+
"sleeping",
|
|
19711
|
+
"unreachable",
|
|
19712
|
+
"waking"
|
|
19713
|
+
]).nullable()
|
|
19714
|
+
}),
|
|
19715
|
+
/** The cached frame behind the next paint. */
|
|
19716
|
+
frame: object({
|
|
19717
|
+
capturedAt: number().nullable(),
|
|
19718
|
+
ageMs: number().nullable()
|
|
19719
|
+
}),
|
|
19720
|
+
/** A wake window is currently open (the Waking overlay's source). */
|
|
19721
|
+
waking: boolean()
|
|
19722
|
+
})), systemMethod(object({
|
|
19699
19723
|
/** The tiles a surface is actually rendering. One entry per (device,
|
|
19700
19724
|
* width) the caller will paint — the width is snapped to the server's
|
|
19701
19725
|
* ladder and becomes part of the link's SIGNED identity. */
|
|
@@ -19734,7 +19758,14 @@ targets: array(object({
|
|
|
19734
19758
|
"sleeping",
|
|
19735
19759
|
"unreachable",
|
|
19736
19760
|
"waking"
|
|
19737
|
-
]).nullable()
|
|
19761
|
+
]).nullable(),
|
|
19762
|
+
/** A battery camera (whatever its current state). An AWAKE battery
|
|
19763
|
+
* camera is deliberately NOT recaptured on the poll cadence — every
|
|
19764
|
+
* capture is a camera hit that would keep it out of sleep — so its
|
|
19765
|
+
* cached frame legitimately ages past the currency ceiling while
|
|
19766
|
+
* nothing is streaming. A surface must keep painting it (a fresh
|
|
19767
|
+
* frame is captured at each wake), not blank to "unavailable". */
|
|
19768
|
+
battery: boolean()
|
|
19738
19769
|
})));
|
|
19739
19770
|
/**
|
|
19740
19771
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -34372,6 +34403,12 @@ Object.freeze({
|
|
|
34372
34403
|
addonId: null,
|
|
34373
34404
|
access: "view"
|
|
34374
34405
|
},
|
|
34406
|
+
"snapshot.getDebugState": {
|
|
34407
|
+
capName: "snapshot",
|
|
34408
|
+
capScope: "device",
|
|
34409
|
+
addonId: null,
|
|
34410
|
+
access: "view"
|
|
34411
|
+
},
|
|
34375
34412
|
"snapshot.getSnapshot": {
|
|
34376
34413
|
capName: "snapshot",
|
|
34377
34414
|
capScope: "device",
|
|
@@ -36969,6 +37006,11 @@ Object.freeze({
|
|
|
36969
37006
|
form: "single",
|
|
36970
37007
|
optional: false
|
|
36971
37008
|
}],
|
|
37009
|
+
"snapshot.getDebugState": [{
|
|
37010
|
+
name: "deviceId",
|
|
37011
|
+
form: "single",
|
|
37012
|
+
optional: false
|
|
37013
|
+
}],
|
|
36972
37014
|
"snapshot.getSnapshot": [{
|
|
36973
37015
|
name: "deviceId",
|
|
36974
37016
|
form: "single",
|
|
@@ -19695,7 +19695,31 @@ DeviceType.Camera, method(object({
|
|
|
19695
19695
|
lastCapturedAt: number().nullable(),
|
|
19696
19696
|
cacheAgeMs: number().nullable(),
|
|
19697
19697
|
etag: string().nullable()
|
|
19698
|
-
}))), systemMethod(object({
|
|
19698
|
+
}))), systemMethod(object({ deviceId: number() }), object({
|
|
19699
|
+
/** The battery slice as read, or null when the device has none. */
|
|
19700
|
+
battery: object({
|
|
19701
|
+
sleeping: boolean(),
|
|
19702
|
+
lastUpdated: number(),
|
|
19703
|
+
lastContactAt: number().optional()
|
|
19704
|
+
}).nullable(),
|
|
19705
|
+
/** The resolved snapshot state (what the overlay decision used). */
|
|
19706
|
+
state: object({
|
|
19707
|
+
isBattery: boolean(),
|
|
19708
|
+
reason: _enum([
|
|
19709
|
+
"disabled",
|
|
19710
|
+
"sleeping",
|
|
19711
|
+
"unreachable",
|
|
19712
|
+
"waking"
|
|
19713
|
+
]).nullable()
|
|
19714
|
+
}),
|
|
19715
|
+
/** The cached frame behind the next paint. */
|
|
19716
|
+
frame: object({
|
|
19717
|
+
capturedAt: number().nullable(),
|
|
19718
|
+
ageMs: number().nullable()
|
|
19719
|
+
}),
|
|
19720
|
+
/** A wake window is currently open (the Waking overlay's source). */
|
|
19721
|
+
waking: boolean()
|
|
19722
|
+
})), systemMethod(object({
|
|
19699
19723
|
/** The tiles a surface is actually rendering. One entry per (device,
|
|
19700
19724
|
* width) the caller will paint — the width is snapped to the server's
|
|
19701
19725
|
* ladder and becomes part of the link's SIGNED identity. */
|
|
@@ -19734,7 +19758,14 @@ targets: array(object({
|
|
|
19734
19758
|
"sleeping",
|
|
19735
19759
|
"unreachable",
|
|
19736
19760
|
"waking"
|
|
19737
|
-
]).nullable()
|
|
19761
|
+
]).nullable(),
|
|
19762
|
+
/** A battery camera (whatever its current state). An AWAKE battery
|
|
19763
|
+
* camera is deliberately NOT recaptured on the poll cadence — every
|
|
19764
|
+
* capture is a camera hit that would keep it out of sleep — so its
|
|
19765
|
+
* cached frame legitimately ages past the currency ceiling while
|
|
19766
|
+
* nothing is streaming. A surface must keep painting it (a fresh
|
|
19767
|
+
* frame is captured at each wake), not blank to "unavailable". */
|
|
19768
|
+
battery: boolean()
|
|
19738
19769
|
})));
|
|
19739
19770
|
/**
|
|
19740
19771
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -34372,6 +34403,12 @@ Object.freeze({
|
|
|
34372
34403
|
addonId: null,
|
|
34373
34404
|
access: "view"
|
|
34374
34405
|
},
|
|
34406
|
+
"snapshot.getDebugState": {
|
|
34407
|
+
capName: "snapshot",
|
|
34408
|
+
capScope: "device",
|
|
34409
|
+
addonId: null,
|
|
34410
|
+
access: "view"
|
|
34411
|
+
},
|
|
34375
34412
|
"snapshot.getSnapshot": {
|
|
34376
34413
|
capName: "snapshot",
|
|
34377
34414
|
capScope: "device",
|
|
@@ -36969,6 +37006,11 @@ Object.freeze({
|
|
|
36969
37006
|
form: "single",
|
|
36970
37007
|
optional: false
|
|
36971
37008
|
}],
|
|
37009
|
+
"snapshot.getDebugState": [{
|
|
37010
|
+
name: "deviceId",
|
|
37011
|
+
form: "single",
|
|
37012
|
+
optional: false
|
|
37013
|
+
}],
|
|
36972
37014
|
"snapshot.getSnapshot": [{
|
|
36973
37015
|
name: "deviceId",
|
|
36974
37016
|
form: "single",
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-CkXDV-PV.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-
|
|
1
|
+
import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-BlSbw9vH.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|