@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.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
|
|
@@ -701,6 +710,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
701
710
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
702
711
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
703
712
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
713
|
+
/**
|
|
714
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
715
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
716
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
717
|
+
*/
|
|
718
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
719
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
720
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
704
721
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
705
722
|
/**
|
|
706
723
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5428,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5428
5445
|
var ZodFirstPartyTypeKind;
|
|
5429
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5430
5447
|
//#endregion
|
|
5431
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5432
5449
|
/**
|
|
5433
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5434
5451
|
* window to float samples (D455).
|
|
@@ -7957,7 +7974,7 @@ var EntryDescriptorSchema = object({
|
|
|
7957
7974
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7958
7975
|
fields: record(string(), unknown())
|
|
7959
7976
|
}).strict();
|
|
7960
|
-
/** What crosses the wire
|
|
7977
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7961
7978
|
var RecordKindDeclarationSchema = object({
|
|
7962
7979
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7963
7980
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7976,14 +7993,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7976
7993
|
secretPaths: array(string().min(1)).default([]),
|
|
7977
7994
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7978
7995
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7979
|
-
/**
|
|
7980
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7981
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7982
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7983
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7984
|
-
* removal still sends it. Never set it.
|
|
7985
|
-
*/
|
|
7986
|
-
adoptsFrom: string().min(1).optional(),
|
|
7987
7996
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7988
7997
|
transactFamily: string().min(1).optional(),
|
|
7989
7998
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12978,17 +12987,6 @@ object({
|
|
|
12978
12987
|
createdAt: number(),
|
|
12979
12988
|
updatedAt: number()
|
|
12980
12989
|
});
|
|
12981
|
-
object({
|
|
12982
|
-
id: string(),
|
|
12983
|
-
label: string(),
|
|
12984
|
-
isAdmin: boolean().default(false),
|
|
12985
|
-
allowedProviders: AllowedProviderSchema,
|
|
12986
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12987
|
-
tokenHash: string(),
|
|
12988
|
-
tokenPrefix: string(),
|
|
12989
|
-
createdAt: number(),
|
|
12990
|
-
lastUsedAt: number().optional()
|
|
12991
|
-
});
|
|
12992
12990
|
object({
|
|
12993
12991
|
id: string(),
|
|
12994
12992
|
userId: string(),
|
|
@@ -16970,16 +16968,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16970
16968
|
var DeclareKindResultSchema = object({
|
|
16971
16969
|
kindId: number().int(),
|
|
16972
16970
|
state: RecordKindStateSchema,
|
|
16973
|
-
createdIndexes: array(string())
|
|
16974
|
-
/**
|
|
16975
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16976
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16977
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16978
|
-
*/
|
|
16979
|
-
adoptionPending: _null()
|
|
16971
|
+
createdIndexes: array(string())
|
|
16980
16972
|
});
|
|
16981
16973
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16982
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
|
+
]);
|
|
16983
17001
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16984
17002
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16985
17003
|
kind: "mutation",
|
|
@@ -17086,6 +17104,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
17086
17104
|
}), {
|
|
17087
17105
|
kind: "mutation",
|
|
17088
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"
|
|
17089
17117
|
}), method(object({
|
|
17090
17118
|
deviceId: number().int(),
|
|
17091
17119
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42812,9 +42840,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42812
42840
|
"node-updating",
|
|
42813
42841
|
"node-inference-unavailable",
|
|
42814
42842
|
"detection-blind",
|
|
42843
|
+
"motion-noisy",
|
|
42844
|
+
"motion-calm",
|
|
42815
42845
|
"recording-stalled",
|
|
42816
42846
|
"recording-healthy",
|
|
42817
42847
|
"recording-degraded",
|
|
42848
|
+
"device-attention-required",
|
|
42849
|
+
"device-attention-resolved",
|
|
42818
42850
|
"storage-location-low",
|
|
42819
42851
|
"storage-location-critical",
|
|
42820
42852
|
"storage-location-ok",
|
|
@@ -42838,6 +42870,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42838
42870
|
"alert-critical",
|
|
42839
42871
|
"alert-error",
|
|
42840
42872
|
"alert-critical-resolved",
|
|
42873
|
+
"rule-broken",
|
|
42874
|
+
"rule-repaired",
|
|
42841
42875
|
"camera-online",
|
|
42842
42876
|
"camera-offline",
|
|
42843
42877
|
"camera-disabled",
|
|
@@ -56658,6 +56692,16 @@ var DishwasherStatusSchema = object({
|
|
|
56658
56692
|
powerState: string().nullable(),
|
|
56659
56693
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56660
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(),
|
|
56661
56705
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56662
56706
|
halfLoad: boolean().nullable(),
|
|
56663
56707
|
hygienePlus: boolean().nullable(),
|
|
@@ -65869,16 +65913,6 @@ var UpdateUserInputSchema = object({
|
|
|
65869
65913
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65870
65914
|
scopes: array(TokenScopeSchema).optional()
|
|
65871
65915
|
});
|
|
65872
|
-
var ApiKeySummarySchema = object({
|
|
65873
|
-
id: string(),
|
|
65874
|
-
label: string(),
|
|
65875
|
-
isAdmin: boolean().default(false),
|
|
65876
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
65877
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
65878
|
-
tokenPrefix: string(),
|
|
65879
|
-
createdAt: number(),
|
|
65880
|
-
lastUsedAt: number().optional()
|
|
65881
|
-
});
|
|
65882
65916
|
var OauthSessionSummarySchema = object({
|
|
65883
65917
|
id: string(),
|
|
65884
65918
|
userId: string(),
|
|
@@ -65900,8 +65934,7 @@ var TotpStatusSchema = object({
|
|
|
65900
65934
|
confirmedAt: number().nullable()
|
|
65901
65935
|
});
|
|
65902
65936
|
/**
|
|
65903
|
-
* user-management — singleton capability for user accounts
|
|
65904
|
-
* legacy API-key rows.
|
|
65937
|
+
* user-management — singleton capability for user accounts.
|
|
65905
65938
|
*
|
|
65906
65939
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
65907
65940
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -65957,10 +65990,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65957
65990
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
65958
65991
|
kind: "mutation",
|
|
65959
65992
|
access: "view"
|
|
65960
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65961
|
-
kind: "mutation",
|
|
65962
|
-
auth: "admin",
|
|
65963
|
-
access: "delete"
|
|
65964
65993
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65965
65994
|
kind: "mutation",
|
|
65966
65995
|
auth: "admin",
|
|
@@ -75435,6 +75464,12 @@ Object.freeze({
|
|
|
75435
75464
|
addonId: null,
|
|
75436
75465
|
access: "view"
|
|
75437
75466
|
},
|
|
75467
|
+
"records.transact": {
|
|
75468
|
+
capName: "records",
|
|
75469
|
+
capScope: "system",
|
|
75470
|
+
addonId: null,
|
|
75471
|
+
access: "create"
|
|
75472
|
+
},
|
|
75438
75473
|
"sceneMonitor.captureReference": {
|
|
75439
75474
|
capName: "scene-monitor",
|
|
75440
75475
|
capScope: "device",
|
|
@@ -76767,12 +76802,6 @@ Object.freeze({
|
|
|
76767
76802
|
addonId: null,
|
|
76768
76803
|
access: "view"
|
|
76769
76804
|
},
|
|
76770
|
-
"userManagement.listApiKeys": {
|
|
76771
|
-
capName: "user-management",
|
|
76772
|
-
capScope: "system",
|
|
76773
|
-
addonId: null,
|
|
76774
|
-
access: "view"
|
|
76775
|
-
},
|
|
76776
76805
|
"userManagement.listExternalIdentities": {
|
|
76777
76806
|
capName: "user-management",
|
|
76778
76807
|
capScope: "system",
|
|
@@ -76827,12 +76856,6 @@ Object.freeze({
|
|
|
76827
76856
|
addonId: null,
|
|
76828
76857
|
access: "create"
|
|
76829
76858
|
},
|
|
76830
|
-
"userManagement.revokeApiKey": {
|
|
76831
|
-
capName: "user-management",
|
|
76832
|
-
capScope: "system",
|
|
76833
|
-
addonId: null,
|
|
76834
|
-
access: "delete"
|
|
76835
|
-
},
|
|
76836
76859
|
"userManagement.revokeOauthSession": {
|
|
76837
76860
|
capName: "user-management",
|
|
76838
76861
|
capScope: "system",
|
|
@@ -80415,9 +80438,13 @@ new Map(Object.entries({
|
|
|
80415
80438
|
"stream-online": "device-events",
|
|
80416
80439
|
"stream-offline": "device-events",
|
|
80417
80440
|
"detection-blind": "device-events",
|
|
80441
|
+
"motion-noisy": "device-events",
|
|
80442
|
+
"motion-calm": "device-events",
|
|
80418
80443
|
"recording-stalled": "device-events",
|
|
80419
80444
|
"recording-healthy": "device-events",
|
|
80420
80445
|
"recording-degraded": "device-events",
|
|
80446
|
+
"device-attention-required": "device-events",
|
|
80447
|
+
"device-attention-resolved": "device-events",
|
|
80421
80448
|
"node-online": "system",
|
|
80422
80449
|
"node-offline": "system",
|
|
80423
80450
|
"node-restarting": "system",
|
|
@@ -80434,6 +80461,8 @@ new Map(Object.entries({
|
|
|
80434
80461
|
"alert-critical": "system",
|
|
80435
80462
|
"alert-error": "system",
|
|
80436
80463
|
"alert-critical-resolved": "system",
|
|
80464
|
+
"rule-broken": "system",
|
|
80465
|
+
"rule-repaired": "system",
|
|
80437
80466
|
"storage-location-low": "system",
|
|
80438
80467
|
"storage-location-critical": "system",
|
|
80439
80468
|
"storage-location-ok": "system",
|
|
@@ -80498,6 +80527,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80498
80527
|
label: "Detecting nothing",
|
|
80499
80528
|
kinds: ["detection-blind"]
|
|
80500
80529
|
},
|
|
80530
|
+
{
|
|
80531
|
+
id: "motion-noise",
|
|
80532
|
+
family: "device-events",
|
|
80533
|
+
label: "Motion without a subject",
|
|
80534
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
80535
|
+
},
|
|
80501
80536
|
{
|
|
80502
80537
|
id: "recording",
|
|
80503
80538
|
family: "device-events",
|
|
@@ -80508,6 +80543,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80508
80543
|
"recording-degraded"
|
|
80509
80544
|
]
|
|
80510
80545
|
},
|
|
80546
|
+
{
|
|
80547
|
+
id: "device-attention",
|
|
80548
|
+
family: "device-events",
|
|
80549
|
+
label: "Needs attention",
|
|
80550
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
80551
|
+
},
|
|
80511
80552
|
{
|
|
80512
80553
|
id: "nodes",
|
|
80513
80554
|
family: "system",
|
|
@@ -80568,6 +80609,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
80568
80609
|
"alert-critical-resolved"
|
|
80569
80610
|
]
|
|
80570
80611
|
},
|
|
80612
|
+
{
|
|
80613
|
+
id: "rule-health",
|
|
80614
|
+
family: "system",
|
|
80615
|
+
label: "Notification rules",
|
|
80616
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
80617
|
+
},
|
|
80571
80618
|
{
|
|
80572
80619
|
id: "alarm",
|
|
80573
80620
|
family: "alarm",
|
|
@@ -80641,6 +80688,7 @@ var ALERT_EPISODE = [
|
|
|
80641
80688
|
"alert-error",
|
|
80642
80689
|
"alert-critical-resolved"
|
|
80643
80690
|
];
|
|
80691
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
80644
80692
|
var UPDATES = [
|
|
80645
80693
|
"addon-update-available",
|
|
80646
80694
|
"server-update-available",
|
|
@@ -80670,9 +80718,12 @@ var DEVICE_EVENTS = [
|
|
|
80670
80718
|
"stream-online",
|
|
80671
80719
|
"stream-offline",
|
|
80672
80720
|
"detection-blind",
|
|
80721
|
+
"motion-noisy",
|
|
80722
|
+
"motion-calm",
|
|
80673
80723
|
"recording-stalled",
|
|
80674
80724
|
"recording-healthy",
|
|
80675
80725
|
"recording-degraded",
|
|
80726
|
+
...DEVICE_ATTENTION,
|
|
80676
80727
|
...ALARM
|
|
80677
80728
|
];
|
|
80678
80729
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -80840,7 +80891,13 @@ var STATE_SUMMARY_VARS = [
|
|
|
80840
80891
|
[...RULE_TEXT],
|
|
80841
80892
|
[...RULE_TEXT],
|
|
80842
80893
|
[...RULE_TEXT],
|
|
80843
|
-
|
|
80894
|
+
[...RULE_TEXT],
|
|
80895
|
+
[...RULE_TEXT],
|
|
80896
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80897
|
+
[...RULE_TEXT],
|
|
80898
|
+
[...RULE_TEXT],
|
|
80899
|
+
[...RULE_TEXT],
|
|
80900
|
+
[...RULE_TEXT],
|
|
80844
80901
|
[...RULE_TEXT],
|
|
80845
80902
|
[...RULE_TEXT],
|
|
80846
80903
|
[...RULE_TEXT],
|
|
@@ -80858,11 +80915,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
80858
80915
|
[...RULE_TEXT],
|
|
80859
80916
|
[...RULE_TEXT],
|
|
80860
80917
|
[...RULE_TEXT],
|
|
80918
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80861
80919
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80920
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80862
80921
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80863
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80864
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80865
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80922
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
80866
80923
|
[...RULE_TEXT],
|
|
80867
80924
|
[...RULE_TEXT],
|
|
80868
80925
|
[...RULE_TEXT],
|
|
@@ -80883,6 +80940,125 @@ var STATE_SUMMARY_VARS = [
|
|
|
80883
80940
|
[...RULE_TEXT],
|
|
80884
80941
|
...STATE_SUMMARY_VARS
|
|
80885
80942
|
];
|
|
80943
|
+
new Map([
|
|
80944
|
+
{
|
|
80945
|
+
id: "device-connectivity",
|
|
80946
|
+
family: "device-events",
|
|
80947
|
+
label: "Device connectivity (offline / back online)",
|
|
80948
|
+
bad: ["device-offline"],
|
|
80949
|
+
recovery: ["device-online"],
|
|
80950
|
+
snapshotLabel: "Devices offline now",
|
|
80951
|
+
snapshotSection: "device-state"
|
|
80952
|
+
},
|
|
80953
|
+
{
|
|
80954
|
+
id: "device-switch",
|
|
80955
|
+
family: "device-events",
|
|
80956
|
+
label: "Device switched off / back on",
|
|
80957
|
+
bad: ["device-disabled"],
|
|
80958
|
+
recovery: ["device-enabled"],
|
|
80959
|
+
snapshotLabel: "Devices switched off now",
|
|
80960
|
+
snapshotSection: "device-state"
|
|
80961
|
+
},
|
|
80962
|
+
{
|
|
80963
|
+
id: "stream-connectivity",
|
|
80964
|
+
family: "device-events",
|
|
80965
|
+
label: "Stream connectivity (offline / back online)",
|
|
80966
|
+
bad: ["stream-offline"],
|
|
80967
|
+
recovery: ["stream-online"],
|
|
80968
|
+
snapshotLabel: "Streams offline now",
|
|
80969
|
+
snapshotSection: "streams"
|
|
80970
|
+
},
|
|
80971
|
+
{
|
|
80972
|
+
id: "battery",
|
|
80973
|
+
family: "device-events",
|
|
80974
|
+
label: "Battery (low / back to normal)",
|
|
80975
|
+
bad: ["device-battery-low"],
|
|
80976
|
+
recovery: ["device-battery-normal"],
|
|
80977
|
+
snapshotLabel: "Batteries low now",
|
|
80978
|
+
snapshotSection: "battery"
|
|
80979
|
+
},
|
|
80980
|
+
{
|
|
80981
|
+
id: "consumables",
|
|
80982
|
+
family: "device-events",
|
|
80983
|
+
label: "Consumables (low / replaced)",
|
|
80984
|
+
bad: ["device-consumable-low"],
|
|
80985
|
+
recovery: ["device-consumable-normal"],
|
|
80986
|
+
snapshotLabel: "Consumables low now",
|
|
80987
|
+
snapshotSection: "consumables"
|
|
80988
|
+
},
|
|
80989
|
+
{
|
|
80990
|
+
id: "tanks",
|
|
80991
|
+
family: "device-events",
|
|
80992
|
+
label: "Tanks (low or full / back to normal)",
|
|
80993
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
80994
|
+
recovery: ["device-tank-normal"],
|
|
80995
|
+
snapshotLabel: "Tanks low or full now",
|
|
80996
|
+
snapshotSection: "tanks"
|
|
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
|
+
},
|
|
81007
|
+
{
|
|
81008
|
+
id: "recording-health",
|
|
81009
|
+
family: "device-events",
|
|
81010
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
81011
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
81012
|
+
recovery: ["recording-healthy"],
|
|
81013
|
+
snapshotLabel: "Recordings stalled now",
|
|
81014
|
+
snapshotSection: null
|
|
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
|
+
},
|
|
81025
|
+
{
|
|
81026
|
+
id: "node-connectivity",
|
|
81027
|
+
family: "system",
|
|
81028
|
+
label: "Node connectivity (offline / back online)",
|
|
81029
|
+
bad: ["node-offline"],
|
|
81030
|
+
recovery: ["node-online"],
|
|
81031
|
+
snapshotLabel: "Nodes offline now",
|
|
81032
|
+
snapshotSection: "nodes"
|
|
81033
|
+
},
|
|
81034
|
+
{
|
|
81035
|
+
id: "storage-space",
|
|
81036
|
+
family: "system",
|
|
81037
|
+
label: "Storage space (low or critical / ok again)",
|
|
81038
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
81039
|
+
recovery: ["storage-location-ok"],
|
|
81040
|
+
snapshotLabel: "Storage locations low now",
|
|
81041
|
+
snapshotSection: null
|
|
81042
|
+
},
|
|
81043
|
+
{
|
|
81044
|
+
id: "critical-alerts",
|
|
81045
|
+
family: "system",
|
|
81046
|
+
label: "Critical alerts (raised / resolved)",
|
|
81047
|
+
bad: ["alert-critical"],
|
|
81048
|
+
recovery: ["alert-critical-resolved"],
|
|
81049
|
+
snapshotLabel: "Critical alerts open now",
|
|
81050
|
+
snapshotSection: null
|
|
81051
|
+
},
|
|
81052
|
+
{
|
|
81053
|
+
id: "rule-health",
|
|
81054
|
+
family: "system",
|
|
81055
|
+
label: "Rule health (broken / repaired)",
|
|
81056
|
+
bad: ["rule-broken"],
|
|
81057
|
+
recovery: ["rule-repaired"],
|
|
81058
|
+
snapshotLabel: "Notification rules broken now",
|
|
81059
|
+
snapshotSection: null
|
|
81060
|
+
}
|
|
81061
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
80886
81062
|
new Set([
|
|
80887
81063
|
"disarmed",
|
|
80888
81064
|
"armed_home",
|
|
@@ -86301,16 +86477,12 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86301
86477
|
id: "light",
|
|
86302
86478
|
title: "Supplemental Light",
|
|
86303
86479
|
titleKey: "provider-hikvision:schema.s_light.title",
|
|
86304
|
-
description: "Mode + default brightness used by the switch and brightness caps. The mode list is what the camera advertised at probe time.",
|
|
86305
|
-
descriptionKey: "provider-hikvision:schema.s_light.description",
|
|
86306
86480
|
columns: 2,
|
|
86307
86481
|
fields: [modeOptions.length > 0 ? {
|
|
86308
86482
|
type: "select",
|
|
86309
86483
|
key: "mode",
|
|
86310
86484
|
label: "Mode (on)",
|
|
86311
86485
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86312
|
-
description: "Sent in `<supplementLightMode>` when switching on. Default picked at probe time.",
|
|
86313
|
-
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86314
86486
|
default: "colorVuWhiteLight",
|
|
86315
86487
|
options: modeOptions
|
|
86316
86488
|
} : {
|
|
@@ -86318,7 +86490,7 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86318
86490
|
key: "mode",
|
|
86319
86491
|
label: "Mode (on)",
|
|
86320
86492
|
labelKey: "provider-hikvision:schema.s_light.mode.label",
|
|
86321
|
-
description: "
|
|
86493
|
+
description: "Type the mode string the camera expects (e.g. `colorVuWhiteLight`).",
|
|
86322
86494
|
descriptionKey: "provider-hikvision:schema.s_light.mode.description",
|
|
86323
86495
|
default: "colorVuWhiteLight"
|
|
86324
86496
|
}, {
|
|
@@ -86326,8 +86498,6 @@ var HikvisionLightAccessory = class extends BaseDevice {
|
|
|
86326
86498
|
key: "defaultBrightness",
|
|
86327
86499
|
label: "Default brightness",
|
|
86328
86500
|
labelKey: "provider-hikvision:schema.s_light.defaultBrightness.label",
|
|
86329
|
-
description: "Brightness 0..100 applied on switch-on; the operator can override via the brightness cap, but a fresh restart starts here.",
|
|
86330
|
-
descriptionKey: "provider-hikvision:schema.s_light.defaultBrightness.description",
|
|
86331
86501
|
default: 100,
|
|
86332
86502
|
min: 0,
|
|
86333
86503
|
max: 100,
|
|
@@ -86537,7 +86707,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86537
86707
|
id: "siren",
|
|
86538
86708
|
title: "Siren / Alarm Output",
|
|
86539
86709
|
titleKey: "provider-hikvision:schema.s_siren.title",
|
|
86540
|
-
description: "
|
|
86710
|
+
description: "The siren tone is set in the camera-side Linkage Method; this only fires the input.",
|
|
86541
86711
|
descriptionKey: "provider-hikvision:schema.s_siren.description",
|
|
86542
86712
|
columns: 2,
|
|
86543
86713
|
fields: [{
|
|
@@ -86545,7 +86715,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86545
86715
|
key: "port",
|
|
86546
86716
|
label: "Alarm input port",
|
|
86547
86717
|
labelKey: "provider-hikvision:schema.s_siren.port.label",
|
|
86548
|
-
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)."}`,
|
|
86549
86719
|
default: 1,
|
|
86550
86720
|
min: 1,
|
|
86551
86721
|
max: 32,
|
|
@@ -86555,7 +86725,7 @@ var HikvisionSirenAccessory = class extends BaseDevice {
|
|
|
86555
86725
|
key: "pulseDurationMs",
|
|
86556
86726
|
label: "Auto-release after (ms)",
|
|
86557
86727
|
labelKey: "provider-hikvision:schema.s_siren.pulseDurationMs.label",
|
|
86558
|
-
description: "
|
|
86728
|
+
description: "Auto-off delay in ms; 0 = manual release.",
|
|
86559
86729
|
descriptionKey: "provider-hikvision:schema.s_siren.pulseDurationMs.description",
|
|
86560
86730
|
default: 5e3,
|
|
86561
86731
|
min: 0,
|
|
@@ -93718,8 +93888,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93718
93888
|
tab: "general",
|
|
93719
93889
|
title: "Connection",
|
|
93720
93890
|
titleKey: "provider-hikvision:schema.s_connection.title",
|
|
93721
|
-
description: "ISAPI HTTP(S) endpoint + RTSP transport + Digest credentials.",
|
|
93722
|
-
descriptionKey: "provider-hikvision:schema.s_connection.description",
|
|
93723
93891
|
columns: 2,
|
|
93724
93892
|
fields: [
|
|
93725
93893
|
{
|
|
@@ -93786,16 +93954,12 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93786
93954
|
tab: "motion",
|
|
93787
93955
|
title: "On-camera motion (VMD)",
|
|
93788
93956
|
titleKey: "provider-hikvision:schema.s_motion.title",
|
|
93789
|
-
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.",
|
|
93790
|
-
descriptionKey: "provider-hikvision:schema.s_motion.description",
|
|
93791
93957
|
columns: 2,
|
|
93792
93958
|
fields: [{
|
|
93793
93959
|
type: "boolean",
|
|
93794
93960
|
key: "motionEnabled",
|
|
93795
93961
|
label: "Motion detection",
|
|
93796
93962
|
labelKey: "provider-hikvision:schema.s_motion.motionEnabled.label",
|
|
93797
|
-
description: "Master switch for on-camera VMD.",
|
|
93798
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionEnabled.description",
|
|
93799
93963
|
default: true,
|
|
93800
93964
|
style: "switch",
|
|
93801
93965
|
span: 2
|
|
@@ -93804,8 +93968,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93804
93968
|
key: "motionSensitivity",
|
|
93805
93969
|
label: "Sensitivity",
|
|
93806
93970
|
labelKey: "provider-hikvision:schema.s_motion.motionSensitivity.label",
|
|
93807
|
-
description: "Higher = triggers on smaller motion. Restricted to firmware-advertised 20-unit increments — slider snaps to 0/20/40/60/80/100.",
|
|
93808
|
-
descriptionKey: "provider-hikvision:schema.s_motion.motionSensitivity.description",
|
|
93809
93971
|
min: 0,
|
|
93810
93972
|
max: 100,
|
|
93811
93973
|
step: 20,
|
|
@@ -93822,8 +93984,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93822
93984
|
tab: "image",
|
|
93823
93985
|
title: "Image",
|
|
93824
93986
|
titleKey: "provider-hikvision:schema.s_image.title",
|
|
93825
|
-
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}`.",
|
|
93826
|
-
descriptionKey: "provider-hikvision:schema.s_image.description",
|
|
93827
93987
|
columns: 2,
|
|
93828
93988
|
fields: [
|
|
93829
93989
|
{
|
|
@@ -93879,8 +94039,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93879
94039
|
key: "imageWdrEnabled",
|
|
93880
94040
|
label: "WDR",
|
|
93881
94041
|
labelKey: "provider-hikvision:schema.s_image.imageWdrEnabled.label",
|
|
93882
|
-
description: "Wide Dynamic Range — balances scenes with bright + dark areas (e.g. backlit doorways). Costs a bit of frame rate / detail.",
|
|
93883
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrEnabled.description",
|
|
93884
94042
|
default: snap.wdrEnabled ?? false,
|
|
93885
94043
|
style: "switch",
|
|
93886
94044
|
span: 2
|
|
@@ -93890,8 +94048,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93890
94048
|
key: "imageWdrLevel",
|
|
93891
94049
|
label: "WDR level",
|
|
93892
94050
|
labelKey: "provider-hikvision:schema.s_image.imageWdrLevel.label",
|
|
93893
|
-
description: "Higher = more aggressive HDR fusion; can introduce halos in extreme scenes.",
|
|
93894
|
-
descriptionKey: "provider-hikvision:schema.s_image.imageWdrLevel.description",
|
|
93895
94051
|
min: 0,
|
|
93896
94052
|
max: 100,
|
|
93897
94053
|
step: 10,
|
|
@@ -93909,7 +94065,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93909
94065
|
key: "imageIrcutMode",
|
|
93910
94066
|
label: "Day/Night",
|
|
93911
94067
|
labelKey: "provider-hikvision:schema.s_image.imageIrcutMode.label",
|
|
93912
|
-
description: "
|
|
94068
|
+
description: "`schedule` uses the schedule configured on the camera.",
|
|
93913
94069
|
descriptionKey: "provider-hikvision:schema.s_image.imageIrcutMode.description",
|
|
93914
94070
|
default: snap.ircutMode ?? "auto",
|
|
93915
94071
|
options: [
|
|
@@ -93946,8 +94102,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93946
94102
|
tab: "network",
|
|
93947
94103
|
title: "Time / NTP",
|
|
93948
94104
|
titleKey: "provider-hikvision:schema.s_time-ntp.title",
|
|
93949
|
-
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).",
|
|
93950
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.description",
|
|
93951
94105
|
columns: 2,
|
|
93952
94106
|
fields: [
|
|
93953
94107
|
{
|
|
@@ -93955,8 +94109,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93955
94109
|
key: "timeZoneId",
|
|
93956
94110
|
label: "Timezone",
|
|
93957
94111
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.label",
|
|
93958
|
-
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.",
|
|
93959
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeZoneId.description",
|
|
93960
94112
|
span: 2
|
|
93961
94113
|
},
|
|
93962
94114
|
{
|
|
@@ -93964,8 +94116,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93964
94116
|
key: "timeMode",
|
|
93965
94117
|
label: "Time sync",
|
|
93966
94118
|
labelKey: "provider-hikvision:schema.s_time-ntp.timeMode.label",
|
|
93967
|
-
description: "`NTP` syncs the clock from the configured server; `manual` keeps the operator-set clock.",
|
|
93968
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.timeMode.description",
|
|
93969
94119
|
default: snap.timeMode === "manual" ? "manual" : "NTP",
|
|
93970
94120
|
options: [{
|
|
93971
94121
|
value: "NTP",
|
|
@@ -93983,8 +94133,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
93983
94133
|
key: "ntpServer",
|
|
93984
94134
|
label: "NTP server",
|
|
93985
94135
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpServer.label",
|
|
93986
|
-
description: "IP address or hostname of the NTP server.",
|
|
93987
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpServer.description",
|
|
93988
94136
|
default: snap.ntpServer ?? "pool.ntp.org",
|
|
93989
94137
|
placeholder: "pool.ntp.org",
|
|
93990
94138
|
span: 2,
|
|
@@ -94012,8 +94160,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94012
94160
|
key: "ntpSyncInterval",
|
|
94013
94161
|
label: "Sync interval (min)",
|
|
94014
94162
|
labelKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.label",
|
|
94015
|
-
description: "How often the camera re-syncs from the NTP server.",
|
|
94016
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.ntpSyncInterval.description",
|
|
94017
94163
|
default: snap.syncInterval ?? 1440,
|
|
94018
94164
|
min: 1,
|
|
94019
94165
|
max: 10080,
|
|
@@ -94028,8 +94174,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94028
94174
|
key: "manualTime",
|
|
94029
94175
|
label: "Manual date & time",
|
|
94030
94176
|
labelKey: "provider-hikvision:schema.s_time-ntp.manualTime.label",
|
|
94031
|
-
description: "Set the camera clock explicitly. Applies on save.",
|
|
94032
|
-
descriptionKey: "provider-hikvision:schema.s_time-ntp.manualTime.description",
|
|
94033
94177
|
default: hikvisionLocalTimeToDatetimeLocal(snap.localTime) ?? this.config.get("manualTime") ?? "",
|
|
94034
94178
|
span: 2,
|
|
94035
94179
|
showWhen: {
|
|
@@ -94063,7 +94207,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94063
94207
|
id: "light",
|
|
94064
94208
|
tab: "light",
|
|
94065
94209
|
title: hasWhite ? "Supplemental light" : "IR illuminator",
|
|
94066
|
-
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.",
|
|
94067
94211
|
columns: 2,
|
|
94068
94212
|
fields: [
|
|
94069
94213
|
{
|
|
@@ -94071,8 +94215,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94071
94215
|
key: "lightMode",
|
|
94072
94216
|
label: "Mode",
|
|
94073
94217
|
labelKey: "provider-hikvision:schema.s_light.lightMode.label",
|
|
94074
|
-
description: "Active illumination mode. `close` turns the supplemental light off entirely; `irLight` enables the IR LEDs; white-light modes (when available) drive visible illumination.",
|
|
94075
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightMode.description",
|
|
94076
94218
|
default: snap.mode ?? cache.lightDefaultMode ?? "irLight",
|
|
94077
94219
|
options: modes.map((m) => ({
|
|
94078
94220
|
value: m,
|
|
@@ -94084,8 +94226,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94084
94226
|
key: "lightBrightnessRegulator",
|
|
94085
94227
|
label: "Brightness regulator",
|
|
94086
94228
|
labelKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.label",
|
|
94087
|
-
description: "`auto` lets the camera adjust brightness off its built-in light sensor; `manual` pins it to the operator-set value below.",
|
|
94088
|
-
descriptionKey: "provider-hikvision:schema.s_light.lightBrightnessRegulator.description",
|
|
94089
94229
|
default: snap.brightnessRegulatorMode ?? "auto",
|
|
94090
94230
|
options: [{
|
|
94091
94231
|
value: "auto",
|
|
@@ -94102,7 +94242,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94102
94242
|
key: "lightIrBrightness",
|
|
94103
94243
|
label: "IR brightness",
|
|
94104
94244
|
labelKey: "provider-hikvision:schema.s_light.lightIrBrightness.label",
|
|
94105
|
-
description: "
|
|
94245
|
+
description: "Only honoured when mode is `irLight` and the regulator is `manual`.",
|
|
94106
94246
|
descriptionKey: "provider-hikvision:schema.s_light.lightIrBrightness.description",
|
|
94107
94247
|
min: 0,
|
|
94108
94248
|
max: 100,
|
|
@@ -94117,7 +94257,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94117
94257
|
key: "lightWhiteBrightness",
|
|
94118
94258
|
label: "White-light brightness",
|
|
94119
94259
|
labelKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.label",
|
|
94120
|
-
description: "
|
|
94260
|
+
description: "Only honoured in a white-light mode.",
|
|
94121
94261
|
descriptionKey: "provider-hikvision:schema.s_light.lightWhiteBrightness.description",
|
|
94122
94262
|
min: 0,
|
|
94123
94263
|
max: 100,
|
|
@@ -94135,7 +94275,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94135
94275
|
tab: "audio",
|
|
94136
94276
|
title: "Two-way audio",
|
|
94137
94277
|
titleKey: "provider-hikvision:schema.s_two-way-audio-mode.title",
|
|
94138
|
-
description: "
|
|
94278
|
+
description: "`auto` probes for a channel; use `isapi` if the probe fails but the camera accepts audio, `off` to disable.",
|
|
94139
94279
|
descriptionKey: "provider-hikvision:schema.s_two-way-audio-mode.description",
|
|
94140
94280
|
columns: 1,
|
|
94141
94281
|
fields: [{
|
|
@@ -94172,8 +94312,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94172
94312
|
tab: "audio",
|
|
94173
94313
|
title: "Two-way audio channel",
|
|
94174
94314
|
titleKey: "provider-hikvision:schema.s_audio.title",
|
|
94175
|
-
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.",
|
|
94176
|
-
descriptionKey: "provider-hikvision:schema.s_audio.description",
|
|
94177
94315
|
columns: 2,
|
|
94178
94316
|
fields: [
|
|
94179
94317
|
{
|
|
@@ -94181,7 +94319,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94181
94319
|
key: "audioCompressionType",
|
|
94182
94320
|
label: "Audio codec",
|
|
94183
94321
|
labelKey: "provider-hikvision:schema.s_audio.audioCompressionType.label",
|
|
94184
|
-
description: "
|
|
94322
|
+
description: "G.711 µ-law has the broadest compatibility.",
|
|
94185
94323
|
descriptionKey: "provider-hikvision:schema.s_audio.audioCompressionType.description",
|
|
94186
94324
|
default: "",
|
|
94187
94325
|
options: [{
|
|
@@ -94198,8 +94336,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94198
94336
|
key: "audioInputType",
|
|
94199
94337
|
label: "Input source",
|
|
94200
94338
|
labelKey: "provider-hikvision:schema.s_audio.audioInputType.label",
|
|
94201
|
-
description: "Mic-in (built-in microphone) vs Line-in (rear-panel TRS). Cameras without a line input only advertise MicIn here.",
|
|
94202
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioInputType.description",
|
|
94203
94339
|
default: "",
|
|
94204
94340
|
options: [{
|
|
94205
94341
|
value: "",
|
|
@@ -94215,8 +94351,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94215
94351
|
key: "audioSpeakerVolume",
|
|
94216
94352
|
label: "Speaker volume",
|
|
94217
94353
|
labelKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.label",
|
|
94218
|
-
description: "Camera output volume. Affects intercom playback and any audio-alarm sounds the linkage fires.",
|
|
94219
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioSpeakerVolume.description",
|
|
94220
94354
|
min: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMin ?? 0,
|
|
94221
94355
|
max: this.config.get("deviceCache")?.audioCapabilities?.speakerVolumeMax ?? 100,
|
|
94222
94356
|
step: 5,
|
|
@@ -94230,8 +94364,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94230
94364
|
key: "audioNoiseReduction",
|
|
94231
94365
|
label: "Noise reduction",
|
|
94232
94366
|
labelKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.label",
|
|
94233
|
-
description: "Camera-side noise filter. Helpful in noisy environments; can clip soft speech if too aggressive.",
|
|
94234
|
-
descriptionKey: "provider-hikvision:schema.s_audio.audioNoiseReduction.description",
|
|
94235
94367
|
default: true,
|
|
94236
94368
|
style: "switch",
|
|
94237
94369
|
span: 2
|
|
@@ -94243,7 +94375,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94243
94375
|
tab: "streaming",
|
|
94244
94376
|
title: "Snapshot source",
|
|
94245
94377
|
titleKey: "provider-hikvision:schema.s_snapshot-source.title",
|
|
94246
|
-
description: "
|
|
94378
|
+
description: "Pick the sub stream when the main stream is 4K and snapshots only feed thumbnails.",
|
|
94247
94379
|
descriptionKey: "provider-hikvision:schema.s_snapshot-source.description",
|
|
94248
94380
|
columns: 1,
|
|
94249
94381
|
fields: [{
|
|
@@ -94260,7 +94392,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94260
94392
|
tab: "alarms",
|
|
94261
94393
|
title: "Motion linkage",
|
|
94262
94394
|
titleKey: "provider-hikvision:schema.s_alarms.title",
|
|
94263
|
-
description: "
|
|
94395
|
+
description: "Methods not listed here (record, email, ftp) are preserved.",
|
|
94264
94396
|
descriptionKey: "provider-hikvision:schema.s_alarms.description",
|
|
94265
94397
|
columns: 2,
|
|
94266
94398
|
fields: [
|
|
@@ -94269,8 +94401,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94269
94401
|
key: "alarmBeep",
|
|
94270
94402
|
label: "Audio beep",
|
|
94271
94403
|
labelKey: "provider-hikvision:schema.s_alarms.alarmBeep.label",
|
|
94272
|
-
description: "Camera fires its built-in beep speaker on motion.",
|
|
94273
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmBeep.description",
|
|
94274
94404
|
default: false,
|
|
94275
94405
|
style: "switch"
|
|
94276
94406
|
},
|
|
@@ -94279,7 +94409,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94279
94409
|
key: "alarmWhiteLight",
|
|
94280
94410
|
label: "White-light flash",
|
|
94281
94411
|
labelKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.label",
|
|
94282
|
-
description: "
|
|
94412
|
+
description: "Only effective on cameras with a controllable white-light LED.",
|
|
94283
94413
|
descriptionKey: "provider-hikvision:schema.s_alarms.alarmWhiteLight.description",
|
|
94284
94414
|
default: false,
|
|
94285
94415
|
style: "switch"
|
|
@@ -94289,8 +94419,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94289
94419
|
key: "alarmIoOutput",
|
|
94290
94420
|
label: "IO relay",
|
|
94291
94421
|
labelKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.label",
|
|
94292
|
-
description: "Closes the camera's alarm-output relay on motion. Wire your siren / external alarm panel here.",
|
|
94293
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmIoOutput.description",
|
|
94294
94422
|
default: false,
|
|
94295
94423
|
style: "switch"
|
|
94296
94424
|
},
|
|
@@ -94299,8 +94427,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94299
94427
|
key: "alarmCenter",
|
|
94300
94428
|
label: "Notification center",
|
|
94301
94429
|
labelKey: "provider-hikvision:schema.s_alarms.alarmCenter.label",
|
|
94302
|
-
description: "Push a notification to the Hikvision IVMS / Hik-Connect cloud on motion. Independent of camstack's own event pipeline.",
|
|
94303
|
-
descriptionKey: "provider-hikvision:schema.s_alarms.alarmCenter.description",
|
|
94304
94430
|
default: false,
|
|
94305
94431
|
style: "switch"
|
|
94306
94432
|
}
|
|
@@ -94311,8 +94437,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94311
94437
|
tab: "osd",
|
|
94312
94438
|
title: "OSD overlays",
|
|
94313
94439
|
titleKey: "provider-hikvision:schema.s_osd.title",
|
|
94314
|
-
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.",
|
|
94315
|
-
descriptionKey: "provider-hikvision:schema.s_osd.description",
|
|
94316
94440
|
columns: 2,
|
|
94317
94441
|
fields: [
|
|
94318
94442
|
{
|
|
@@ -94320,8 +94444,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94320
94444
|
key: "_osdDateTimeEnabled",
|
|
94321
94445
|
label: "Date/time visible",
|
|
94322
94446
|
labelKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.label",
|
|
94323
|
-
description: "Camera firmware-rendered timestamp — format lives on the camera-side time settings page.",
|
|
94324
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdDateTimeEnabled.description",
|
|
94325
94447
|
default: false,
|
|
94326
94448
|
style: "switch"
|
|
94327
94449
|
},
|
|
@@ -94330,8 +94452,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94330
94452
|
key: "_osdChannelNameEnabled",
|
|
94331
94453
|
label: "Channel name visible",
|
|
94332
94454
|
labelKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.label",
|
|
94333
|
-
description: "Tracks the camera `deviceName`. Flip to show/hide the channel-name line.",
|
|
94334
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdChannelNameEnabled.description",
|
|
94335
94455
|
default: false,
|
|
94336
94456
|
style: "switch"
|
|
94337
94457
|
},
|
|
@@ -94340,8 +94460,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94340
94460
|
key: "_osdTextOverlay1",
|
|
94341
94461
|
label: "Text overlay #1",
|
|
94342
94462
|
labelKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.label",
|
|
94343
|
-
description: "Free-text overlay slot 1. Blank hides the slot.",
|
|
94344
|
-
descriptionKey: "provider-hikvision:schema.s_osd._osdTextOverlay1.description",
|
|
94345
94463
|
span: 2
|
|
94346
94464
|
},
|
|
94347
94465
|
{
|
|
@@ -94372,7 +94490,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94372
94490
|
tab: "advanced",
|
|
94373
94491
|
title: "Advanced",
|
|
94374
94492
|
titleKey: "provider-hikvision:schema.s_advanced.title",
|
|
94375
|
-
description: "
|
|
94493
|
+
description: "Debug flags add log volume; VCA changes require a camera reboot.",
|
|
94376
94494
|
descriptionKey: "provider-hikvision:schema.s_advanced.description",
|
|
94377
94495
|
columns: 1,
|
|
94378
94496
|
fields: [
|
|
@@ -94381,7 +94499,7 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94381
94499
|
key: "vcaResource",
|
|
94382
94500
|
label: "VCA resource",
|
|
94383
94501
|
labelKey: "provider-hikvision:schema.s_advanced.vcaResource.label",
|
|
94384
|
-
description: "
|
|
94502
|
+
description: "`Smart` and `Face snap` disable the third stream; `Close` turns off on-camera AI. Switching reboots the camera.",
|
|
94385
94503
|
descriptionKey: "provider-hikvision:schema.s_advanced.vcaResource.description",
|
|
94386
94504
|
default: "smart",
|
|
94387
94505
|
options: [
|
|
@@ -94407,8 +94525,6 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
|
|
|
94407
94525
|
key: "debugGeneral",
|
|
94408
94526
|
label: "General ISAPI logs",
|
|
94409
94527
|
labelKey: "provider-hikvision:schema.s_advanced.debugGeneral.label",
|
|
94410
|
-
description: "Request/response status, retries, digest re-challenges.",
|
|
94411
|
-
descriptionKey: "provider-hikvision:schema.s_advanced.debugGeneral.description",
|
|
94412
94528
|
default: false,
|
|
94413
94529
|
style: "switch"
|
|
94414
94530
|
},
|
|
@@ -103939,8 +104055,6 @@ function buildCreationFormSchema() {
|
|
|
103939
104055
|
id: "credentials",
|
|
103940
104056
|
title: "Credentials",
|
|
103941
104057
|
titleKey: "provider-hikvision:creation.s_credentials.title",
|
|
103942
|
-
description: "ISAPI uses HTTP Digest auth — no plaintext password on the wire even over HTTP. Required for the host probe.",
|
|
103943
|
-
descriptionKey: "provider-hikvision:creation.s_credentials.description",
|
|
103944
104058
|
columns: 2,
|
|
103945
104059
|
fields: [{
|
|
103946
104060
|
type: "text",
|
|
@@ -103962,7 +104076,7 @@ function buildCreationFormSchema() {
|
|
|
103962
104076
|
id: "connection",
|
|
103963
104077
|
title: "Connection",
|
|
103964
104078
|
titleKey: "provider-hikvision:creation.s_connection.title",
|
|
103965
|
-
description: "
|
|
104079
|
+
description: "Use 443 with HTTPS for cameras with TLS enabled.",
|
|
103966
104080
|
descriptionKey: "provider-hikvision:creation.s_connection.description",
|
|
103967
104081
|
columns: 2,
|
|
103968
104082
|
fields: [
|
|
@@ -104007,7 +104121,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104007
104121
|
id: "credentials",
|
|
104008
104122
|
title: "Credentials",
|
|
104009
104123
|
titleKey: "provider-hikvision:discoveryParams.s_credentials.title",
|
|
104010
|
-
description: "
|
|
104124
|
+
description: "Assumes all cameras share these credentials.",
|
|
104011
104125
|
descriptionKey: "provider-hikvision:discoveryParams.s_credentials.description",
|
|
104012
104126
|
columns: 2,
|
|
104013
104127
|
fields: [{
|
|
@@ -104029,7 +104143,7 @@ function buildDiscoveryParamsFormSchema() {
|
|
|
104029
104143
|
id: "scan",
|
|
104030
104144
|
title: "Scan options",
|
|
104031
104145
|
titleKey: "provider-hikvision:discoveryParams.s_scan.title",
|
|
104032
|
-
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).",
|
|
104033
104147
|
descriptionKey: "provider-hikvision:discoveryParams.s_scan.description",
|
|
104034
104148
|
columns: 1,
|
|
104035
104149
|
fields: [{
|