@camstack/addon-provider-hikvision 1.2.167 → 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 +132 -141
- package/dist/addon.mjs +132 -141
- package/i18n/en.json +15 -46
- package/i18n/it.json +15 -46
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
|
|
|
13
13
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
14
14
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region ../types/dist/event-category-
|
|
16
|
+
//#region ../types/dist/event-category-BfJwUd2S.mjs
|
|
17
17
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
18
18
|
EventCategory["SystemBoot"] = "system.boot";
|
|
19
19
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -330,6 +330,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
330
330
|
*/
|
|
331
331
|
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
332
332
|
/**
|
|
333
|
+
* A camera's motion source has fired constantly with no subject for an hour
|
|
334
|
+
* (motion duty or session count over the bar, zero detections) — it is not
|
|
335
|
+
* blind, its motion zones or sensitivity want tuning (D907). Paired with
|
|
336
|
+
* {@link PipelineMotionCalm}.
|
|
337
|
+
*/
|
|
338
|
+
EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
|
|
339
|
+
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
340
|
+
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
341
|
+
/**
|
|
333
342
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
334
343
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
335
344
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -5436,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5436
5445
|
var ZodFirstPartyTypeKind;
|
|
5437
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5438
5447
|
//#endregion
|
|
5439
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5440
5449
|
/**
|
|
5441
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5442
5451
|
* window to float samples (D455).
|
|
@@ -7965,7 +7974,7 @@ var EntryDescriptorSchema = object({
|
|
|
7965
7974
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7966
7975
|
fields: record(string(), unknown())
|
|
7967
7976
|
}).strict();
|
|
7968
|
-
/** What crosses the wire
|
|
7977
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7969
7978
|
var RecordKindDeclarationSchema = object({
|
|
7970
7979
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7971
7980
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7984,14 +7993,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7984
7993
|
secretPaths: array(string().min(1)).default([]),
|
|
7985
7994
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7986
7995
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7987
|
-
/**
|
|
7988
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7989
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7990
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7991
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7992
|
-
* removal still sends it. Never set it.
|
|
7993
|
-
*/
|
|
7994
|
-
adoptsFrom: string().min(1).optional(),
|
|
7995
7996
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7996
7997
|
transactFamily: string().min(1).optional(),
|
|
7997
7998
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12986,17 +12987,6 @@ object({
|
|
|
12986
12987
|
createdAt: number(),
|
|
12987
12988
|
updatedAt: number()
|
|
12988
12989
|
});
|
|
12989
|
-
object({
|
|
12990
|
-
id: string(),
|
|
12991
|
-
label: string(),
|
|
12992
|
-
isAdmin: boolean().default(false),
|
|
12993
|
-
allowedProviders: AllowedProviderSchema,
|
|
12994
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12995
|
-
tokenHash: string(),
|
|
12996
|
-
tokenPrefix: string(),
|
|
12997
|
-
createdAt: number(),
|
|
12998
|
-
lastUsedAt: number().optional()
|
|
12999
|
-
});
|
|
13000
12990
|
object({
|
|
13001
12991
|
id: string(),
|
|
13002
12992
|
userId: string(),
|
|
@@ -16978,16 +16968,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16978
16968
|
var DeclareKindResultSchema = object({
|
|
16979
16969
|
kindId: number().int(),
|
|
16980
16970
|
state: RecordKindStateSchema,
|
|
16981
|
-
createdIndexes: array(string())
|
|
16982
|
-
/**
|
|
16983
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16984
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16985
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16986
|
-
*/
|
|
16987
|
-
adoptionPending: _null()
|
|
16971
|
+
createdIndexes: array(string())
|
|
16988
16972
|
});
|
|
16989
16973
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16990
16974
|
var SecretRefsList = array(string());
|
|
16975
|
+
/**
|
|
16976
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
16977
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
16978
|
+
*/
|
|
16979
|
+
var RecordTransactOpSchema = discriminatedUnion("op", [
|
|
16980
|
+
object({
|
|
16981
|
+
op: literal("put"),
|
|
16982
|
+
kind: RecordKindNameSchema,
|
|
16983
|
+
record: RecordInputSchema,
|
|
16984
|
+
ifRev: number().int().min(0).optional()
|
|
16985
|
+
}),
|
|
16986
|
+
object({
|
|
16987
|
+
op: literal("patch"),
|
|
16988
|
+
kind: RecordKindNameSchema,
|
|
16989
|
+
id: RecordIdSchema,
|
|
16990
|
+
data: RecordBodySchema,
|
|
16991
|
+
at: number().int().nullable().optional(),
|
|
16992
|
+
expiresAt: number().int().nullable().optional(),
|
|
16993
|
+
ifRev: number().int().min(1).optional()
|
|
16994
|
+
}),
|
|
16995
|
+
object({
|
|
16996
|
+
op: literal("delete"),
|
|
16997
|
+
kind: RecordKindNameSchema,
|
|
16998
|
+
id: RecordIdSchema
|
|
16999
|
+
})
|
|
17000
|
+
]);
|
|
16991
17001
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16992
17002
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16993
17003
|
kind: "mutation",
|
|
@@ -17094,6 +17104,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
17094
17104
|
}), {
|
|
17095
17105
|
kind: "mutation",
|
|
17096
17106
|
auth: "admin"
|
|
17107
|
+
}), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
|
|
17108
|
+
results: array(object({
|
|
17109
|
+
rev: number().int().nullable(),
|
|
17110
|
+
deleted: boolean()
|
|
17111
|
+
})),
|
|
17112
|
+
releasedRefs: SecretRefsList,
|
|
17113
|
+
secretRefs: SecretRefsList
|
|
17114
|
+
}), {
|
|
17115
|
+
kind: "mutation",
|
|
17116
|
+
auth: "admin"
|
|
17097
17117
|
}), method(object({
|
|
17098
17118
|
deviceId: number().int(),
|
|
17099
17119
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42820,9 +42840,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42820
42840
|
"node-updating",
|
|
42821
42841
|
"node-inference-unavailable",
|
|
42822
42842
|
"detection-blind",
|
|
42843
|
+
"motion-noisy",
|
|
42844
|
+
"motion-calm",
|
|
42823
42845
|
"recording-stalled",
|
|
42824
42846
|
"recording-healthy",
|
|
42825
42847
|
"recording-degraded",
|
|
42848
|
+
"device-attention-required",
|
|
42849
|
+
"device-attention-resolved",
|
|
42826
42850
|
"storage-location-low",
|
|
42827
42851
|
"storage-location-critical",
|
|
42828
42852
|
"storage-location-ok",
|
|
@@ -56668,6 +56692,16 @@ var DishwasherStatusSchema = object({
|
|
|
56668
56692
|
powerState: string().nullable(),
|
|
56669
56693
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56670
56694
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56695
|
+
/**
|
|
56696
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
56697
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
56698
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
56699
|
+
*/
|
|
56700
|
+
filterCleaningDue: boolean().nullable(),
|
|
56701
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
56702
|
+
machineCareDue: boolean().nullable(),
|
|
56703
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
56704
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
56671
56705
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56672
56706
|
halfLoad: boolean().nullable(),
|
|
56673
56707
|
hygienePlus: boolean().nullable(),
|
|
@@ -65879,16 +65913,6 @@ var UpdateUserInputSchema = object({
|
|
|
65879
65913
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65880
65914
|
scopes: array(TokenScopeSchema).optional()
|
|
65881
65915
|
});
|
|
65882
|
-
var ApiKeySummarySchema = object({
|
|
65883
|
-
id: string(),
|
|
65884
|
-
label: string(),
|
|
65885
|
-
isAdmin: boolean().default(false),
|
|
65886
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
65887
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65888
|
-
tokenPrefix: string(),
|
|
65889
|
-
createdAt: number(),
|
|
65890
|
-
lastUsedAt: number().optional()
|
|
65891
|
-
});
|
|
65892
65916
|
var OauthSessionSummarySchema = object({
|
|
65893
65917
|
id: string(),
|
|
65894
65918
|
userId: string(),
|
|
@@ -65910,8 +65934,7 @@ var TotpStatusSchema = object({
|
|
|
65910
65934
|
confirmedAt: number().nullable()
|
|
65911
65935
|
});
|
|
65912
65936
|
/**
|
|
65913
|
-
* user-management — singleton capability for user accounts
|
|
65914
|
-
* legacy API-key rows.
|
|
65937
|
+
* user-management — singleton capability for user accounts.
|
|
65915
65938
|
*
|
|
65916
65939
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
65917
65940
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -65967,10 +65990,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65967
65990
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
65968
65991
|
kind: "mutation",
|
|
65969
65992
|
access: "view"
|
|
65970
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65971
|
-
kind: "mutation",
|
|
65972
|
-
auth: "admin",
|
|
65973
|
-
access: "delete"
|
|
65974
65993
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65975
65994
|
kind: "mutation",
|
|
65976
65995
|
auth: "admin",
|
|
@@ -75445,6 +75464,12 @@ Object.freeze({
|
|
|
75445
75464
|
addonId: null,
|
|
75446
75465
|
access: "view"
|
|
75447
75466
|
},
|
|
75467
|
+
"records.transact": {
|
|
75468
|
+
capName: "records",
|
|
75469
|
+
capScope: "system",
|
|
75470
|
+
addonId: null,
|
|
75471
|
+
access: "create"
|
|
75472
|
+
},
|
|
75448
75473
|
"sceneMonitor.captureReference": {
|
|
75449
75474
|
capName: "scene-monitor",
|
|
75450
75475
|
capScope: "device",
|
|
@@ -76777,12 +76802,6 @@ Object.freeze({
|
|
|
76777
76802
|
addonId: null,
|
|
76778
76803
|
access: "view"
|
|
76779
76804
|
},
|
|
76780
|
-
"userManagement.listApiKeys": {
|
|
76781
|
-
capName: "user-management",
|
|
76782
|
-
capScope: "system",
|
|
76783
|
-
addonId: null,
|
|
76784
|
-
access: "view"
|
|
76785
|
-
},
|
|
76786
76805
|
"userManagement.listExternalIdentities": {
|
|
76787
76806
|
capName: "user-management",
|
|
76788
76807
|
capScope: "system",
|
|
@@ -76837,12 +76856,6 @@ Object.freeze({
|
|
|
76837
76856
|
addonId: null,
|
|
76838
76857
|
access: "create"
|
|
76839
76858
|
},
|
|
76840
|
-
"userManagement.revokeApiKey": {
|
|
76841
|
-
capName: "user-management",
|
|
76842
|
-
capScope: "system",
|
|
76843
|
-
addonId: null,
|
|
76844
|
-
access: "delete"
|
|
76845
|
-
},
|
|
76846
76859
|
"userManagement.revokeOauthSession": {
|
|
76847
76860
|
capName: "user-management",
|
|
76848
76861
|
capScope: "system",
|
|
@@ -80425,9 +80438,13 @@ new Map(Object.entries({
|
|
|
80425
80438
|
"stream-online": "device-events",
|
|
80426
80439
|
"stream-offline": "device-events",
|
|
80427
80440
|
"detection-blind": "device-events",
|
|
80441
|
+
"motion-noisy": "device-events",
|
|
80442
|
+
"motion-calm": "device-events",
|
|
80428
80443
|
"recording-stalled": "device-events",
|
|
80429
80444
|
"recording-healthy": "device-events",
|
|
80430
80445
|
"recording-degraded": "device-events",
|
|
80446
|
+
"device-attention-required": "device-events",
|
|
80447
|
+
"device-attention-resolved": "device-events",
|
|
80431
80448
|
"node-online": "system",
|
|
80432
80449
|
"node-offline": "system",
|
|
80433
80450
|
"node-restarting": "system",
|
|
@@ -80510,6 +80527,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80510
80527
|
label: "Detecting nothing",
|
|
80511
80528
|
kinds: ["detection-blind"]
|
|
80512
80529
|
},
|
|
80530
|
+
{
|
|
80531
|
+
id: "motion-noise",
|
|
80532
|
+
family: "device-events",
|
|
80533
|
+
label: "Motion without a subject",
|
|
80534
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
80535
|
+
},
|
|
80513
80536
|
{
|
|
80514
80537
|
id: "recording",
|
|
80515
80538
|
family: "device-events",
|
|
@@ -80520,6 +80543,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80520
80543
|
"recording-degraded"
|
|
80521
80544
|
]
|
|
80522
80545
|
},
|
|
80546
|
+
{
|
|
80547
|
+
id: "device-attention",
|
|
80548
|
+
family: "device-events",
|
|
80549
|
+
label: "Needs attention",
|
|
80550
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
80551
|
+
},
|
|
80523
80552
|
{
|
|
80524
80553
|
id: "nodes",
|
|
80525
80554
|
family: "system",
|
|
@@ -80659,6 +80688,7 @@ var ALERT_EPISODE = [
|
|
|
80659
80688
|
"alert-error",
|
|
80660
80689
|
"alert-critical-resolved"
|
|
80661
80690
|
];
|
|
80691
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
80662
80692
|
var UPDATES = [
|
|
80663
80693
|
"addon-update-available",
|
|
80664
80694
|
"server-update-available",
|
|
@@ -80688,9 +80718,12 @@ var DEVICE_EVENTS = [
|
|
|
80688
80718
|
"stream-online",
|
|
80689
80719
|
"stream-offline",
|
|
80690
80720
|
"detection-blind",
|
|
80721
|
+
"motion-noisy",
|
|
80722
|
+
"motion-calm",
|
|
80691
80723
|
"recording-stalled",
|
|
80692
80724
|
"recording-healthy",
|
|
80693
80725
|
"recording-degraded",
|
|
80726
|
+
...DEVICE_ATTENTION,
|
|
80694
80727
|
...ALARM
|
|
80695
80728
|
];
|
|
80696
80729
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -80858,7 +80891,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
80858
80891
|
[...RULE_TEXT],
|
|
80859
80892
|
[...RULE_TEXT],
|
|
80860
80893
|
[...RULE_TEXT],
|
|
80861
|
-
|
|
80894
|
+
[...RULE_TEXT],
|
|
80895
|
+
[...RULE_TEXT],
|
|
80896
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80862
80897
|
[...RULE_TEXT],
|
|
80863
80898
|
[...RULE_TEXT],
|
|
80864
80899
|
[...RULE_TEXT],
|
|
@@ -80880,11 +80915,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
80880
80915
|
[...RULE_TEXT],
|
|
80881
80916
|
[...RULE_TEXT],
|
|
80882
80917
|
[...RULE_TEXT],
|
|
80918
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80883
80919
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80920
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80884
80921
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80885
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80886
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80887
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80922
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80888
80923
|
[...RULE_TEXT],
|
|
80889
80924
|
[...RULE_TEXT],
|
|
80890
80925
|
[...RULE_TEXT],
|
|
@@ -80960,6 +80995,15 @@ new Map([
|
|
|
80960
80995
|
snapshotLabel: "Tanks low or full now",
|
|
80961
80996
|
snapshotSection: "tanks"
|
|
80962
80997
|
},
|
|
80998
|
+
{
|
|
80999
|
+
id: "motion-noise",
|
|
81000
|
+
family: "device-events",
|
|
81001
|
+
label: "Motion without a subject (constant / calm again)",
|
|
81002
|
+
bad: ["motion-noisy"],
|
|
81003
|
+
recovery: ["motion-calm"],
|
|
81004
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
81005
|
+
snapshotSection: null
|
|
81006
|
+
},
|
|
80963
81007
|
{
|
|
80964
81008
|
id: "recording-health",
|
|
80965
81009
|
family: "device-events",
|
|
@@ -80969,6 +81013,15 @@ new Map([
|
|
|
80969
81013
|
snapshotLabel: "Recordings stalled now",
|
|
80970
81014
|
snapshotSection: null
|
|
80971
81015
|
},
|
|
81016
|
+
{
|
|
81017
|
+
id: "device-attention",
|
|
81018
|
+
family: "device-events",
|
|
81019
|
+
label: "Device needs attention (raised / resolved)",
|
|
81020
|
+
bad: ["device-attention-required"],
|
|
81021
|
+
recovery: ["device-attention-resolved"],
|
|
81022
|
+
snapshotLabel: "Devices needing attention now",
|
|
81023
|
+
snapshotSection: null
|
|
81024
|
+
},
|
|
80972
81025
|
{
|
|
80973
81026
|
id: "node-connectivity",
|
|
80974
81027
|
family: "system",
|
|
@@ -86424,16 +86477,12 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86424
86477
|
id: "light",
|
|
86425
86478
|
title: "Supplemental Light",
|
|
86426
86479
|
titleKey: "provider-hikvision:schema.s_light.title",
|
|
86427
|
-
description: "Mode + default brightness used by the switch and brightness caps. The mode list is what the camera advertised at probe time.",
|
|
86428
|
-
descriptionKey: "provider-hikvision:schema.s_light.description",
|
|
86429
86480
|
columns: 2,
|
|
86430
86481
|
fields: [modeOptions.length > 0 ? {
|
|
86431
86482
|
type: "select",
|
|
86432
86483
|
key: "mode",
|
|
86433
86484
|
label: "Mode (on)",
|
|
86434
86485
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86435
|
-
description: "Sent in `<supplementLightMode>` when switching on. Default picked at probe time.",
|
|
86436
|
-
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86437
86486
|
default: "colorVuWhiteLight",
|
|
86438
86487
|
options: modeOptions
|
|
86439
86488
|
} : {
|
|
@@ -86441,7 +86490,7 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86441
86490
|
key: "mode",
|
|
86442
86491
|
label: "Mode (on)",
|
|
86443
86492
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86444
|
-
description: "
|
|
86493
|
+
description: "Type the mode string the camera expects (e.g. `colorVuWhiteLight`).",
|
|
86445
86494
|
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86446
86495
|
default: "colorVuWhiteLight"
|
|
86447
86496
|
}, {
|
|
@@ -86449,8 +86498,6 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86449
86498
|
key: "defaultBrightness",
|
|
86450
86499
|
label: "Default brightness",
|
|
86451
86500
|
labelKey: "provider-hikvision:schema.s_light.defaultBrightness.label",
|
|
86452
|
-
description: "Brightness 0..100 applied on switch-on; the operator can override via the brightness cap, but a fresh restart starts here.",
|
|
86453
|
-
descriptionKey: "provider-hikvision:schema.s_light.defaultBrightness.description",
|
|
86454
86501
|
default: 100,
|
|
86455
86502
|
min: 0,
|
|
86456
86503
|
max: 100,
|
|
@@ -86660,7 +86707,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86660
86707
|
id: "siren",
|
|
86661
86708
|
title: "Siren / Alarm Output",
|
|
86662
86709
|
titleKey: "provider-hikvision:schema.s_siren.title",
|
|
86663
|
-
description: "
|
|
86710
|
+
description: "The siren tone is set in the camera-side Linkage Method; this only fires the input.",
|
|
86664
86711
|
descriptionKey: "provider-hikvision:schema.s_siren.description",
|
|
86665
86712
|
columns: 2,
|
|
86666
86713
|
fields: [{
|
|
@@ -86668,7 +86715,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86668
86715
|
key: "port",
|
|
86669
86716
|
label: "Alarm input port",
|
|
86670
86717
|
labelKey: "provider-hikvision:schema.s_siren.port.label",
|
|
86671
|
-
description: `
|
|
86718
|
+
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)."}`,
|
|
86672
86719
|
default: 1,
|
|
86673
86720
|
min: 1,
|
|
86674
86721
|
max: 32,
|
|
@@ -86678,7 +86725,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86678
86725
|
key: "pulseDurationMs",
|
|
86679
86726
|
label: "Auto-release after (ms)",
|
|
86680
86727
|
labelKey: "provider-hikvision:schema.s_siren.pulseDurationMs.label",
|
|
86681
|
-
description: "
|
|
86728
|
+
description: "Auto-off delay in ms; 0 = manual release.",
|
|
86682
86729
|
descriptionKey: "provider-hikvision:schema.s_siren.pulseDurationMs.description",
|
|
86683
86730
|
default: 5e3,
|
|
86684
86731
|
min: 0,
|
|
@@ -93841,8 +93888,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93841
93888
|
tab: "general",
|
|
93842
93889
|
title: "Connection",
|
|
93843
93890
|
titleKey: "provider-hikvision:schema.s_connection.title",
|
|
93844
|
-
description: "ISAPI HTTP(S) endpoint + RTSP transport + Digest credentials.",
|
|
93845
|
-
descriptionKey: "provider-hikvision:schema.s_connection.description",
|
|
93846
93891
|
columns: 2,
|
|
93847
93892
|
fields: [
|
|
93848
93893
|
{
|
|
@@ -93909,16 +93954,12 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93909
93954
|
tab: "motion",
|
|
93910
93955
|
title: "On-camera motion (VMD)",
|
|
93911
93956
|
titleKey: "provider-hikvision:schema.s_motion.title",
|
|
93912
|
-
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.",
|
|
93913
|
-
descriptionKey: "provider-hikvision:schema.s_motion.description",
|
|
93914
93957
|
columns: 2,
|
|
93915
93958
|
fields: [{
|
|
93916
93959
|
type: "boolean",
|
|
93917
93960
|
key: "motionEnabled",
|
|
93918
93961
|
label: "Motion detection",
|
|
93919
93962
|
labelKey: "provider-hikvision:schema.s_motion.motionEnabled.label",
|
|
93920
|
-
description: "Master switch for on-camera VMD.",
|
|
93921
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionEnabled.description",
|
|
93922
93963
|
default: true,
|
|
93923
93964
|
style: "switch",
|
|
93924
93965
|
span: 2
|
|
@@ -93927,8 +93968,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93927
93968
|
key: "motionSensitivity",
|
|
93928
93969
|
label: "Sensitivity",
|
|
93929
93970
|
labelKey: "provider-hikvision:schema.s_motion.motionSensitivity.label",
|
|
93930
|
-
description: "Higher = triggers on smaller motion. Restricted to firmware-advertised 20-unit increments — slider snaps to 0/20/40/60/80/100.",
|
|
93931
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionSensitivity.description",
|
|
93932
93971
|
min: 0,
|
|
93933
93972
|
max: 100,
|
|
93934
93973
|
step: 20,
|
|
@@ -93945,8 +93984,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93945
93984
|
tab: "image",
|
|
93946
93985
|
title: "Image",
|
|
93947
93986
|
titleKey: "provider-hikvision:schema.s_image.title",
|
|
93948
|
-
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}`.",
|
|
93949
|
-
descriptionKey: "provider-hikvision:schema.s_image.description",
|
|
93950
93987
|
columns: 2,
|
|
93951
93988
|
fields: [
|
|
93952
93989
|
{
|
|
@@ -94002,8 +94039,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94002
94039
|
key: "imageWdrEnabled",
|
|
94003
94040
|
label: "WDR",
|
|
94004
94041
|
labelKey: "provider-hikvision:schema.s_image.imageWdrEnabled.label",
|
|
94005
|
-
description: "Wide Dynamic Range — balances scenes with bright + dark areas (e.g. backlit doorways). Costs a bit of frame rate / detail.",
|
|
94006
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrEnabled.description",
|
|
94007
94042
|
default: snap.wdrEnabled ?? false,
|
|
94008
94043
|
style: "switch",
|
|
94009
94044
|
span: 2
|
|
@@ -94013,8 +94048,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94013
94048
|
key: "imageWdrLevel",
|
|
94014
94049
|
label: "WDR level",
|
|
94015
94050
|
labelKey: "provider-hikvision:schema.s_image.imageWdrLevel.label",
|
|
94016
|
-
description: "Higher = more aggressive HDR fusion; can introduce halos in extreme scenes.",
|
|
94017
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrLevel.description",
|
|
94018
94051
|
min: 0,
|
|
94019
94052
|
max: 100,
|
|
94020
94053
|
step: 10,
|
|
@@ -94032,7 +94065,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94032
94065
|
key: "imageIrcutMode",
|
|
94033
94066
|
label: "Day/Night",
|
|
94034
94067
|
labelKey: "provider-hikvision:schema.s_image.imageIrcutMode.label",
|
|
94035
|
-
description: "
|
|
94068
|
+
description: "`schedule` uses the schedule configured on the camera.",
|
|
94036
94069
|
descriptionKey: "provider-hikvision:schema.s_image.imageIrcutMode.description",
|
|
94037
94070
|
default: snap.ircutMode ?? "auto",
|
|
94038
94071
|
options: [
|
|
@@ -94069,8 +94102,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94069
94102
|
tab: "network",
|
|
94070
94103
|
title: "Time / NTP",
|
|
94071
94104
|
titleKey: "provider-hikvision:schema.s_time-ntp.title",
|
|
94072
|
-
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).",
|
|
94073
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.description",
|
|
94074
94105
|
columns: 2,
|
|
94075
94106
|
fields: [
|
|
94076
94107
|
{
|
|
@@ -94078,8 +94109,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94078
94109
|
key: "timeZoneId",
|
|
94079
94110
|
label: "Timezone",
|
|
94080
94111
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.label",
|
|
94081
|
-
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.",
|
|
94082
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.description",
|
|
94083
94112
|
span: 2
|
|
94084
94113
|
},
|
|
94085
94114
|
{
|
|
@@ -94087,8 +94116,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94087
94116
|
key: "timeMode",
|
|
94088
94117
|
label: "Time sync",
|
|
94089
94118
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeMode.label",
|
|
94090
|
-
description: "`NTP` syncs the clock from the configured server; `manual` keeps the operator-set clock.",
|
|
94091
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeMode.description",
|
|
94092
94119
|
default: snap.timeMode === "manual" ? "manual" : "NTP",
|
|
94093
94120
|
options: [{
|
|
94094
94121
|
value: "NTP",
|
|
@@ -94106,8 +94133,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94106
94133
|
key: "ntpServer",
|
|
94107
94134
|
label: "NTP server",
|
|
94108
94135
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpServer.label",
|
|
94109
|
-
description: "IP address or hostname of the NTP server.",
|
|
94110
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpServer.description",
|
|
94111
94136
|
default: snap.ntpServer ?? "pool.ntp.org",
|
|
94112
94137
|
placeholder: "pool.ntp.org",
|
|
94113
94138
|
span: 2,
|
|
@@ -94135,8 +94160,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94135
94160
|
key: "ntpSyncInterval",
|
|
94136
94161
|
label: "Sync interval (min)",
|
|
94137
94162
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.label",
|
|
94138
|
-
description: "How often the camera re-syncs from the NTP server.",
|
|
94139
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.description",
|
|
94140
94163
|
default: snap.syncInterval ?? 1440,
|
|
94141
94164
|
min: 1,
|
|
94142
94165
|
max: 10080,
|
|
@@ -94151,8 +94174,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94151
94174
|
key: "manualTime",
|
|
94152
94175
|
label: "Manual date & time",
|
|
94153
94176
|
labelKey: "provider-hikvision:schema.s_time-ntp.manualTime.label",
|
|
94154
|
-
description: "Set the camera clock explicitly. Applies on save.",
|
|
94155
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.manualTime.description",
|
|
94156
94177
|
default: hikvisionLocalTimeToDatetimeLocal(snap.localTime) ?? this.config.get("manualTime") ?? "",
|
|
94157
94178
|
span: 2,
|
|
94158
94179
|
showWhen: {
|
|
@@ -94186,7 +94207,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94186
94207
|
id: "light",
|
|
94187
94208
|
tab: "light",
|
|
94188
94209
|
title: hasWhite ? "Supplemental light" : "IR illuminator",
|
|
94189
|
-
description: hasWhite ? "
|
|
94210
|
+
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.",
|
|
94190
94211
|
columns: 2,
|
|
94191
94212
|
fields: [
|
|
94192
94213
|
{
|
|
@@ -94194,8 +94215,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94194
94215
|
key: "lightMode",
|
|
94195
94216
|
label: "Mode",
|
|
94196
94217
|
labelKey: "provider-hikvision:schema.s_light.lightMode.label",
|
|
94197
|
-
description: "Active illumination mode. `close` turns the supplemental light off entirely; `irLight` enables the IR LEDs; white-light modes (when available) drive visible illumination.",
|
|
94198
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightMode.description",
|
|
94199
94218
|
default: snap.mode ?? cache.lightDefaultMode ?? "irLight",
|
|
94200
94219
|
options: modes.map((m) => ({
|
|
94201
94220
|
value: m,
|
|
@@ -94207,8 +94226,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94207
94226
|
key: "lightBrightnessRegulator",
|
|
94208
94227
|
label: "Brightness regulator",
|
|
94209
94228
|
labelKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.label",
|
|
94210
|
-
description: "`auto` lets the camera adjust brightness off its built-in light sensor; `manual` pins it to the operator-set value below.",
|
|
94211
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.description",
|
|
94212
94229
|
default: snap.brightnessRegulatorMode ?? "auto",
|
|
94213
94230
|
options: [{
|
|
94214
94231
|
value: "auto",
|
|
@@ -94225,7 +94242,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94225
94242
|
key: "lightIrBrightness",
|
|
94226
94243
|
label: "IR brightness",
|
|
94227
94244
|
labelKey: "provider-hikvision:schema.s_light.lightIrBrightness.label",
|
|
94228
|
-
description: "
|
|
94245
|
+
description: "Only honoured when mode is `irLight` and the regulator is `manual`.",
|
|
94229
94246
|
descriptionKey: "provider-hikvision:schema.s_light.lightIrBrightness.description",
|
|
94230
94247
|
min: 0,
|
|
94231
94248
|
max: 100,
|
|
@@ -94240,7 +94257,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94240
94257
|
key: "lightWhiteBrightness",
|
|
94241
94258
|
label: "White-light brightness",
|
|
94242
94259
|
labelKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.label",
|
|
94243
|
-
description: "
|
|
94260
|
+
description: "Only honoured in a white-light mode.",
|
|
94244
94261
|
descriptionKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.description",
|
|
94245
94262
|
min: 0,
|
|
94246
94263
|
max: 100,
|
|
@@ -94258,7 +94275,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94258
94275
|
tab: "audio",
|
|
94259
94276
|
title: "Two-way audio",
|
|
94260
94277
|
titleKey: "provider-hikvision:schema.s_two-way-audio-mode.title",
|
|
94261
|
-
description: "
|
|
94278
|
+
description: "`auto` probes for a channel; use `isapi` if the probe fails but the camera accepts audio, `off` to disable.",
|
|
94262
94279
|
descriptionKey: "provider-hikvision:schema.s_two-way-audio-mode.description",
|
|
94263
94280
|
columns: 1,
|
|
94264
94281
|
fields: [{
|
|
@@ -94295,8 +94312,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94295
94312
|
tab: "audio",
|
|
94296
94313
|
title: "Two-way audio channel",
|
|
94297
94314
|
titleKey: "provider-hikvision:schema.s_audio.title",
|
|
94298
|
-
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.",
|
|
94299
|
-
descriptionKey: "provider-hikvision:schema.s_audio.description",
|
|
94300
94315
|
columns: 2,
|
|
94301
94316
|
fields: [
|
|
94302
94317
|
{
|
|
@@ -94304,7 +94319,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94304
94319
|
key: "audioCompressionType",
|
|
94305
94320
|
label: "Audio codec",
|
|
94306
94321
|
labelKey: "provider-hikvision:schema.s_audio.audioCompressionType.label",
|
|
94307
|
-
description: "
|
|
94322
|
+
description: "G.711 µ-law has the broadest compatibility.",
|
|
94308
94323
|
descriptionKey: "provider-hikvision:schema.s_audio.audioCompressionType.description",
|
|
94309
94324
|
default: "",
|
|
94310
94325
|
options: [{
|
|
@@ -94321,8 +94336,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94321
94336
|
key: "audioInputType",
|
|
94322
94337
|
label: "Input source",
|
|
94323
94338
|
labelKey: "provider-hikvision:schema.s_audio.audioInputType.label",
|
|
94324
|
-
description: "Mic-in (built-in microphone) vs Line-in (rear-panel TRS). Cameras without a line input only advertise MicIn here.",
|
|
94325
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioInputType.description",
|
|
94326
94339
|
default: "",
|
|
94327
94340
|
options: [{
|
|
94328
94341
|
value: "",
|
|
@@ -94338,8 +94351,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94338
94351
|
key: "audioSpeakerVolume",
|
|
94339
94352
|
label: "Speaker volume",
|
|
94340
94353
|
labelKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.label",
|
|
94341
|
-
description: "Camera output volume. Affects intercom playback and any audio-alarm sounds the linkage fires.",
|
|
94342
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.description",
|
|
94343
94354
|
min: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMin ?? 0,
|
|
94344
94355
|
max: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMax ?? 100,
|
|
94345
94356
|
step: 5,
|
|
@@ -94353,8 +94364,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94353
94364
|
key: "audioNoiseReduction",
|
|
94354
94365
|
label: "Noise reduction",
|
|
94355
94366
|
labelKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.label",
|
|
94356
|
-
description: "Camera-side noise filter. Helpful in noisy environments; can clip soft speech if too aggressive.",
|
|
94357
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.description",
|
|
94358
94367
|
default: true,
|
|
94359
94368
|
style: "switch",
|
|
94360
94369
|
span: 2
|
|
@@ -94366,7 +94375,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94366
94375
|
tab: "streaming",
|
|
94367
94376
|
title: "Snapshot source",
|
|
94368
94377
|
titleKey: "provider-hikvision:schema.s_snapshot-source.title",
|
|
94369
|
-
description: "
|
|
94378
|
+
description: "Pick the sub stream when the main stream is 4K and snapshots only feed thumbnails.",
|
|
94370
94379
|
descriptionKey: "provider-hikvision:schema.s_snapshot-source.description",
|
|
94371
94380
|
columns: 1,
|
|
94372
94381
|
fields: [{
|
|
@@ -94383,7 +94392,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94383
94392
|
tab: "alarms",
|
|
94384
94393
|
title: "Motion linkage",
|
|
94385
94394
|
titleKey: "provider-hikvision:schema.s_alarms.title",
|
|
94386
|
-
description: "
|
|
94395
|
+
description: "Methods not listed here (record, email, ftp) are preserved.",
|
|
94387
94396
|
descriptionKey: "provider-hikvision:schema.s_alarms.description",
|
|
94388
94397
|
columns: 2,
|
|
94389
94398
|
fields: [
|
|
@@ -94392,8 +94401,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94392
94401
|
key: "alarmBeep",
|
|
94393
94402
|
label: "Audio beep",
|
|
94394
94403
|
labelKey: "provider-hikvision:schema.s_alarms.alarmBeep.label",
|
|
94395
|
-
description: "Camera fires its built-in beep speaker on motion.",
|
|
94396
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmBeep.description",
|
|
94397
94404
|
default: false,
|
|
94398
94405
|
style: "switch"
|
|
94399
94406
|
},
|
|
@@ -94402,7 +94409,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94402
94409
|
key: "alarmWhiteLight",
|
|
94403
94410
|
label: "White-light flash",
|
|
94404
94411
|
labelKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.label",
|
|
94405
|
-
description: "
|
|
94412
|
+
description: "Only effective on cameras with a controllable white-light LED.",
|
|
94406
94413
|
descriptionKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.description",
|
|
94407
94414
|
default: false,
|
|
94408
94415
|
style: "switch"
|
|
@@ -94412,8 +94419,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94412
94419
|
key: "alarmIoOutput",
|
|
94413
94420
|
label: "IO relay",
|
|
94414
94421
|
labelKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.label",
|
|
94415
|
-
description: "Closes the camera's alarm-output relay on motion. Wire your siren / external alarm panel here.",
|
|
94416
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.description",
|
|
94417
94422
|
default: false,
|
|
94418
94423
|
style: "switch"
|
|
94419
94424
|
},
|
|
@@ -94422,8 +94427,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94422
94427
|
key: "alarmCenter",
|
|
94423
94428
|
label: "Notification center",
|
|
94424
94429
|
labelKey: "provider-hikvision:schema.s_alarms.alarmCenter.label",
|
|
94425
|
-
description: "Push a notification to the Hikvision IVMS / Hik-Connect cloud on motion. Independent of camstack's own event pipeline.",
|
|
94426
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmCenter.description",
|
|
94427
94430
|
default: false,
|
|
94428
94431
|
style: "switch"
|
|
94429
94432
|
}
|
|
@@ -94434,8 +94437,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94434
94437
|
tab: "osd",
|
|
94435
94438
|
title: "OSD overlays",
|
|
94436
94439
|
titleKey: "provider-hikvision:schema.s_osd.title",
|
|
94437
|
-
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.",
|
|
94438
|
-
descriptionKey: "provider-hikvision:schema.s_osd.description",
|
|
94439
94440
|
columns: 2,
|
|
94440
94441
|
fields: [
|
|
94441
94442
|
{
|
|
@@ -94443,8 +94444,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94443
94444
|
key: "_osdDateTimeEnabled",
|
|
94444
94445
|
label: "Date/time visible",
|
|
94445
94446
|
labelKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.label",
|
|
94446
|
-
description: "Camera firmware-rendered timestamp — format lives on the camera-side time settings page.",
|
|
94447
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.description",
|
|
94448
94447
|
default: false,
|
|
94449
94448
|
style: "switch"
|
|
94450
94449
|
},
|
|
@@ -94453,8 +94452,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94453
94452
|
key: "_osdChannelNameEnabled",
|
|
94454
94453
|
label: "Channel name visible",
|
|
94455
94454
|
labelKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.label",
|
|
94456
|
-
description: "Tracks the camera `deviceName`. Flip to show/hide the channel-name line.",
|
|
94457
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.description",
|
|
94458
94455
|
default: false,
|
|
94459
94456
|
style: "switch"
|
|
94460
94457
|
},
|
|
@@ -94463,8 +94460,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94463
94460
|
key: "_osdTextOverlay1",
|
|
94464
94461
|
label: "Text overlay #1",
|
|
94465
94462
|
labelKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.label",
|
|
94466
|
-
description: "Free-text overlay slot 1. Blank hides the slot.",
|
|
94467
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.description",
|
|
94468
94463
|
span: 2
|
|
94469
94464
|
},
|
|
94470
94465
|
{
|
|
@@ -94495,7 +94490,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94495
94490
|
tab: "advanced",
|
|
94496
94491
|
title: "Advanced",
|
|
94497
94492
|
titleKey: "provider-hikvision:schema.s_advanced.title",
|
|
94498
|
-
description: "
|
|
94493
|
+
description: "Debug flags add log volume; VCA changes require a camera reboot.",
|
|
94499
94494
|
descriptionKey: "provider-hikvision:schema.s_advanced.description",
|
|
94500
94495
|
columns: 1,
|
|
94501
94496
|
fields: [
|
|
@@ -94504,7 +94499,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94504
94499
|
key: "vcaResource",
|
|
94505
94500
|
label: "VCA resource",
|
|
94506
94501
|
labelKey: "provider-hikvision:schema.s_advanced.vcaResource.label",
|
|
94507
|
-
description: "
|
|
94502
|
+
description: "`Smart` and `Face snap` disable the third stream; `Close` turns off on-camera AI. Switching reboots the camera.",
|
|
94508
94503
|
descriptionKey: "provider-hikvision:schema.s_advanced.vcaResource.description",
|
|
94509
94504
|
default: "smart",
|
|
94510
94505
|
options: [
|
|
@@ -94530,8 +94525,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94530
94525
|
key: "debugGeneral",
|
|
94531
94526
|
label: "General ISAPI logs",
|
|
94532
94527
|
labelKey: "provider-hikvision:schema.s_advanced.debugGeneral.label",
|
|
94533
|
-
description: "Request/response status, retries, digest re-challenges.",
|
|
94534
|
-
descriptionKey: "provider-hikvision:schema.s_advanced.debugGeneral.description",
|
|
94535
94528
|
default: false,
|
|
94536
94529
|
style: "switch"
|
|
94537
94530
|
},
|
|
@@ -104062,8 +104055,6 @@ function buildCreationFormSchema() {
|
|
|
104062
104055
|
id: "credentials",
|
|
104063
104056
|
title: "Credentials",
|
|
104064
104057
|
titleKey: "provider-hikvision:creation.s_credentials.title",
|
|
104065
|
-
description: "ISAPI uses HTTP Digest auth — no plaintext password on the wire even over HTTP. Required for the host probe.",
|
|
104066
|
-
descriptionKey: "provider-hikvision:creation.s_credentials.description",
|
|
104067
104058
|
columns: 2,
|
|
104068
104059
|
fields: [{
|
|
104069
104060
|
type: "text",
|
|
@@ -104085,7 +104076,7 @@ function buildCreationFormSchema() {
|
|
|
104085
104076
|
id: "connection",
|
|
104086
104077
|
title: "Connection",
|
|
104087
104078
|
titleKey: "provider-hikvision:creation.s_connection.title",
|
|
104088
|
-
description: "
|
|
104079
|
+
description: "Use 443 with HTTPS for cameras with TLS enabled.",
|
|
104089
104080
|
descriptionKey: "provider-hikvision:creation.s_connection.description",
|
|
104090
104081
|
columns: 2,
|
|
104091
104082
|
fields: [
|
|
@@ -104130,7 +104121,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104130
104121
|
id: "credentials",
|
|
104131
104122
|
title: "Credentials",
|
|
104132
104123
|
titleKey: "provider-hikvision:discoveryParams.s_credentials.title",
|
|
104133
|
-
description: "
|
|
104124
|
+
description: "Assumes all cameras share these credentials.",
|
|
104134
104125
|
descriptionKey: "provider-hikvision:discoveryParams.s_credentials.description",
|
|
104135
104126
|
columns: 2,
|
|
104136
104127
|
fields: [{
|
|
@@ -104152,7 +104143,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104152
104143
|
id: "scan",
|
|
104153
104144
|
title: "Scan options",
|
|
104154
104145
|
titleKey: "provider-hikvision:discoveryParams.s_scan.title",
|
|
104155
|
-
description: "
|
|
104146
|
+
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).",
|
|
104156
104147
|
descriptionKey: "provider-hikvision:discoveryParams.s_scan.description",
|
|
104157
104148
|
columns: 1,
|
|
104158
104149
|
fields: [{
|