@camstack/addon-provider-homematic 1.2.17 → 1.2.18
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 +76 -8
- package/dist/addon.mjs +76 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13290,11 +13290,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13290
13290
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13291
13291
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13292
13292
|
* differently.
|
|
13293
|
+
*
|
|
13294
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13295
|
+
*
|
|
13296
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13297
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13298
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13299
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13300
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13301
|
+
* honestly.
|
|
13302
|
+
*
|
|
13303
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13304
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13305
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13306
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13307
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13308
|
+
*
|
|
13309
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13310
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13311
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13312
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13313
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13293
13314
|
*/
|
|
13294
13315
|
var NotificationActionIconSchema = _enum([
|
|
13295
13316
|
"acknowledge",
|
|
13296
13317
|
"dismiss",
|
|
13297
13318
|
"silence",
|
|
13319
|
+
"snooze",
|
|
13298
13320
|
"view",
|
|
13299
13321
|
"play",
|
|
13300
13322
|
"open",
|
|
@@ -13302,9 +13324,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13302
13324
|
"lock",
|
|
13303
13325
|
"unlock",
|
|
13304
13326
|
"arm",
|
|
13327
|
+
"arm-home",
|
|
13328
|
+
"arm-away",
|
|
13329
|
+
"arm-night",
|
|
13305
13330
|
"disarm",
|
|
13306
13331
|
"light",
|
|
13307
|
-
"alert"
|
|
13332
|
+
"alert",
|
|
13333
|
+
"camera"
|
|
13308
13334
|
]);
|
|
13309
13335
|
/** A single tap-through action button. */
|
|
13310
13336
|
var NotificationActionSchema = object({
|
|
@@ -13504,6 +13530,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13504
13530
|
targetId: string(),
|
|
13505
13531
|
enabled: boolean()
|
|
13506
13532
|
}), _void(), { kind: "mutation" });
|
|
13533
|
+
new Set([
|
|
13534
|
+
{
|
|
13535
|
+
id: "person",
|
|
13536
|
+
name: "Person"
|
|
13537
|
+
},
|
|
13538
|
+
{
|
|
13539
|
+
id: "vehicle",
|
|
13540
|
+
name: "Vehicle"
|
|
13541
|
+
},
|
|
13542
|
+
{
|
|
13543
|
+
id: "animal",
|
|
13544
|
+
name: "Animal"
|
|
13545
|
+
},
|
|
13546
|
+
{
|
|
13547
|
+
id: "package",
|
|
13548
|
+
name: "Package"
|
|
13549
|
+
}
|
|
13550
|
+
].map((l) => l.id));
|
|
13507
13551
|
var COCO_TO_MACRO = {
|
|
13508
13552
|
mapping: {
|
|
13509
13553
|
person: "person",
|
|
@@ -14339,6 +14383,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14339
14383
|
"alarm-triggered",
|
|
14340
14384
|
"alarm-armed",
|
|
14341
14385
|
"alarm-disarmed",
|
|
14386
|
+
"alarm-arming",
|
|
14387
|
+
"alarm-arm-refused",
|
|
14342
14388
|
"camera-online",
|
|
14343
14389
|
"camera-offline",
|
|
14344
14390
|
"camera-disabled",
|
|
@@ -17611,6 +17657,22 @@ var detectionFpsField = {
|
|
|
17611
17657
|
default: 10,
|
|
17612
17658
|
step: 1
|
|
17613
17659
|
};
|
|
17660
|
+
/**
|
|
17661
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17662
|
+
*
|
|
17663
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17664
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17665
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17666
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17667
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17668
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17669
|
+
*
|
|
17670
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17671
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17672
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17673
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17674
|
+
* that ships with an addon deploy.
|
|
17675
|
+
*/
|
|
17614
17676
|
var occupancyRecheckSecField = {
|
|
17615
17677
|
min: 0,
|
|
17616
17678
|
max: 300,
|
|
@@ -17812,15 +17874,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17812
17874
|
*/
|
|
17813
17875
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17814
17876
|
/**
|
|
17815
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17816
|
-
*
|
|
17817
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17818
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17819
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17877
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17878
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17820
17879
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17821
17880
|
* (and only render) when this is enabled.
|
|
17822
|
-
|
|
17823
|
-
|
|
17881
|
+
*
|
|
17882
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17883
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17884
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17885
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17886
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17887
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17888
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17889
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17890
|
+
*/
|
|
17891
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17824
17892
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17825
17893
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17826
17894
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -13291,11 +13291,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13291
13291
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13292
13292
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13293
13293
|
* differently.
|
|
13294
|
+
*
|
|
13295
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13296
|
+
*
|
|
13297
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13298
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13299
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13300
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13301
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13302
|
+
* honestly.
|
|
13303
|
+
*
|
|
13304
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13305
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13306
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13307
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13308
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13309
|
+
*
|
|
13310
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13311
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13312
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13313
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13314
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13294
13315
|
*/
|
|
13295
13316
|
var NotificationActionIconSchema = _enum([
|
|
13296
13317
|
"acknowledge",
|
|
13297
13318
|
"dismiss",
|
|
13298
13319
|
"silence",
|
|
13320
|
+
"snooze",
|
|
13299
13321
|
"view",
|
|
13300
13322
|
"play",
|
|
13301
13323
|
"open",
|
|
@@ -13303,9 +13325,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13303
13325
|
"lock",
|
|
13304
13326
|
"unlock",
|
|
13305
13327
|
"arm",
|
|
13328
|
+
"arm-home",
|
|
13329
|
+
"arm-away",
|
|
13330
|
+
"arm-night",
|
|
13306
13331
|
"disarm",
|
|
13307
13332
|
"light",
|
|
13308
|
-
"alert"
|
|
13333
|
+
"alert",
|
|
13334
|
+
"camera"
|
|
13309
13335
|
]);
|
|
13310
13336
|
/** A single tap-through action button. */
|
|
13311
13337
|
var NotificationActionSchema = object({
|
|
@@ -13505,6 +13531,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13505
13531
|
targetId: string(),
|
|
13506
13532
|
enabled: boolean()
|
|
13507
13533
|
}), _void(), { kind: "mutation" });
|
|
13534
|
+
new Set([
|
|
13535
|
+
{
|
|
13536
|
+
id: "person",
|
|
13537
|
+
name: "Person"
|
|
13538
|
+
},
|
|
13539
|
+
{
|
|
13540
|
+
id: "vehicle",
|
|
13541
|
+
name: "Vehicle"
|
|
13542
|
+
},
|
|
13543
|
+
{
|
|
13544
|
+
id: "animal",
|
|
13545
|
+
name: "Animal"
|
|
13546
|
+
},
|
|
13547
|
+
{
|
|
13548
|
+
id: "package",
|
|
13549
|
+
name: "Package"
|
|
13550
|
+
}
|
|
13551
|
+
].map((l) => l.id));
|
|
13508
13552
|
var COCO_TO_MACRO = {
|
|
13509
13553
|
mapping: {
|
|
13510
13554
|
person: "person",
|
|
@@ -14340,6 +14384,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14340
14384
|
"alarm-triggered",
|
|
14341
14385
|
"alarm-armed",
|
|
14342
14386
|
"alarm-disarmed",
|
|
14387
|
+
"alarm-arming",
|
|
14388
|
+
"alarm-arm-refused",
|
|
14343
14389
|
"camera-online",
|
|
14344
14390
|
"camera-offline",
|
|
14345
14391
|
"camera-disabled",
|
|
@@ -17612,6 +17658,22 @@ var detectionFpsField = {
|
|
|
17612
17658
|
default: 10,
|
|
17613
17659
|
step: 1
|
|
17614
17660
|
};
|
|
17661
|
+
/**
|
|
17662
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17663
|
+
*
|
|
17664
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17665
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17666
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17667
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17668
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17669
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17670
|
+
*
|
|
17671
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17672
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17673
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17674
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17675
|
+
* that ships with an addon deploy.
|
|
17676
|
+
*/
|
|
17615
17677
|
var occupancyRecheckSecField = {
|
|
17616
17678
|
min: 0,
|
|
17617
17679
|
max: 300,
|
|
@@ -17813,15 +17875,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17813
17875
|
*/
|
|
17814
17876
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17815
17877
|
/**
|
|
17816
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17817
|
-
*
|
|
17818
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17819
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17820
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17878
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17879
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17821
17880
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17822
17881
|
* (and only render) when this is enabled.
|
|
17823
|
-
|
|
17824
|
-
|
|
17882
|
+
*
|
|
17883
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17884
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17885
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17886
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17887
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17888
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17889
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17890
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17891
|
+
*/
|
|
17892
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17825
17893
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17826
17894
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17827
17895
|
/**
|
package/package.json
CHANGED