@camstack/addon-provider-homeassistant 1.2.134 → 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()
|
|
@@ -31526,6 +31546,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31526
31546
|
}), _void(), {
|
|
31527
31547
|
kind: "mutation",
|
|
31528
31548
|
auth: "admin"
|
|
31549
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31550
|
+
kind: "mutation",
|
|
31551
|
+
auth: "admin"
|
|
31552
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31553
|
+
deviceId: number(),
|
|
31554
|
+
enabled: boolean(),
|
|
31555
|
+
seconds: number().int().min(0).max(3600)
|
|
31556
|
+
}), _void(), {
|
|
31557
|
+
kind: "mutation",
|
|
31558
|
+
auth: "admin"
|
|
31529
31559
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31530
31560
|
deviceId: number(),
|
|
31531
31561
|
enabled: boolean()
|
|
@@ -40768,6 +40798,12 @@ Object.freeze({
|
|
|
40768
40798
|
addonId: null,
|
|
40769
40799
|
access: "create"
|
|
40770
40800
|
},
|
|
40801
|
+
"ptz.captureHomeHere": {
|
|
40802
|
+
capName: "ptz",
|
|
40803
|
+
capScope: "device",
|
|
40804
|
+
addonId: null,
|
|
40805
|
+
access: "create"
|
|
40806
|
+
},
|
|
40771
40807
|
"ptz.continuousMove": {
|
|
40772
40808
|
capName: "ptz",
|
|
40773
40809
|
capScope: "device",
|
|
@@ -40786,6 +40822,12 @@ Object.freeze({
|
|
|
40786
40822
|
addonId: null,
|
|
40787
40823
|
access: "view"
|
|
40788
40824
|
},
|
|
40825
|
+
"ptz.getHomeReturn": {
|
|
40826
|
+
capName: "ptz",
|
|
40827
|
+
capScope: "device",
|
|
40828
|
+
addonId: null,
|
|
40829
|
+
access: "view"
|
|
40830
|
+
},
|
|
40789
40831
|
"ptz.getOptions": {
|
|
40790
40832
|
capName: "ptz",
|
|
40791
40833
|
capScope: "device",
|
|
@@ -40840,6 +40882,12 @@ Object.freeze({
|
|
|
40840
40882
|
addonId: null,
|
|
40841
40883
|
access: "create"
|
|
40842
40884
|
},
|
|
40885
|
+
"ptz.setHomeReturn": {
|
|
40886
|
+
capName: "ptz",
|
|
40887
|
+
capScope: "device",
|
|
40888
|
+
addonId: null,
|
|
40889
|
+
access: "create"
|
|
40890
|
+
},
|
|
40843
40891
|
"ptz.stop": {
|
|
40844
40892
|
capName: "ptz",
|
|
40845
40893
|
capScope: "device",
|
|
@@ -44003,6 +44051,11 @@ Object.freeze({
|
|
|
44003
44051
|
form: "single",
|
|
44004
44052
|
optional: false
|
|
44005
44053
|
}],
|
|
44054
|
+
"ptz.captureHomeHere": [{
|
|
44055
|
+
name: "deviceId",
|
|
44056
|
+
form: "single",
|
|
44057
|
+
optional: false
|
|
44058
|
+
}],
|
|
44006
44059
|
"ptz.continuousMove": [{
|
|
44007
44060
|
name: "deviceId",
|
|
44008
44061
|
form: "single",
|
|
@@ -44018,6 +44071,11 @@ Object.freeze({
|
|
|
44018
44071
|
form: "single",
|
|
44019
44072
|
optional: false
|
|
44020
44073
|
}],
|
|
44074
|
+
"ptz.getHomeReturn": [{
|
|
44075
|
+
name: "deviceId",
|
|
44076
|
+
form: "single",
|
|
44077
|
+
optional: false
|
|
44078
|
+
}],
|
|
44021
44079
|
"ptz.getOptions": [{
|
|
44022
44080
|
name: "deviceId",
|
|
44023
44081
|
form: "single",
|
|
@@ -44063,6 +44121,11 @@ Object.freeze({
|
|
|
44063
44121
|
form: "single",
|
|
44064
44122
|
optional: false
|
|
44065
44123
|
}],
|
|
44124
|
+
"ptz.setHomeReturn": [{
|
|
44125
|
+
name: "deviceId",
|
|
44126
|
+
form: "single",
|
|
44127
|
+
optional: false
|
|
44128
|
+
}],
|
|
44066
44129
|
"ptz.stop": [{
|
|
44067
44130
|
name: "deviceId",
|
|
44068
44131
|
form: "single",
|
|
@@ -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()
|
|
@@ -31526,6 +31546,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31526
31546
|
}), _void(), {
|
|
31527
31547
|
kind: "mutation",
|
|
31528
31548
|
auth: "admin"
|
|
31549
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
31550
|
+
kind: "mutation",
|
|
31551
|
+
auth: "admin"
|
|
31552
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31553
|
+
deviceId: number(),
|
|
31554
|
+
enabled: boolean(),
|
|
31555
|
+
seconds: number().int().min(0).max(3600)
|
|
31556
|
+
}), _void(), {
|
|
31557
|
+
kind: "mutation",
|
|
31558
|
+
auth: "admin"
|
|
31529
31559
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
31530
31560
|
deviceId: number(),
|
|
31531
31561
|
enabled: boolean()
|
|
@@ -40768,6 +40798,12 @@ Object.freeze({
|
|
|
40768
40798
|
addonId: null,
|
|
40769
40799
|
access: "create"
|
|
40770
40800
|
},
|
|
40801
|
+
"ptz.captureHomeHere": {
|
|
40802
|
+
capName: "ptz",
|
|
40803
|
+
capScope: "device",
|
|
40804
|
+
addonId: null,
|
|
40805
|
+
access: "create"
|
|
40806
|
+
},
|
|
40771
40807
|
"ptz.continuousMove": {
|
|
40772
40808
|
capName: "ptz",
|
|
40773
40809
|
capScope: "device",
|
|
@@ -40786,6 +40822,12 @@ Object.freeze({
|
|
|
40786
40822
|
addonId: null,
|
|
40787
40823
|
access: "view"
|
|
40788
40824
|
},
|
|
40825
|
+
"ptz.getHomeReturn": {
|
|
40826
|
+
capName: "ptz",
|
|
40827
|
+
capScope: "device",
|
|
40828
|
+
addonId: null,
|
|
40829
|
+
access: "view"
|
|
40830
|
+
},
|
|
40789
40831
|
"ptz.getOptions": {
|
|
40790
40832
|
capName: "ptz",
|
|
40791
40833
|
capScope: "device",
|
|
@@ -40840,6 +40882,12 @@ Object.freeze({
|
|
|
40840
40882
|
addonId: null,
|
|
40841
40883
|
access: "create"
|
|
40842
40884
|
},
|
|
40885
|
+
"ptz.setHomeReturn": {
|
|
40886
|
+
capName: "ptz",
|
|
40887
|
+
capScope: "device",
|
|
40888
|
+
addonId: null,
|
|
40889
|
+
access: "create"
|
|
40890
|
+
},
|
|
40843
40891
|
"ptz.stop": {
|
|
40844
40892
|
capName: "ptz",
|
|
40845
40893
|
capScope: "device",
|
|
@@ -44003,6 +44051,11 @@ Object.freeze({
|
|
|
44003
44051
|
form: "single",
|
|
44004
44052
|
optional: false
|
|
44005
44053
|
}],
|
|
44054
|
+
"ptz.captureHomeHere": [{
|
|
44055
|
+
name: "deviceId",
|
|
44056
|
+
form: "single",
|
|
44057
|
+
optional: false
|
|
44058
|
+
}],
|
|
44006
44059
|
"ptz.continuousMove": [{
|
|
44007
44060
|
name: "deviceId",
|
|
44008
44061
|
form: "single",
|
|
@@ -44018,6 +44071,11 @@ Object.freeze({
|
|
|
44018
44071
|
form: "single",
|
|
44019
44072
|
optional: false
|
|
44020
44073
|
}],
|
|
44074
|
+
"ptz.getHomeReturn": [{
|
|
44075
|
+
name: "deviceId",
|
|
44076
|
+
form: "single",
|
|
44077
|
+
optional: false
|
|
44078
|
+
}],
|
|
44021
44079
|
"ptz.getOptions": [{
|
|
44022
44080
|
name: "deviceId",
|
|
44023
44081
|
form: "single",
|
|
@@ -44063,6 +44121,11 @@ Object.freeze({
|
|
|
44063
44121
|
form: "single",
|
|
44064
44122
|
optional: false
|
|
44065
44123
|
}],
|
|
44124
|
+
"ptz.setHomeReturn": [{
|
|
44125
|
+
name: "deviceId",
|
|
44126
|
+
form: "single",
|
|
44127
|
+
optional: false
|
|
44128
|
+
}],
|
|
44066
44129
|
"ptz.stop": [{
|
|
44067
44130
|
name: "deviceId",
|
|
44068
44131
|
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-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
|
/**
|