@camstack/addon-provider-hikvision 1.2.166 → 1.2.168
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 +255 -141
- package/dist/addon.mjs +255 -141
- package/i18n/en.json +15 -46
- package/i18n/it.json +15 -46
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -34,7 +34,7 @@ let node_os = require("node:os");
|
|
|
34
34
|
let node_net = require("node:net");
|
|
35
35
|
let node_http = require("node:http");
|
|
36
36
|
let node_https = require("node:https");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-BfJwUd2S.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -351,6 +351,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
351
351
|
*/
|
|
352
352
|
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
353
353
|
/**
|
|
354
|
+
* A camera's motion source has fired constantly with no subject for an hour
|
|
355
|
+
* (motion duty or session count over the bar, zero detections) — it is not
|
|
356
|
+
* blind, its motion zones or sensitivity want tuning (D907). Paired with
|
|
357
|
+
* {@link PipelineMotionCalm}.
|
|
358
|
+
*/
|
|
359
|
+
EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
|
|
360
|
+
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
361
|
+
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
362
|
+
/**
|
|
354
363
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
355
364
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
356
365
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -722,6 +731,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
722
731
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
723
732
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
724
733
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
734
|
+
/**
|
|
735
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
736
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
737
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
738
|
+
*/
|
|
739
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
740
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
741
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
725
742
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
726
743
|
/**
|
|
727
744
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5449,7 +5466,7 @@ var ZodIssueCode = {
|
|
|
5449
5466
|
var ZodFirstPartyTypeKind;
|
|
5450
5467
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5451
5468
|
//#endregion
|
|
5452
|
-
//#region ../types/dist/sleep-
|
|
5469
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5453
5470
|
/**
|
|
5454
5471
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5455
5472
|
* window to float samples (D455).
|
|
@@ -7978,7 +7995,7 @@ var EntryDescriptorSchema = object({
|
|
|
7978
7995
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7979
7996
|
fields: record(string(), unknown())
|
|
7980
7997
|
}).strict();
|
|
7981
|
-
/** What crosses the wire
|
|
7998
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7982
7999
|
var RecordKindDeclarationSchema = object({
|
|
7983
8000
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7984
8001
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7997,14 +8014,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7997
8014
|
secretPaths: array(string().min(1)).default([]),
|
|
7998
8015
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7999
8016
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8000
|
-
/**
|
|
8001
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8002
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8003
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8004
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8005
|
-
* removal still sends it. Never set it.
|
|
8006
|
-
*/
|
|
8007
|
-
adoptsFrom: string().min(1).optional(),
|
|
8008
8017
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8009
8018
|
transactFamily: string().min(1).optional(),
|
|
8010
8019
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12999,17 +13008,6 @@ object({
|
|
|
12999
13008
|
createdAt: number(),
|
|
13000
13009
|
updatedAt: number()
|
|
13001
13010
|
});
|
|
13002
|
-
object({
|
|
13003
|
-
id: string(),
|
|
13004
|
-
label: string(),
|
|
13005
|
-
isAdmin: boolean().default(false),
|
|
13006
|
-
allowedProviders: AllowedProviderSchema,
|
|
13007
|
-
allowedDevices: AllowedDevicesSchema,
|
|
13008
|
-
tokenHash: string(),
|
|
13009
|
-
tokenPrefix: string(),
|
|
13010
|
-
createdAt: number(),
|
|
13011
|
-
lastUsedAt: number().optional()
|
|
13012
|
-
});
|
|
13013
13011
|
object({
|
|
13014
13012
|
id: string(),
|
|
13015
13013
|
userId: string(),
|
|
@@ -16991,16 +16989,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16991
16989
|
var DeclareKindResultSchema = object({
|
|
16992
16990
|
kindId: number().int(),
|
|
16993
16991
|
state: RecordKindStateSchema,
|
|
16994
|
-
createdIndexes: array(string())
|
|
16995
|
-
/**
|
|
16996
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16997
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16998
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16999
|
-
*/
|
|
17000
|
-
adoptionPending: _null()
|
|
16992
|
+
createdIndexes: array(string())
|
|
17001
16993
|
});
|
|
17002
16994
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
17003
16995
|
var SecretRefsList = array(string());
|
|
16996
|
+
/**
|
|
16997
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
16998
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
16999
|
+
*/
|
|
17000
|
+
var RecordTransactOpSchema = discriminatedUnion("op", [
|
|
17001
|
+
object({
|
|
17002
|
+
op: literal("put"),
|
|
17003
|
+
kind: RecordKindNameSchema,
|
|
17004
|
+
record: RecordInputSchema,
|
|
17005
|
+
ifRev: number().int().min(0).optional()
|
|
17006
|
+
}),
|
|
17007
|
+
object({
|
|
17008
|
+
op: literal("patch"),
|
|
17009
|
+
kind: RecordKindNameSchema,
|
|
17010
|
+
id: RecordIdSchema,
|
|
17011
|
+
data: RecordBodySchema,
|
|
17012
|
+
at: number().int().nullable().optional(),
|
|
17013
|
+
expiresAt: number().int().nullable().optional(),
|
|
17014
|
+
ifRev: number().int().min(1).optional()
|
|
17015
|
+
}),
|
|
17016
|
+
object({
|
|
17017
|
+
op: literal("delete"),
|
|
17018
|
+
kind: RecordKindNameSchema,
|
|
17019
|
+
id: RecordIdSchema
|
|
17020
|
+
})
|
|
17021
|
+
]);
|
|
17004
17022
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
17005
17023
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
17006
17024
|
kind: "mutation",
|
|
@@ -17107,6 +17125,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
17107
17125
|
}), {
|
|
17108
17126
|
kind: "mutation",
|
|
17109
17127
|
auth: "admin"
|
|
17128
|
+
}), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
|
|
17129
|
+
results: array(object({
|
|
17130
|
+
rev: number().int().nullable(),
|
|
17131
|
+
deleted: boolean()
|
|
17132
|
+
})),
|
|
17133
|
+
releasedRefs: SecretRefsList,
|
|
17134
|
+
secretRefs: SecretRefsList
|
|
17135
|
+
}), {
|
|
17136
|
+
kind: "mutation",
|
|
17137
|
+
auth: "admin"
|
|
17110
17138
|
}), method(object({
|
|
17111
17139
|
deviceId: number().int(),
|
|
17112
17140
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42833,9 +42861,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42833
42861
|
"node-updating",
|
|
42834
42862
|
"node-inference-unavailable",
|
|
42835
42863
|
"detection-blind",
|
|
42864
|
+
"motion-noisy",
|
|
42865
|
+
"motion-calm",
|
|
42836
42866
|
"recording-stalled",
|
|
42837
42867
|
"recording-healthy",
|
|
42838
42868
|
"recording-degraded",
|
|
42869
|
+
"device-attention-required",
|
|
42870
|
+
"device-attention-resolved",
|
|
42839
42871
|
"storage-location-low",
|
|
42840
42872
|
"storage-location-critical",
|
|
42841
42873
|
"storage-location-ok",
|
|
@@ -42859,6 +42891,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42859
42891
|
"alert-critical",
|
|
42860
42892
|
"alert-error",
|
|
42861
42893
|
"alert-critical-resolved",
|
|
42894
|
+
"rule-broken",
|
|
42895
|
+
"rule-repaired",
|
|
42862
42896
|
"camera-online",
|
|
42863
42897
|
"camera-offline",
|
|
42864
42898
|
"camera-disabled",
|
|
@@ -56679,6 +56713,16 @@ var DishwasherStatusSchema = object({
|
|
|
56679
56713
|
powerState: string().nullable(),
|
|
56680
56714
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56681
56715
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56716
|
+
/**
|
|
56717
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56718
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
56719
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
56720
|
+
*/
|
|
56721
|
+
filterCleaningDue: boolean().nullable(),
|
|
56722
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
56723
|
+
machineCareDue: boolean().nullable(),
|
|
56724
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
56725
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
56682
56726
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56683
56727
|
halfLoad: boolean().nullable(),
|
|
56684
56728
|
hygienePlus: boolean().nullable(),
|
|
@@ -65890,16 +65934,6 @@ var UpdateUserInputSchema = object({
|
|
|
65890
65934
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65891
65935
|
scopes: array(TokenScopeSchema).optional()
|
|
65892
65936
|
});
|
|
65893
|
-
var ApiKeySummarySchema = object({
|
|
65894
|
-
id: string(),
|
|
65895
|
-
label: string(),
|
|
65896
|
-
isAdmin: boolean().default(false),
|
|
65897
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
65898
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65899
|
-
tokenPrefix: string(),
|
|
65900
|
-
createdAt: number(),
|
|
65901
|
-
lastUsedAt: number().optional()
|
|
65902
|
-
});
|
|
65903
65937
|
var OauthSessionSummarySchema = object({
|
|
65904
65938
|
id: string(),
|
|
65905
65939
|
userId: string(),
|
|
@@ -65921,8 +65955,7 @@ var TotpStatusSchema = object({
|
|
|
65921
65955
|
confirmedAt: number().nullable()
|
|
65922
65956
|
});
|
|
65923
65957
|
/**
|
|
65924
|
-
* user-management — singleton capability for user accounts
|
|
65925
|
-
* legacy API-key rows.
|
|
65958
|
+
* user-management — singleton capability for user accounts.
|
|
65926
65959
|
*
|
|
65927
65960
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
65928
65961
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -65978,10 +66011,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65978
66011
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
65979
66012
|
kind: "mutation",
|
|
65980
66013
|
access: "view"
|
|
65981
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65982
|
-
kind: "mutation",
|
|
65983
|
-
auth: "admin",
|
|
65984
|
-
access: "delete"
|
|
65985
66014
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65986
66015
|
kind: "mutation",
|
|
65987
66016
|
auth: "admin",
|
|
@@ -75456,6 +75485,12 @@ Object.freeze({
|
|
|
75456
75485
|
addonId: null,
|
|
75457
75486
|
access: "view"
|
|
75458
75487
|
},
|
|
75488
|
+
"records.transact": {
|
|
75489
|
+
capName: "records",
|
|
75490
|
+
capScope: "system",
|
|
75491
|
+
addonId: null,
|
|
75492
|
+
access: "create"
|
|
75493
|
+
},
|
|
75459
75494
|
"sceneMonitor.captureReference": {
|
|
75460
75495
|
capName: "scene-monitor",
|
|
75461
75496
|
capScope: "device",
|
|
@@ -76788,12 +76823,6 @@ Object.freeze({
|
|
|
76788
76823
|
addonId: null,
|
|
76789
76824
|
access: "view"
|
|
76790
76825
|
},
|
|
76791
|
-
"userManagement.listApiKeys": {
|
|
76792
|
-
capName: "user-management",
|
|
76793
|
-
capScope: "system",
|
|
76794
|
-
addonId: null,
|
|
76795
|
-
access: "view"
|
|
76796
|
-
},
|
|
76797
76826
|
"userManagement.listExternalIdentities": {
|
|
76798
76827
|
capName: "user-management",
|
|
76799
76828
|
capScope: "system",
|
|
@@ -76848,12 +76877,6 @@ Object.freeze({
|
|
|
76848
76877
|
addonId: null,
|
|
76849
76878
|
access: "create"
|
|
76850
76879
|
},
|
|
76851
|
-
"userManagement.revokeApiKey": {
|
|
76852
|
-
capName: "user-management",
|
|
76853
|
-
capScope: "system",
|
|
76854
|
-
addonId: null,
|
|
76855
|
-
access: "delete"
|
|
76856
|
-
},
|
|
76857
76880
|
"userManagement.revokeOauthSession": {
|
|
76858
76881
|
capName: "user-management",
|
|
76859
76882
|
capScope: "system",
|
|
@@ -80436,9 +80459,13 @@ new Map(Object.entries({
|
|
|
80436
80459
|
"stream-online": "device-events",
|
|
80437
80460
|
"stream-offline": "device-events",
|
|
80438
80461
|
"detection-blind": "device-events",
|
|
80462
|
+
"motion-noisy": "device-events",
|
|
80463
|
+
"motion-calm": "device-events",
|
|
80439
80464
|
"recording-stalled": "device-events",
|
|
80440
80465
|
"recording-healthy": "device-events",
|
|
80441
80466
|
"recording-degraded": "device-events",
|
|
80467
|
+
"device-attention-required": "device-events",
|
|
80468
|
+
"device-attention-resolved": "device-events",
|
|
80442
80469
|
"node-online": "system",
|
|
80443
80470
|
"node-offline": "system",
|
|
80444
80471
|
"node-restarting": "system",
|
|
@@ -80455,6 +80482,8 @@ new Map(Object.entries({
|
|
|
80455
80482
|
"alert-critical": "system",
|
|
80456
80483
|
"alert-error": "system",
|
|
80457
80484
|
"alert-critical-resolved": "system",
|
|
80485
|
+
"rule-broken": "system",
|
|
80486
|
+
"rule-repaired": "system",
|
|
80458
80487
|
"storage-location-low": "system",
|
|
80459
80488
|
"storage-location-critical": "system",
|
|
80460
80489
|
"storage-location-ok": "system",
|
|
@@ -80519,6 +80548,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80519
80548
|
label: "Detecting nothing",
|
|
80520
80549
|
kinds: ["detection-blind"]
|
|
80521
80550
|
},
|
|
80551
|
+
{
|
|
80552
|
+
id: "motion-noise",
|
|
80553
|
+
family: "device-events",
|
|
80554
|
+
label: "Motion without a subject",
|
|
80555
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
80556
|
+
},
|
|
80522
80557
|
{
|
|
80523
80558
|
id: "recording",
|
|
80524
80559
|
family: "device-events",
|
|
@@ -80529,6 +80564,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80529
80564
|
"recording-degraded"
|
|
80530
80565
|
]
|
|
80531
80566
|
},
|
|
80567
|
+
{
|
|
80568
|
+
id: "device-attention",
|
|
80569
|
+
family: "device-events",
|
|
80570
|
+
label: "Needs attention",
|
|
80571
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
80572
|
+
},
|
|
80532
80573
|
{
|
|
80533
80574
|
id: "nodes",
|
|
80534
80575
|
family: "system",
|
|
@@ -80589,6 +80630,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80589
80630
|
"alert-critical-resolved"
|
|
80590
80631
|
]
|
|
80591
80632
|
},
|
|
80633
|
+
{
|
|
80634
|
+
id: "rule-health",
|
|
80635
|
+
family: "system",
|
|
80636
|
+
label: "Notification rules",
|
|
80637
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80638
|
+
},
|
|
80592
80639
|
{
|
|
80593
80640
|
id: "alarm",
|
|
80594
80641
|
family: "alarm",
|
|
@@ -80662,6 +80709,7 @@ var ALERT_EPISODE = [
|
|
|
80662
80709
|
"alert-error",
|
|
80663
80710
|
"alert-critical-resolved"
|
|
80664
80711
|
];
|
|
80712
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
80665
80713
|
var UPDATES = [
|
|
80666
80714
|
"addon-update-available",
|
|
80667
80715
|
"server-update-available",
|
|
@@ -80691,9 +80739,12 @@ var DEVICE_EVENTS = [
|
|
|
80691
80739
|
"stream-online",
|
|
80692
80740
|
"stream-offline",
|
|
80693
80741
|
"detection-blind",
|
|
80742
|
+
"motion-noisy",
|
|
80743
|
+
"motion-calm",
|
|
80694
80744
|
"recording-stalled",
|
|
80695
80745
|
"recording-healthy",
|
|
80696
80746
|
"recording-degraded",
|
|
80747
|
+
...DEVICE_ATTENTION,
|
|
80697
80748
|
...ALARM
|
|
80698
80749
|
];
|
|
80699
80750
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -80861,7 +80912,13 @@ var STATE_SUMMARY_VARS = [
|
|
|
80861
80912
|
[...RULE_TEXT],
|
|
80862
80913
|
[...RULE_TEXT],
|
|
80863
80914
|
[...RULE_TEXT],
|
|
80864
|
-
|
|
80915
|
+
[...RULE_TEXT],
|
|
80916
|
+
[...RULE_TEXT],
|
|
80917
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80918
|
+
[...RULE_TEXT],
|
|
80919
|
+
[...RULE_TEXT],
|
|
80920
|
+
[...RULE_TEXT],
|
|
80921
|
+
[...RULE_TEXT],
|
|
80865
80922
|
[...RULE_TEXT],
|
|
80866
80923
|
[...RULE_TEXT],
|
|
80867
80924
|
[...RULE_TEXT],
|
|
@@ -80879,11 +80936,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
80879
80936
|
[...RULE_TEXT],
|
|
80880
80937
|
[...RULE_TEXT],
|
|
80881
80938
|
[...RULE_TEXT],
|
|
80939
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80882
80940
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80941
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80883
80942
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80884
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80885
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80886
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80943
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80887
80944
|
[...RULE_TEXT],
|
|
80888
80945
|
[...RULE_TEXT],
|
|
80889
80946
|
[...RULE_TEXT],
|
|
@@ -80904,6 +80961,125 @@ var STATE_SUMMARY_VARS = [
|
|
|
80904
80961
|
[...RULE_TEXT],
|
|
80905
80962
|
...STATE_SUMMARY_VARS
|
|
80906
80963
|
];
|
|
80964
|
+
new Map([
|
|
80965
|
+
{
|
|
80966
|
+
id: "device-connectivity",
|
|
80967
|
+
family: "device-events",
|
|
80968
|
+
label: "Device connectivity (offline / back online)",
|
|
80969
|
+
bad: ["device-offline"],
|
|
80970
|
+
recovery: ["device-online"],
|
|
80971
|
+
snapshotLabel: "Devices offline now",
|
|
80972
|
+
snapshotSection: "device-state"
|
|
80973
|
+
},
|
|
80974
|
+
{
|
|
80975
|
+
id: "device-switch",
|
|
80976
|
+
family: "device-events",
|
|
80977
|
+
label: "Device switched off / back on",
|
|
80978
|
+
bad: ["device-disabled"],
|
|
80979
|
+
recovery: ["device-enabled"],
|
|
80980
|
+
snapshotLabel: "Devices switched off now",
|
|
80981
|
+
snapshotSection: "device-state"
|
|
80982
|
+
},
|
|
80983
|
+
{
|
|
80984
|
+
id: "stream-connectivity",
|
|
80985
|
+
family: "device-events",
|
|
80986
|
+
label: "Stream connectivity (offline / back online)",
|
|
80987
|
+
bad: ["stream-offline"],
|
|
80988
|
+
recovery: ["stream-online"],
|
|
80989
|
+
snapshotLabel: "Streams offline now",
|
|
80990
|
+
snapshotSection: "streams"
|
|
80991
|
+
},
|
|
80992
|
+
{
|
|
80993
|
+
id: "battery",
|
|
80994
|
+
family: "device-events",
|
|
80995
|
+
label: "Battery (low / back to normal)",
|
|
80996
|
+
bad: ["device-battery-low"],
|
|
80997
|
+
recovery: ["device-battery-normal"],
|
|
80998
|
+
snapshotLabel: "Batteries low now",
|
|
80999
|
+
snapshotSection: "battery"
|
|
81000
|
+
},
|
|
81001
|
+
{
|
|
81002
|
+
id: "consumables",
|
|
81003
|
+
family: "device-events",
|
|
81004
|
+
label: "Consumables (low / replaced)",
|
|
81005
|
+
bad: ["device-consumable-low"],
|
|
81006
|
+
recovery: ["device-consumable-normal"],
|
|
81007
|
+
snapshotLabel: "Consumables low now",
|
|
81008
|
+
snapshotSection: "consumables"
|
|
81009
|
+
},
|
|
81010
|
+
{
|
|
81011
|
+
id: "tanks",
|
|
81012
|
+
family: "device-events",
|
|
81013
|
+
label: "Tanks (low or full / back to normal)",
|
|
81014
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
81015
|
+
recovery: ["device-tank-normal"],
|
|
81016
|
+
snapshotLabel: "Tanks low or full now",
|
|
81017
|
+
snapshotSection: "tanks"
|
|
81018
|
+
},
|
|
81019
|
+
{
|
|
81020
|
+
id: "motion-noise",
|
|
81021
|
+
family: "device-events",
|
|
81022
|
+
label: "Motion without a subject (constant / calm again)",
|
|
81023
|
+
bad: ["motion-noisy"],
|
|
81024
|
+
recovery: ["motion-calm"],
|
|
81025
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
81026
|
+
snapshotSection: null
|
|
81027
|
+
},
|
|
81028
|
+
{
|
|
81029
|
+
id: "recording-health",
|
|
81030
|
+
family: "device-events",
|
|
81031
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
81032
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
81033
|
+
recovery: ["recording-healthy"],
|
|
81034
|
+
snapshotLabel: "Recordings stalled now",
|
|
81035
|
+
snapshotSection: null
|
|
81036
|
+
},
|
|
81037
|
+
{
|
|
81038
|
+
id: "device-attention",
|
|
81039
|
+
family: "device-events",
|
|
81040
|
+
label: "Device needs attention (raised / resolved)",
|
|
81041
|
+
bad: ["device-attention-required"],
|
|
81042
|
+
recovery: ["device-attention-resolved"],
|
|
81043
|
+
snapshotLabel: "Devices needing attention now",
|
|
81044
|
+
snapshotSection: null
|
|
81045
|
+
},
|
|
81046
|
+
{
|
|
81047
|
+
id: "node-connectivity",
|
|
81048
|
+
family: "system",
|
|
81049
|
+
label: "Node connectivity (offline / back online)",
|
|
81050
|
+
bad: ["node-offline"],
|
|
81051
|
+
recovery: ["node-online"],
|
|
81052
|
+
snapshotLabel: "Nodes offline now",
|
|
81053
|
+
snapshotSection: "nodes"
|
|
81054
|
+
},
|
|
81055
|
+
{
|
|
81056
|
+
id: "storage-space",
|
|
81057
|
+
family: "system",
|
|
81058
|
+
label: "Storage space (low or critical / ok again)",
|
|
81059
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
81060
|
+
recovery: ["storage-location-ok"],
|
|
81061
|
+
snapshotLabel: "Storage locations low now",
|
|
81062
|
+
snapshotSection: null
|
|
81063
|
+
},
|
|
81064
|
+
{
|
|
81065
|
+
id: "critical-alerts",
|
|
81066
|
+
family: "system",
|
|
81067
|
+
label: "Critical alerts (raised / resolved)",
|
|
81068
|
+
bad: ["alert-critical"],
|
|
81069
|
+
recovery: ["alert-critical-resolved"],
|
|
81070
|
+
snapshotLabel: "Critical alerts open now",
|
|
81071
|
+
snapshotSection: null
|
|
81072
|
+
},
|
|
81073
|
+
{
|
|
81074
|
+
id: "rule-health",
|
|
81075
|
+
family: "system",
|
|
81076
|
+
label: "Rule health (broken / repaired)",
|
|
81077
|
+
bad: ["rule-broken"],
|
|
81078
|
+
recovery: ["rule-repaired"],
|
|
81079
|
+
snapshotLabel: "Notification rules broken now",
|
|
81080
|
+
snapshotSection: null
|
|
81081
|
+
}
|
|
81082
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80907
81083
|
new Set([
|
|
80908
81084
|
"disarmed",
|
|
80909
81085
|
"armed_home",
|
|
@@ -86322,16 +86498,12 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86322
86498
|
id: "light",
|
|
86323
86499
|
title: "Supplemental Light",
|
|
86324
86500
|
titleKey: "provider-hikvision:schema.s_light.title",
|
|
86325
|
-
description: "Mode + default brightness used by the switch and brightness caps. The mode list is what the camera advertised at probe time.",
|
|
86326
|
-
descriptionKey: "provider-hikvision:schema.s_light.description",
|
|
86327
86501
|
columns: 2,
|
|
86328
86502
|
fields: [modeOptions.length > 0 ? {
|
|
86329
86503
|
type: "select",
|
|
86330
86504
|
key: "mode",
|
|
86331
86505
|
label: "Mode (on)",
|
|
86332
86506
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86333
|
-
description: "Sent in `<supplementLightMode>` when switching on. Default picked at probe time.",
|
|
86334
|
-
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86335
86507
|
default: "colorVuWhiteLight",
|
|
86336
86508
|
options: modeOptions
|
|
86337
86509
|
} : {
|
|
@@ -86339,7 +86511,7 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86339
86511
|
key: "mode",
|
|
86340
86512
|
label: "Mode (on)",
|
|
86341
86513
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86342
|
-
description: "
|
|
86514
|
+
description: "Type the mode string the camera expects (e.g. `colorVuWhiteLight`).",
|
|
86343
86515
|
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86344
86516
|
default: "colorVuWhiteLight"
|
|
86345
86517
|
}, {
|
|
@@ -86347,8 +86519,6 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86347
86519
|
key: "defaultBrightness",
|
|
86348
86520
|
label: "Default brightness",
|
|
86349
86521
|
labelKey: "provider-hikvision:schema.s_light.defaultBrightness.label",
|
|
86350
|
-
description: "Brightness 0..100 applied on switch-on; the operator can override via the brightness cap, but a fresh restart starts here.",
|
|
86351
|
-
descriptionKey: "provider-hikvision:schema.s_light.defaultBrightness.description",
|
|
86352
86522
|
default: 100,
|
|
86353
86523
|
min: 0,
|
|
86354
86524
|
max: 100,
|
|
@@ -86558,7 +86728,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86558
86728
|
id: "siren",
|
|
86559
86729
|
title: "Siren / Alarm Output",
|
|
86560
86730
|
titleKey: "provider-hikvision:schema.s_siren.title",
|
|
86561
|
-
description: "
|
|
86731
|
+
description: "The siren tone is set in the camera-side Linkage Method; this only fires the input.",
|
|
86562
86732
|
descriptionKey: "provider-hikvision:schema.s_siren.description",
|
|
86563
86733
|
columns: 2,
|
|
86564
86734
|
fields: [{
|
|
@@ -86566,7 +86736,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86566
86736
|
key: "port",
|
|
86567
86737
|
label: "Alarm input port",
|
|
86568
86738
|
labelKey: "provider-hikvision:schema.s_siren.port.label",
|
|
86569
|
-
description: `
|
|
86739
|
+
description: `Change only if the siren is wired to an input other than 1. ${probed.length > 0 ? `Detected ports: ${probed.join(", ")}.` : "No probe data (single-input camera)."}`,
|
|
86570
86740
|
default: 1,
|
|
86571
86741
|
min: 1,
|
|
86572
86742
|
max: 32,
|
|
@@ -86576,7 +86746,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86576
86746
|
key: "pulseDurationMs",
|
|
86577
86747
|
label: "Auto-release after (ms)",
|
|
86578
86748
|
labelKey: "provider-hikvision:schema.s_siren.pulseDurationMs.label",
|
|
86579
|
-
description: "
|
|
86749
|
+
description: "Auto-off delay in ms; 0 = manual release.",
|
|
86580
86750
|
descriptionKey: "provider-hikvision:schema.s_siren.pulseDurationMs.description",
|
|
86581
86751
|
default: 5e3,
|
|
86582
86752
|
min: 0,
|
|
@@ -93739,8 +93909,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93739
93909
|
tab: "general",
|
|
93740
93910
|
title: "Connection",
|
|
93741
93911
|
titleKey: "provider-hikvision:schema.s_connection.title",
|
|
93742
|
-
description: "ISAPI HTTP(S) endpoint + RTSP transport + Digest credentials.",
|
|
93743
|
-
descriptionKey: "provider-hikvision:schema.s_connection.description",
|
|
93744
93912
|
columns: 2,
|
|
93745
93913
|
fields: [
|
|
93746
93914
|
{
|
|
@@ -93807,16 +93975,12 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93807
93975
|
tab: "motion",
|
|
93808
93976
|
title: "On-camera motion (VMD)",
|
|
93809
93977
|
titleKey: "provider-hikvision:schema.s_motion.title",
|
|
93810
|
-
description: "On-camera VMD (Video Motion Detection). Hikvision firmware advertises sensitivity in 20-unit increments (0/20/40/60/80/100); values are clamped on push. Disabling stops the camera from emitting motion frames on the alarm stream.",
|
|
93811
|
-
descriptionKey: "provider-hikvision:schema.s_motion.description",
|
|
93812
93978
|
columns: 2,
|
|
93813
93979
|
fields: [{
|
|
93814
93980
|
type: "boolean",
|
|
93815
93981
|
key: "motionEnabled",
|
|
93816
93982
|
label: "Motion detection",
|
|
93817
93983
|
labelKey: "provider-hikvision:schema.s_motion.motionEnabled.label",
|
|
93818
|
-
description: "Master switch for on-camera VMD.",
|
|
93819
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionEnabled.description",
|
|
93820
93984
|
default: true,
|
|
93821
93985
|
style: "switch",
|
|
93822
93986
|
span: 2
|
|
@@ -93825,8 +93989,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93825
93989
|
key: "motionSensitivity",
|
|
93826
93990
|
label: "Sensitivity",
|
|
93827
93991
|
labelKey: "provider-hikvision:schema.s_motion.motionSensitivity.label",
|
|
93828
|
-
description: "Higher = triggers on smaller motion. Restricted to firmware-advertised 20-unit increments — slider snaps to 0/20/40/60/80/100.",
|
|
93829
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionSensitivity.description",
|
|
93830
93992
|
min: 0,
|
|
93831
93993
|
max: 100,
|
|
93832
93994
|
step: 20,
|
|
@@ -93843,8 +94005,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93843
94005
|
tab: "image",
|
|
93844
94006
|
title: "Image",
|
|
93845
94007
|
titleKey: "provider-hikvision:schema.s_image.title",
|
|
93846
|
-
description: "Color levels (brightness/contrast/saturation/sharpness 0..100), WDR (high-dynamic range), IR-cut filter day/night switch. Pushed per-resource to `/ISAPI/Image/channels/1/{color,WDR,IrcutFilter}`.",
|
|
93847
|
-
descriptionKey: "provider-hikvision:schema.s_image.description",
|
|
93848
94008
|
columns: 2,
|
|
93849
94009
|
fields: [
|
|
93850
94010
|
{
|
|
@@ -93900,8 +94060,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93900
94060
|
key: "imageWdrEnabled",
|
|
93901
94061
|
label: "WDR",
|
|
93902
94062
|
labelKey: "provider-hikvision:schema.s_image.imageWdrEnabled.label",
|
|
93903
|
-
description: "Wide Dynamic Range — balances scenes with bright + dark areas (e.g. backlit doorways). Costs a bit of frame rate / detail.",
|
|
93904
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrEnabled.description",
|
|
93905
94063
|
default: snap.wdrEnabled ?? false,
|
|
93906
94064
|
style: "switch",
|
|
93907
94065
|
span: 2
|
|
@@ -93911,8 +94069,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93911
94069
|
key: "imageWdrLevel",
|
|
93912
94070
|
label: "WDR level",
|
|
93913
94071
|
labelKey: "provider-hikvision:schema.s_image.imageWdrLevel.label",
|
|
93914
|
-
description: "Higher = more aggressive HDR fusion; can introduce halos in extreme scenes.",
|
|
93915
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrLevel.description",
|
|
93916
94072
|
min: 0,
|
|
93917
94073
|
max: 100,
|
|
93918
94074
|
step: 10,
|
|
@@ -93930,7 +94086,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93930
94086
|
key: "imageIrcutMode",
|
|
93931
94087
|
label: "Day/Night",
|
|
93932
94088
|
labelKey: "provider-hikvision:schema.s_image.imageIrcutMode.label",
|
|
93933
|
-
description: "
|
|
94089
|
+
description: "`schedule` uses the schedule configured on the camera.",
|
|
93934
94090
|
descriptionKey: "provider-hikvision:schema.s_image.imageIrcutMode.description",
|
|
93935
94091
|
default: snap.ircutMode ?? "auto",
|
|
93936
94092
|
options: [
|
|
@@ -93967,8 +94123,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93967
94123
|
tab: "network",
|
|
93968
94124
|
title: "Time / NTP",
|
|
93969
94125
|
titleKey: "provider-hikvision:schema.s_time-ntp.title",
|
|
93970
|
-
description: "Network time synchronisation. Pushed to `/ISAPI/System/time` (sync mode — the camera timezone is preserved verbatim) and `/ISAPI/System/time/ntpServers/1` (server / port / interval).",
|
|
93971
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.description",
|
|
93972
94126
|
columns: 2,
|
|
93973
94127
|
fields: [
|
|
93974
94128
|
{
|
|
@@ -93976,8 +94130,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93976
94130
|
key: "timeZoneId",
|
|
93977
94131
|
label: "Timezone",
|
|
93978
94132
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.label",
|
|
93979
|
-
description: "Camera timezone. Selecting a zone pushes its POSIX-style `<timeZone>` string (standard UTC offset + DST rule) to `/ISAPI/System/time` — DST is handled automatically by the chosen zone, so summer/winter clocks track correctly without a separate toggle.",
|
|
93980
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.description",
|
|
93981
94133
|
span: 2
|
|
93982
94134
|
},
|
|
93983
94135
|
{
|
|
@@ -93985,8 +94137,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93985
94137
|
key: "timeMode",
|
|
93986
94138
|
label: "Time sync",
|
|
93987
94139
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeMode.label",
|
|
93988
|
-
description: "`NTP` syncs the clock from the configured server; `manual` keeps the operator-set clock.",
|
|
93989
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeMode.description",
|
|
93990
94140
|
default: snap.timeMode === "manual" ? "manual" : "NTP",
|
|
93991
94141
|
options: [{
|
|
93992
94142
|
value: "NTP",
|
|
@@ -94004,8 +94154,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94004
94154
|
key: "ntpServer",
|
|
94005
94155
|
label: "NTP server",
|
|
94006
94156
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpServer.label",
|
|
94007
|
-
description: "IP address or hostname of the NTP server.",
|
|
94008
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpServer.description",
|
|
94009
94157
|
default: snap.ntpServer ?? "pool.ntp.org",
|
|
94010
94158
|
placeholder: "pool.ntp.org",
|
|
94011
94159
|
span: 2,
|
|
@@ -94033,8 +94181,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94033
94181
|
key: "ntpSyncInterval",
|
|
94034
94182
|
label: "Sync interval (min)",
|
|
94035
94183
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.label",
|
|
94036
|
-
description: "How often the camera re-syncs from the NTP server.",
|
|
94037
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.description",
|
|
94038
94184
|
default: snap.syncInterval ?? 1440,
|
|
94039
94185
|
min: 1,
|
|
94040
94186
|
max: 10080,
|
|
@@ -94049,8 +94195,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94049
94195
|
key: "manualTime",
|
|
94050
94196
|
label: "Manual date & time",
|
|
94051
94197
|
labelKey: "provider-hikvision:schema.s_time-ntp.manualTime.label",
|
|
94052
|
-
description: "Set the camera clock explicitly. Applies on save.",
|
|
94053
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.manualTime.description",
|
|
94054
94198
|
default: hikvisionLocalTimeToDatetimeLocal(snap.localTime) ?? this.config.get("manualTime") ?? "",
|
|
94055
94199
|
span: 2,
|
|
94056
94200
|
showWhen: {
|
|
@@ -94084,7 +94228,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94084
94228
|
id: "light",
|
|
94085
94229
|
tab: "light",
|
|
94086
94230
|
title: hasWhite ? "Supplemental light" : "IR illuminator",
|
|
94087
|
-
description: hasWhite ? "
|
|
94231
|
+
description: hasWhite ? "The Switch / Light child device toggles the light on and off." : "Auto lets the camera drive brightness from its light sensor; manual pins it to the slider.",
|
|
94088
94232
|
columns: 2,
|
|
94089
94233
|
fields: [
|
|
94090
94234
|
{
|
|
@@ -94092,8 +94236,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94092
94236
|
key: "lightMode",
|
|
94093
94237
|
label: "Mode",
|
|
94094
94238
|
labelKey: "provider-hikvision:schema.s_light.lightMode.label",
|
|
94095
|
-
description: "Active illumination mode. `close` turns the supplemental light off entirely; `irLight` enables the IR LEDs; white-light modes (when available) drive visible illumination.",
|
|
94096
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightMode.description",
|
|
94097
94239
|
default: snap.mode ?? cache.lightDefaultMode ?? "irLight",
|
|
94098
94240
|
options: modes.map((m) => ({
|
|
94099
94241
|
value: m,
|
|
@@ -94105,8 +94247,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94105
94247
|
key: "lightBrightnessRegulator",
|
|
94106
94248
|
label: "Brightness regulator",
|
|
94107
94249
|
labelKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.label",
|
|
94108
|
-
description: "`auto` lets the camera adjust brightness off its built-in light sensor; `manual` pins it to the operator-set value below.",
|
|
94109
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.description",
|
|
94110
94250
|
default: snap.brightnessRegulatorMode ?? "auto",
|
|
94111
94251
|
options: [{
|
|
94112
94252
|
value: "auto",
|
|
@@ -94123,7 +94263,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94123
94263
|
key: "lightIrBrightness",
|
|
94124
94264
|
label: "IR brightness",
|
|
94125
94265
|
labelKey: "provider-hikvision:schema.s_light.lightIrBrightness.label",
|
|
94126
|
-
description: "
|
|
94266
|
+
description: "Only honoured when mode is `irLight` and the regulator is `manual`.",
|
|
94127
94267
|
descriptionKey: "provider-hikvision:schema.s_light.lightIrBrightness.description",
|
|
94128
94268
|
min: 0,
|
|
94129
94269
|
max: 100,
|
|
@@ -94138,7 +94278,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94138
94278
|
key: "lightWhiteBrightness",
|
|
94139
94279
|
label: "White-light brightness",
|
|
94140
94280
|
labelKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.label",
|
|
94141
|
-
description: "
|
|
94281
|
+
description: "Only honoured in a white-light mode.",
|
|
94142
94282
|
descriptionKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.description",
|
|
94143
94283
|
min: 0,
|
|
94144
94284
|
max: 100,
|
|
@@ -94156,7 +94296,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94156
94296
|
tab: "audio",
|
|
94157
94297
|
title: "Two-way audio",
|
|
94158
94298
|
titleKey: "provider-hikvision:schema.s_two-way-audio-mode.title",
|
|
94159
|
-
description: "
|
|
94299
|
+
description: "`auto` probes for a channel; use `isapi` if the probe fails but the camera accepts audio, `off` to disable.",
|
|
94160
94300
|
descriptionKey: "provider-hikvision:schema.s_two-way-audio-mode.description",
|
|
94161
94301
|
columns: 1,
|
|
94162
94302
|
fields: [{
|
|
@@ -94193,8 +94333,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94193
94333
|
tab: "audio",
|
|
94194
94334
|
title: "Two-way audio channel",
|
|
94195
94335
|
titleKey: "provider-hikvision:schema.s_audio.title",
|
|
94196
|
-
description: "Codec, speaker volume, noise reduction, and input source for the camera's `/ISAPI/System/TwoWayAudio/channels/1` endpoint. Settings here drive both the camera-side speaker output and the intercom playback path.",
|
|
94197
|
-
descriptionKey: "provider-hikvision:schema.s_audio.description",
|
|
94198
94336
|
columns: 2,
|
|
94199
94337
|
fields: [
|
|
94200
94338
|
{
|
|
@@ -94202,7 +94340,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94202
94340
|
key: "audioCompressionType",
|
|
94203
94341
|
label: "Audio codec",
|
|
94204
94342
|
labelKey: "provider-hikvision:schema.s_audio.audioCompressionType.label",
|
|
94205
|
-
description: "
|
|
94343
|
+
description: "G.711 µ-law has the broadest compatibility.",
|
|
94206
94344
|
descriptionKey: "provider-hikvision:schema.s_audio.audioCompressionType.description",
|
|
94207
94345
|
default: "",
|
|
94208
94346
|
options: [{
|
|
@@ -94219,8 +94357,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94219
94357
|
key: "audioInputType",
|
|
94220
94358
|
label: "Input source",
|
|
94221
94359
|
labelKey: "provider-hikvision:schema.s_audio.audioInputType.label",
|
|
94222
|
-
description: "Mic-in (built-in microphone) vs Line-in (rear-panel TRS). Cameras without a line input only advertise MicIn here.",
|
|
94223
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioInputType.description",
|
|
94224
94360
|
default: "",
|
|
94225
94361
|
options: [{
|
|
94226
94362
|
value: "",
|
|
@@ -94236,8 +94372,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94236
94372
|
key: "audioSpeakerVolume",
|
|
94237
94373
|
label: "Speaker volume",
|
|
94238
94374
|
labelKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.label",
|
|
94239
|
-
description: "Camera output volume. Affects intercom playback and any audio-alarm sounds the linkage fires.",
|
|
94240
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.description",
|
|
94241
94375
|
min: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMin ?? 0,
|
|
94242
94376
|
max: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMax ?? 100,
|
|
94243
94377
|
step: 5,
|
|
@@ -94251,8 +94385,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94251
94385
|
key: "audioNoiseReduction",
|
|
94252
94386
|
label: "Noise reduction",
|
|
94253
94387
|
labelKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.label",
|
|
94254
|
-
description: "Camera-side noise filter. Helpful in noisy environments; can clip soft speech if too aggressive.",
|
|
94255
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.description",
|
|
94256
94388
|
default: true,
|
|
94257
94389
|
style: "switch",
|
|
94258
94390
|
span: 2
|
|
@@ -94264,7 +94396,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94264
94396
|
tab: "streaming",
|
|
94265
94397
|
title: "Snapshot source",
|
|
94266
94398
|
titleKey: "provider-hikvision:schema.s_snapshot-source.title",
|
|
94267
|
-
description: "
|
|
94399
|
+
description: "Pick the sub stream when the main stream is 4K and snapshots only feed thumbnails.",
|
|
94268
94400
|
descriptionKey: "provider-hikvision:schema.s_snapshot-source.description",
|
|
94269
94401
|
columns: 1,
|
|
94270
94402
|
fields: [{
|
|
@@ -94281,7 +94413,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94281
94413
|
tab: "alarms",
|
|
94282
94414
|
title: "Motion linkage",
|
|
94283
94415
|
titleKey: "provider-hikvision:schema.s_alarms.title",
|
|
94284
|
-
description: "
|
|
94416
|
+
description: "Methods not listed here (record, email, ftp) are preserved.",
|
|
94285
94417
|
descriptionKey: "provider-hikvision:schema.s_alarms.description",
|
|
94286
94418
|
columns: 2,
|
|
94287
94419
|
fields: [
|
|
@@ -94290,8 +94422,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94290
94422
|
key: "alarmBeep",
|
|
94291
94423
|
label: "Audio beep",
|
|
94292
94424
|
labelKey: "provider-hikvision:schema.s_alarms.alarmBeep.label",
|
|
94293
|
-
description: "Camera fires its built-in beep speaker on motion.",
|
|
94294
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmBeep.description",
|
|
94295
94425
|
default: false,
|
|
94296
94426
|
style: "switch"
|
|
94297
94427
|
},
|
|
@@ -94300,7 +94430,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94300
94430
|
key: "alarmWhiteLight",
|
|
94301
94431
|
label: "White-light flash",
|
|
94302
94432
|
labelKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.label",
|
|
94303
|
-
description: "
|
|
94433
|
+
description: "Only effective on cameras with a controllable white-light LED.",
|
|
94304
94434
|
descriptionKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.description",
|
|
94305
94435
|
default: false,
|
|
94306
94436
|
style: "switch"
|
|
@@ -94310,8 +94440,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94310
94440
|
key: "alarmIoOutput",
|
|
94311
94441
|
label: "IO relay",
|
|
94312
94442
|
labelKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.label",
|
|
94313
|
-
description: "Closes the camera's alarm-output relay on motion. Wire your siren / external alarm panel here.",
|
|
94314
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.description",
|
|
94315
94443
|
default: false,
|
|
94316
94444
|
style: "switch"
|
|
94317
94445
|
},
|
|
@@ -94320,8 +94448,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94320
94448
|
key: "alarmCenter",
|
|
94321
94449
|
label: "Notification center",
|
|
94322
94450
|
labelKey: "provider-hikvision:schema.s_alarms.alarmCenter.label",
|
|
94323
|
-
description: "Push a notification to the Hikvision IVMS / Hik-Connect cloud on motion. Independent of camstack's own event pipeline.",
|
|
94324
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmCenter.description",
|
|
94325
94451
|
default: false,
|
|
94326
94452
|
style: "switch"
|
|
94327
94453
|
}
|
|
@@ -94332,8 +94458,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94332
94458
|
tab: "osd",
|
|
94333
94459
|
title: "OSD overlays",
|
|
94334
94460
|
titleKey: "provider-hikvision:schema.s_osd.title",
|
|
94335
|
-
description: "On-screen overlays from `/ISAPI/System/Video/inputs/channels/{cam}/overlays`. Toggling visibility or editing a text slot pushes straight to the camera; the snapshot re-hydrates after each save.",
|
|
94336
|
-
descriptionKey: "provider-hikvision:schema.s_osd.description",
|
|
94337
94461
|
columns: 2,
|
|
94338
94462
|
fields: [
|
|
94339
94463
|
{
|
|
@@ -94341,8 +94465,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94341
94465
|
key: "_osdDateTimeEnabled",
|
|
94342
94466
|
label: "Date/time visible",
|
|
94343
94467
|
labelKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.label",
|
|
94344
|
-
description: "Camera firmware-rendered timestamp — format lives on the camera-side time settings page.",
|
|
94345
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.description",
|
|
94346
94468
|
default: false,
|
|
94347
94469
|
style: "switch"
|
|
94348
94470
|
},
|
|
@@ -94351,8 +94473,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94351
94473
|
key: "_osdChannelNameEnabled",
|
|
94352
94474
|
label: "Channel name visible",
|
|
94353
94475
|
labelKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.label",
|
|
94354
|
-
description: "Tracks the camera `deviceName`. Flip to show/hide the channel-name line.",
|
|
94355
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.description",
|
|
94356
94476
|
default: false,
|
|
94357
94477
|
style: "switch"
|
|
94358
94478
|
},
|
|
@@ -94361,8 +94481,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94361
94481
|
key: "_osdTextOverlay1",
|
|
94362
94482
|
label: "Text overlay #1",
|
|
94363
94483
|
labelKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.label",
|
|
94364
|
-
description: "Free-text overlay slot 1. Blank hides the slot.",
|
|
94365
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.description",
|
|
94366
94484
|
span: 2
|
|
94367
94485
|
},
|
|
94368
94486
|
{
|
|
@@ -94393,7 +94511,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94393
94511
|
tab: "advanced",
|
|
94394
94512
|
title: "Advanced",
|
|
94395
94513
|
titleKey: "provider-hikvision:schema.s_advanced.title",
|
|
94396
|
-
description: "
|
|
94514
|
+
description: "Debug flags add log volume; VCA changes require a camera reboot.",
|
|
94397
94515
|
descriptionKey: "provider-hikvision:schema.s_advanced.description",
|
|
94398
94516
|
columns: 1,
|
|
94399
94517
|
fields: [
|
|
@@ -94402,7 +94520,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94402
94520
|
key: "vcaResource",
|
|
94403
94521
|
label: "VCA resource",
|
|
94404
94522
|
labelKey: "provider-hikvision:schema.s_advanced.vcaResource.label",
|
|
94405
|
-
description: "
|
|
94523
|
+
description: "`Smart` and `Face snap` disable the third stream; `Close` turns off on-camera AI. Switching reboots the camera.",
|
|
94406
94524
|
descriptionKey: "provider-hikvision:schema.s_advanced.vcaResource.description",
|
|
94407
94525
|
default: "smart",
|
|
94408
94526
|
options: [
|
|
@@ -94428,8 +94546,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94428
94546
|
key: "debugGeneral",
|
|
94429
94547
|
label: "General ISAPI logs",
|
|
94430
94548
|
labelKey: "provider-hikvision:schema.s_advanced.debugGeneral.label",
|
|
94431
|
-
description: "Request/response status, retries, digest re-challenges.",
|
|
94432
|
-
descriptionKey: "provider-hikvision:schema.s_advanced.debugGeneral.description",
|
|
94433
94549
|
default: false,
|
|
94434
94550
|
style: "switch"
|
|
94435
94551
|
},
|
|
@@ -103960,8 +104076,6 @@ function buildCreationFormSchema() {
|
|
|
103960
104076
|
id: "credentials",
|
|
103961
104077
|
title: "Credentials",
|
|
103962
104078
|
titleKey: "provider-hikvision:creation.s_credentials.title",
|
|
103963
|
-
description: "ISAPI uses HTTP Digest auth — no plaintext password on the wire even over HTTP. Required for the host probe.",
|
|
103964
|
-
descriptionKey: "provider-hikvision:creation.s_credentials.description",
|
|
103965
104079
|
columns: 2,
|
|
103966
104080
|
fields: [{
|
|
103967
104081
|
type: "text",
|
|
@@ -103983,7 +104097,7 @@ function buildCreationFormSchema() {
|
|
|
103983
104097
|
id: "connection",
|
|
103984
104098
|
title: "Connection",
|
|
103985
104099
|
titleKey: "provider-hikvision:creation.s_connection.title",
|
|
103986
|
-
description: "
|
|
104100
|
+
description: "Use 443 with HTTPS for cameras with TLS enabled.",
|
|
103987
104101
|
descriptionKey: "provider-hikvision:creation.s_connection.description",
|
|
103988
104102
|
columns: 2,
|
|
103989
104103
|
fields: [
|
|
@@ -104028,7 +104142,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104028
104142
|
id: "credentials",
|
|
104029
104143
|
title: "Credentials",
|
|
104030
104144
|
titleKey: "provider-hikvision:discoveryParams.s_credentials.title",
|
|
104031
|
-
description: "
|
|
104145
|
+
description: "Assumes all cameras share these credentials.",
|
|
104032
104146
|
descriptionKey: "provider-hikvision:discoveryParams.s_credentials.description",
|
|
104033
104147
|
columns: 2,
|
|
104034
104148
|
fields: [{
|
|
@@ -104050,7 +104164,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104050
104164
|
id: "scan",
|
|
104051
104165
|
title: "Scan options",
|
|
104052
104166
|
titleKey: "provider-hikvision:discoveryParams.s_scan.title",
|
|
104053
|
-
description: "
|
|
104167
|
+
description: "Leave blank to scan the hub's own subnet; enter the CIDR if the cameras are on another one (e.g. 192.168.60.0/24).",
|
|
104054
104168
|
descriptionKey: "provider-hikvision:discoveryParams.s_scan.description",
|
|
104055
104169
|
columns: 1,
|
|
104056
104170
|
fields: [{
|