@camstack/addon-provider-homematic 1.2.58 → 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). */
@@ -23428,8 +23441,22 @@ var automationControlCapability = {
23428
23441
  * threshold.
23429
23442
  */
23430
23443
  var BatteryStatusSchema = object({
23431
- /** 0..100 inclusive. Firmware-reported. */
23432
- 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(),
23433
23460
  /**
23434
23461
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23435
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). */
@@ -23429,8 +23442,22 @@ var automationControlCapability = {
23429
23442
  * threshold.
23430
23443
  */
23431
23444
  var BatteryStatusSchema = object({
23432
- /** 0..100 inclusive. Firmware-reported. */
23433
- 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(),
23434
23461
  /**
23435
23462
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23436
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.58",
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",