@camstack/addon-provider-homematic 1.2.57 → 1.2.59

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 CHANGED
@@ -19258,7 +19258,20 @@ var RecentTracksQueryInput = object({
19258
19258
  projection: TrackProjectionSchema.optional(),
19259
19259
  /** Include stationary-promoted rows (parked objects). Default false: the
19260
19260
  * feed lists passages; parking records live on the stationary registry. */
19261
- includeStationary: boolean().optional()
19261
+ includeStationary: boolean().optional(),
19262
+ /**
19263
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19264
+ *
19265
+ * The same filter `listTracks` takes, because the timeline's class chips must
19266
+ * mean the same thing whether the scope is one camera or twelve. Until this
19267
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19268
+ * while the single-camera path narrowed the read — one filter, two costs.
19269
+ *
19270
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19271
+ * whose class list is unreadable are kept, and the client's rule stays the
19272
+ * exact one.
19273
+ */
19274
+ classes: array(string()).optional()
19262
19275
  });
19263
19276
  var RecentTracksPageSchema = object({
19264
19277
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19645,7 +19658,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19645
19658
  /** Include stationary-promoted rows (parked objects handed to the
19646
19659
  * stationary registry). Default false: the timeline lists passages,
19647
19660
  * not parking records (operator decision, 2026-08-15). */
19648
- includeStationary: boolean().optional()
19661
+ includeStationary: boolean().optional(),
19662
+ /**
19663
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19664
+ *
19665
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19666
+ * on a day of rows already downloaded. The zone filter had been moved
19667
+ * here for exactly that reason — and it is also what lets the rows come
19668
+ * back `slim` — but the class filter was left behind, so a narrow
19669
+ * selection was still a wide read followed by a wide discard.
19670
+ *
19671
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19672
+ * selected is an operator who has not narrowed anything, and an empty
19673
+ * timeline would read as a camera that saw nothing.
19674
+ */
19675
+ classes: array(string()).optional()
19649
19676
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19650
19677
  kind: "mutation",
19651
19678
  auth: "admin"
@@ -23414,8 +23441,22 @@ var automationControlCapability = {
23414
23441
  * threshold.
23415
23442
  */
23416
23443
  var BatteryStatusSchema = object({
23417
- /** 0..100 inclusive. Firmware-reported. */
23418
- percentage: number().min(0).max(100),
23444
+ /**
23445
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23446
+ * provider has registered the capability but no reading has landed.
23447
+ *
23448
+ * It is nullable because it was not, and the only value a provider could
23449
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23450
+ * itself at 0% on every start and corrected itself a moment later, which is
23451
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23452
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23453
+ * reading the difference is an alarm.
23454
+ *
23455
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23456
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23457
+ * declines to band a non-finite reading, which is the correct shape.
23458
+ */
23459
+ percentage: number().min(0).max(100).nullable(),
23419
23460
  /**
23420
23461
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23421
23462
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19259,7 +19259,20 @@ var RecentTracksQueryInput = object({
19259
19259
  projection: TrackProjectionSchema.optional(),
19260
19260
  /** Include stationary-promoted rows (parked objects). Default false: the
19261
19261
  * feed lists passages; parking records live on the stationary registry. */
19262
- includeStationary: boolean().optional()
19262
+ includeStationary: boolean().optional(),
19263
+ /**
19264
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19265
+ *
19266
+ * The same filter `listTracks` takes, because the timeline's class chips must
19267
+ * mean the same thing whether the scope is one camera or twelve. Until this
19268
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19269
+ * while the single-camera path narrowed the read — one filter, two costs.
19270
+ *
19271
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19272
+ * whose class list is unreadable are kept, and the client's rule stays the
19273
+ * exact one.
19274
+ */
19275
+ classes: array(string()).optional()
19263
19276
  });
19264
19277
  var RecentTracksPageSchema = object({
19265
19278
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19646,7 +19659,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19646
19659
  /** Include stationary-promoted rows (parked objects handed to the
19647
19660
  * stationary registry). Default false: the timeline lists passages,
19648
19661
  * not parking records (operator decision, 2026-08-15). */
19649
- includeStationary: boolean().optional()
19662
+ includeStationary: boolean().optional(),
19663
+ /**
19664
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19665
+ *
19666
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19667
+ * on a day of rows already downloaded. The zone filter had been moved
19668
+ * here for exactly that reason — and it is also what lets the rows come
19669
+ * back `slim` — but the class filter was left behind, so a narrow
19670
+ * selection was still a wide read followed by a wide discard.
19671
+ *
19672
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19673
+ * selected is an operator who has not narrowed anything, and an empty
19674
+ * timeline would read as a camera that saw nothing.
19675
+ */
19676
+ classes: array(string()).optional()
19650
19677
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19651
19678
  kind: "mutation",
19652
19679
  auth: "admin"
@@ -23415,8 +23442,22 @@ var automationControlCapability = {
23415
23442
  * threshold.
23416
23443
  */
23417
23444
  var BatteryStatusSchema = object({
23418
- /** 0..100 inclusive. Firmware-reported. */
23419
- percentage: number().min(0).max(100),
23445
+ /**
23446
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23447
+ * provider has registered the capability but no reading has landed.
23448
+ *
23449
+ * It is nullable because it was not, and the only value a provider could
23450
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23451
+ * itself at 0% on every start and corrected itself a moment later, which is
23452
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23453
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23454
+ * reading the difference is an alarm.
23455
+ *
23456
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23457
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23458
+ * declines to band a non-finite reading, which is the correct shape.
23459
+ */
23460
+ percentage: number().min(0).max(100).nullable(),
23420
23461
  /**
23421
23462
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23422
23463
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.57",
3
+ "version": "1.2.59",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",