@camstack/addon-provider-homeassistant 1.2.31 → 1.2.32
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-BxZFHIBC.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-BMrkrIHs.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. */
|
|
@@ -34372,6 +34396,12 @@ Object.freeze({
|
|
|
34372
34396
|
addonId: null,
|
|
34373
34397
|
access: "view"
|
|
34374
34398
|
},
|
|
34399
|
+
"snapshot.getDebugState": {
|
|
34400
|
+
capName: "snapshot",
|
|
34401
|
+
capScope: "device",
|
|
34402
|
+
addonId: null,
|
|
34403
|
+
access: "view"
|
|
34404
|
+
},
|
|
34375
34405
|
"snapshot.getSnapshot": {
|
|
34376
34406
|
capName: "snapshot",
|
|
34377
34407
|
capScope: "device",
|
|
@@ -36969,6 +36999,11 @@ Object.freeze({
|
|
|
36969
36999
|
form: "single",
|
|
36970
37000
|
optional: false
|
|
36971
37001
|
}],
|
|
37002
|
+
"snapshot.getDebugState": [{
|
|
37003
|
+
name: "deviceId",
|
|
37004
|
+
form: "single",
|
|
37005
|
+
optional: false
|
|
37006
|
+
}],
|
|
36972
37007
|
"snapshot.getSnapshot": [{
|
|
36973
37008
|
name: "deviceId",
|
|
36974
37009
|
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. */
|
|
@@ -34372,6 +34396,12 @@ Object.freeze({
|
|
|
34372
34396
|
addonId: null,
|
|
34373
34397
|
access: "view"
|
|
34374
34398
|
},
|
|
34399
|
+
"snapshot.getDebugState": {
|
|
34400
|
+
capName: "snapshot",
|
|
34401
|
+
capScope: "device",
|
|
34402
|
+
addonId: null,
|
|
34403
|
+
access: "view"
|
|
34404
|
+
},
|
|
34375
34405
|
"snapshot.getSnapshot": {
|
|
34376
34406
|
capName: "snapshot",
|
|
34377
34407
|
capScope: "device",
|
|
@@ -36969,6 +36999,11 @@ Object.freeze({
|
|
|
36969
36999
|
form: "single",
|
|
36970
37000
|
optional: false
|
|
36971
37001
|
}],
|
|
37002
|
+
"snapshot.getDebugState": [{
|
|
37003
|
+
name: "deviceId",
|
|
37004
|
+
form: "single",
|
|
37005
|
+
optional: false
|
|
37006
|
+
}],
|
|
36972
37007
|
"snapshot.getSnapshot": [{
|
|
36973
37008
|
name: "deviceId",
|
|
36974
37009
|
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-BxZFHIBC.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-BMrkrIHs.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|