@camstack/addon-provider-homematic 1.2.76 → 1.2.78
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 +66 -38
- package/dist/addon.mjs +66 -38
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7858,17 +7858,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7858
7858
|
/**
|
|
7859
7859
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7860
7860
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7861
|
-
* - `off`
|
|
7862
|
-
* - `events`
|
|
7863
|
-
* - `continuous`
|
|
7864
|
-
*
|
|
7865
|
-
*
|
|
7866
|
-
*
|
|
7861
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7862
|
+
* - `events` — every band records around triggers only.
|
|
7863
|
+
* - `continuous` — at least one band records continuously.
|
|
7864
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7865
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7866
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7867
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7868
|
+
*
|
|
7869
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7870
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7871
|
+
* has no effect.
|
|
7872
|
+
*
|
|
7873
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7874
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7875
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7876
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7877
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7867
7878
|
*/
|
|
7868
7879
|
var RecordingStorageModeSchema = _enum([
|
|
7869
7880
|
"off",
|
|
7870
7881
|
"events",
|
|
7871
|
-
"continuous"
|
|
7882
|
+
"continuous",
|
|
7883
|
+
"on-device-decision"
|
|
7872
7884
|
]);
|
|
7873
7885
|
/**
|
|
7874
7886
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7918,22 +7930,7 @@ var RecordingTriggersSchema = object({
|
|
|
7918
7930
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7919
7931
|
* registrare.
|
|
7920
7932
|
*/
|
|
7921
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7922
|
-
/**
|
|
7923
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7924
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7925
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7926
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7927
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7928
|
-
*
|
|
7929
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7930
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7931
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7932
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7933
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7934
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7935
|
-
*/
|
|
7936
|
-
deviceSignal: boolean().optional()
|
|
7933
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7937
7934
|
});
|
|
7938
7935
|
/**
|
|
7939
7936
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -7963,13 +7960,28 @@ var RecordingBandSchema = object({
|
|
|
7963
7960
|
end: string().regex(HHMM),
|
|
7964
7961
|
mode: RecordingBandModeSchema,
|
|
7965
7962
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
7963
|
+
/**
|
|
7964
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
7965
|
+
*
|
|
7966
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
7967
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
7968
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
7969
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
7970
|
+
* expression of the broker's retention, in different units, in a different
|
|
7971
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
7972
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
7973
|
+
* left to configure here.
|
|
7974
|
+
*
|
|
7975
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
7976
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
7977
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
7978
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
7979
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
7980
|
+
*/
|
|
7966
7981
|
preBufferSec: number().min(0).optional(),
|
|
7967
7982
|
postBufferSec: number().min(0).optional()
|
|
7968
7983
|
});
|
|
7969
|
-
({
|
|
7970
|
-
preBufferSec: 15,
|
|
7971
|
-
postBufferSec: 30
|
|
7972
|
-
}).postBufferSec * 1e3;
|
|
7984
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
7973
7985
|
/**
|
|
7974
7986
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7975
7987
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8017,8 +8029,29 @@ var RecordingConfigSchema = object({
|
|
|
8017
8029
|
* "off" is the absence of a covering band, never a band value.
|
|
8018
8030
|
*/
|
|
8019
8031
|
bands: array(RecordingBandSchema).default([]),
|
|
8032
|
+
/**
|
|
8033
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8034
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8035
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8036
|
+
* recording intent that is not a band.
|
|
8037
|
+
*
|
|
8038
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8039
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8040
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8041
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8042
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8043
|
+
* job however long it is, and closes one pad after the fall.
|
|
8044
|
+
*
|
|
8045
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8046
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8047
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8048
|
+
*/
|
|
8049
|
+
deviceDecision: boolean().optional(),
|
|
8020
8050
|
retention: RecordingRetentionSchema.optional()
|
|
8021
|
-
}).strict()
|
|
8051
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8052
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8053
|
+
path: ["bands"]
|
|
8054
|
+
});
|
|
8022
8055
|
/**
|
|
8023
8056
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8024
8057
|
*
|
|
@@ -21100,11 +21133,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21100
21133
|
});
|
|
21101
21134
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21102
21135
|
var CameraRecordingStatusSchema = object({
|
|
21103
|
-
mode:
|
|
21104
|
-
"off",
|
|
21105
|
-
"continuous",
|
|
21106
|
-
"events"
|
|
21107
|
-
]),
|
|
21136
|
+
mode: RecordingStorageModeSchema,
|
|
21108
21137
|
active: boolean(),
|
|
21109
21138
|
storageBytes: number()
|
|
21110
21139
|
});
|
|
@@ -29358,11 +29387,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29358
29387
|
var RecordingStatusSchema = object({
|
|
29359
29388
|
deviceId: number(),
|
|
29360
29389
|
enabled: boolean(),
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
]),
|
|
29390
|
+
/** THE derived storage mode, from the one definition
|
|
29391
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29392
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29393
|
+
activeMode: RecordingStorageModeSchema,
|
|
29366
29394
|
nodeId: string(),
|
|
29367
29395
|
storageBytes: number()
|
|
29368
29396
|
});
|
package/dist/addon.mjs
CHANGED
|
@@ -7859,17 +7859,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
7859
7859
|
/**
|
|
7860
7860
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
7861
7861
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
7862
|
-
* - `off`
|
|
7863
|
-
* - `events`
|
|
7864
|
-
* - `continuous`
|
|
7865
|
-
*
|
|
7866
|
-
*
|
|
7867
|
-
*
|
|
7862
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
7863
|
+
* - `events` — every band records around triggers only.
|
|
7864
|
+
* - `continuous` — at least one band records continuously.
|
|
7865
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
7866
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
7867
|
+
* is no schedule to author, because there is no hour to program — see
|
|
7868
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
7869
|
+
*
|
|
7870
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
7871
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
7872
|
+
* has no effect.
|
|
7873
|
+
*
|
|
7874
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
7875
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
7876
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
7877
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
7878
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
7868
7879
|
*/
|
|
7869
7880
|
var RecordingStorageModeSchema = _enum([
|
|
7870
7881
|
"off",
|
|
7871
7882
|
"events",
|
|
7872
|
-
"continuous"
|
|
7883
|
+
"continuous",
|
|
7884
|
+
"on-device-decision"
|
|
7873
7885
|
]);
|
|
7874
7886
|
/**
|
|
7875
7887
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -7919,22 +7931,7 @@ var RecordingTriggersSchema = object({
|
|
|
7919
7931
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
7920
7932
|
* registrare.
|
|
7921
7933
|
*/
|
|
7922
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7923
|
-
/**
|
|
7924
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
7925
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
7926
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
7927
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
7928
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
7929
|
-
*
|
|
7930
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
7931
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
7932
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
7933
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
7934
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
7935
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
7936
|
-
*/
|
|
7937
|
-
deviceSignal: boolean().optional()
|
|
7934
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
7938
7935
|
});
|
|
7939
7936
|
/**
|
|
7940
7937
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -7964,13 +7961,28 @@ var RecordingBandSchema = object({
|
|
|
7964
7961
|
end: string().regex(HHMM),
|
|
7965
7962
|
mode: RecordingBandModeSchema,
|
|
7966
7963
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
7964
|
+
/**
|
|
7965
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
7966
|
+
*
|
|
7967
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
7968
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
7969
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
7970
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
7971
|
+
* expression of the broker's retention, in different units, in a different
|
|
7972
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
7973
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
7974
|
+
* left to configure here.
|
|
7975
|
+
*
|
|
7976
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
7977
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
7978
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
7979
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
7980
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
7981
|
+
*/
|
|
7967
7982
|
preBufferSec: number().min(0).optional(),
|
|
7968
7983
|
postBufferSec: number().min(0).optional()
|
|
7969
7984
|
});
|
|
7970
|
-
({
|
|
7971
|
-
preBufferSec: 15,
|
|
7972
|
-
postBufferSec: 30
|
|
7973
|
-
}).postBufferSec * 1e3;
|
|
7985
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
7974
7986
|
/**
|
|
7975
7987
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
7976
7988
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -8018,8 +8030,29 @@ var RecordingConfigSchema = object({
|
|
|
8018
8030
|
* "off" is the absence of a covering band, never a band value.
|
|
8019
8031
|
*/
|
|
8020
8032
|
bands: array(RecordingBandSchema).default([]),
|
|
8033
|
+
/**
|
|
8034
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8035
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8036
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8037
|
+
* recording intent that is not a band.
|
|
8038
|
+
*
|
|
8039
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8040
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8041
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8042
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8043
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8044
|
+
* job however long it is, and closes one pad after the fall.
|
|
8045
|
+
*
|
|
8046
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8047
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8048
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8049
|
+
*/
|
|
8050
|
+
deviceDecision: boolean().optional(),
|
|
8021
8051
|
retention: RecordingRetentionSchema.optional()
|
|
8022
|
-
}).strict()
|
|
8052
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8053
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8054
|
+
path: ["bands"]
|
|
8055
|
+
});
|
|
8023
8056
|
/**
|
|
8024
8057
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8025
8058
|
*
|
|
@@ -21101,11 +21134,7 @@ var CameraAudioStatusSchema = object({
|
|
|
21101
21134
|
});
|
|
21102
21135
|
/** Recording block — null when no recording cap is active for this device. */
|
|
21103
21136
|
var CameraRecordingStatusSchema = object({
|
|
21104
|
-
mode:
|
|
21105
|
-
"off",
|
|
21106
|
-
"continuous",
|
|
21107
|
-
"events"
|
|
21108
|
-
]),
|
|
21137
|
+
mode: RecordingStorageModeSchema,
|
|
21109
21138
|
active: boolean(),
|
|
21110
21139
|
storageBytes: number()
|
|
21111
21140
|
});
|
|
@@ -29359,11 +29388,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
29359
29388
|
var RecordingStatusSchema = object({
|
|
29360
29389
|
deviceId: number(),
|
|
29361
29390
|
enabled: boolean(),
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
]),
|
|
29391
|
+
/** THE derived storage mode, from the one definition
|
|
29392
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
29393
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
29394
|
+
activeMode: RecordingStorageModeSchema,
|
|
29367
29395
|
nodeId: string(),
|
|
29368
29396
|
storageBytes: number()
|
|
29369
29397
|
});
|
package/package.json
CHANGED