@camstack/addon-provider-homeassistant 1.2.135 → 1.2.136
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-DgXE5vBJ.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 presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-DNi0Khpp.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
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -31504,6 +31504,26 @@ var PtzHomePresetSchema = object({
|
|
|
31504
31504
|
"none"
|
|
31505
31505
|
])
|
|
31506
31506
|
});
|
|
31507
|
+
/**
|
|
31508
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31509
|
+
* after how long.
|
|
31510
|
+
*
|
|
31511
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31512
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31513
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31514
|
+
* can disagree.
|
|
31515
|
+
*
|
|
31516
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31517
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31518
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31519
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31520
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31521
|
+
* return at all.
|
|
31522
|
+
*/
|
|
31523
|
+
var PtzHomeReturnSchema = object({
|
|
31524
|
+
enabled: boolean(),
|
|
31525
|
+
seconds: number().int()
|
|
31526
|
+
});
|
|
31507
31527
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31508
31528
|
deviceId: number(),
|
|
31509
31529
|
presetId: string()
|
|
@@ -31529,8 +31549,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31529
31549
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31530
31550
|
kind: "mutation",
|
|
31531
31551
|
auth: "admin"
|
|
31532
|
-
}), method(object({ deviceId: number() }),
|
|
31552
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31533
31553
|
deviceId: number(),
|
|
31554
|
+
enabled: boolean(),
|
|
31534
31555
|
seconds: number().int().min(0).max(3600)
|
|
31535
31556
|
}), _void(), {
|
|
31536
31557
|
kind: "mutation",
|
|
@@ -40801,7 +40822,7 @@ Object.freeze({
|
|
|
40801
40822
|
addonId: null,
|
|
40802
40823
|
access: "view"
|
|
40803
40824
|
},
|
|
40804
|
-
"ptz.
|
|
40825
|
+
"ptz.getHomeReturn": {
|
|
40805
40826
|
capName: "ptz",
|
|
40806
40827
|
capScope: "device",
|
|
40807
40828
|
addonId: null,
|
|
@@ -40861,7 +40882,7 @@ Object.freeze({
|
|
|
40861
40882
|
addonId: null,
|
|
40862
40883
|
access: "create"
|
|
40863
40884
|
},
|
|
40864
|
-
"ptz.
|
|
40885
|
+
"ptz.setHomeReturn": {
|
|
40865
40886
|
capName: "ptz",
|
|
40866
40887
|
capScope: "device",
|
|
40867
40888
|
addonId: null,
|
|
@@ -44050,7 +44071,7 @@ Object.freeze({
|
|
|
44050
44071
|
form: "single",
|
|
44051
44072
|
optional: false
|
|
44052
44073
|
}],
|
|
44053
|
-
"ptz.
|
|
44074
|
+
"ptz.getHomeReturn": [{
|
|
44054
44075
|
name: "deviceId",
|
|
44055
44076
|
form: "single",
|
|
44056
44077
|
optional: false
|
|
@@ -44100,7 +44121,7 @@ Object.freeze({
|
|
|
44100
44121
|
form: "single",
|
|
44101
44122
|
optional: false
|
|
44102
44123
|
}],
|
|
44103
|
-
"ptz.
|
|
44124
|
+
"ptz.setHomeReturn": [{
|
|
44104
44125
|
name: "deviceId",
|
|
44105
44126
|
form: "single",
|
|
44106
44127
|
optional: false
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-Dk-BdnBf.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -31504,6 +31504,26 @@ var PtzHomePresetSchema = object({
|
|
|
31504
31504
|
"none"
|
|
31505
31505
|
])
|
|
31506
31506
|
});
|
|
31507
|
+
/**
|
|
31508
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31509
|
+
* after how long.
|
|
31510
|
+
*
|
|
31511
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31512
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31513
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31514
|
+
* can disagree.
|
|
31515
|
+
*
|
|
31516
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31517
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31518
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31519
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31520
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31521
|
+
* return at all.
|
|
31522
|
+
*/
|
|
31523
|
+
var PtzHomeReturnSchema = object({
|
|
31524
|
+
enabled: boolean(),
|
|
31525
|
+
seconds: number().int()
|
|
31526
|
+
});
|
|
31507
31527
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31508
31528
|
deviceId: number(),
|
|
31509
31529
|
presetId: string()
|
|
@@ -31529,8 +31549,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31529
31549
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31530
31550
|
kind: "mutation",
|
|
31531
31551
|
auth: "admin"
|
|
31532
|
-
}), method(object({ deviceId: number() }),
|
|
31552
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31533
31553
|
deviceId: number(),
|
|
31554
|
+
enabled: boolean(),
|
|
31534
31555
|
seconds: number().int().min(0).max(3600)
|
|
31535
31556
|
}), _void(), {
|
|
31536
31557
|
kind: "mutation",
|
|
@@ -40801,7 +40822,7 @@ Object.freeze({
|
|
|
40801
40822
|
addonId: null,
|
|
40802
40823
|
access: "view"
|
|
40803
40824
|
},
|
|
40804
|
-
"ptz.
|
|
40825
|
+
"ptz.getHomeReturn": {
|
|
40805
40826
|
capName: "ptz",
|
|
40806
40827
|
capScope: "device",
|
|
40807
40828
|
addonId: null,
|
|
@@ -40861,7 +40882,7 @@ Object.freeze({
|
|
|
40861
40882
|
addonId: null,
|
|
40862
40883
|
access: "create"
|
|
40863
40884
|
},
|
|
40864
|
-
"ptz.
|
|
40885
|
+
"ptz.setHomeReturn": {
|
|
40865
40886
|
capName: "ptz",
|
|
40866
40887
|
capScope: "device",
|
|
40867
40888
|
addonId: null,
|
|
@@ -44050,7 +44071,7 @@ Object.freeze({
|
|
|
44050
44071
|
form: "single",
|
|
44051
44072
|
optional: false
|
|
44052
44073
|
}],
|
|
44053
|
-
"ptz.
|
|
44074
|
+
"ptz.getHomeReturn": [{
|
|
44054
44075
|
name: "deviceId",
|
|
44055
44076
|
form: "single",
|
|
44056
44077
|
optional: false
|
|
@@ -44100,7 +44121,7 @@ Object.freeze({
|
|
|
44100
44121
|
form: "single",
|
|
44101
44122
|
optional: false
|
|
44102
44123
|
}],
|
|
44103
|
-
"ptz.
|
|
44124
|
+
"ptz.setHomeReturn": [{
|
|
44104
44125
|
name: "deviceId",
|
|
44105
44126
|
form: "single",
|
|
44106
44127
|
optional: false
|
|
@@ -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-DgXE5vBJ.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 { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-DNi0Khpp.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|