@camstack/addon-provider-gree 0.2.55 → 0.2.57

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
@@ -19186,7 +19186,20 @@ var RecentTracksQueryInput = object({
19186
19186
  projection: TrackProjectionSchema.optional(),
19187
19187
  /** Include stationary-promoted rows (parked objects). Default false: the
19188
19188
  * feed lists passages; parking records live on the stationary registry. */
19189
- includeStationary: boolean().optional()
19189
+ includeStationary: boolean().optional(),
19190
+ /**
19191
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19192
+ *
19193
+ * The same filter `listTracks` takes, because the timeline's class chips must
19194
+ * mean the same thing whether the scope is one camera or twelve. Until this
19195
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19196
+ * while the single-camera path narrowed the read — one filter, two costs.
19197
+ *
19198
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19199
+ * whose class list is unreadable are kept, and the client's rule stays the
19200
+ * exact one.
19201
+ */
19202
+ classes: array(string()).optional()
19190
19203
  });
19191
19204
  var RecentTracksPageSchema = object({
19192
19205
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19573,7 +19586,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19573
19586
  /** Include stationary-promoted rows (parked objects handed to the
19574
19587
  * stationary registry). Default false: the timeline lists passages,
19575
19588
  * not parking records (operator decision, 2026-08-15). */
19576
- includeStationary: boolean().optional()
19589
+ includeStationary: boolean().optional(),
19590
+ /**
19591
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19592
+ *
19593
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19594
+ * on a day of rows already downloaded. The zone filter had been moved
19595
+ * here for exactly that reason — and it is also what lets the rows come
19596
+ * back `slim` — but the class filter was left behind, so a narrow
19597
+ * selection was still a wide read followed by a wide discard.
19598
+ *
19599
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19600
+ * selected is an operator who has not narrowed anything, and an empty
19601
+ * timeline would read as a camera that saw nothing.
19602
+ */
19603
+ classes: array(string()).optional()
19577
19604
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19578
19605
  kind: "mutation",
19579
19606
  auth: "admin"
@@ -23342,8 +23369,22 @@ var automationControlCapability = {
23342
23369
  * threshold.
23343
23370
  */
23344
23371
  var BatteryStatusSchema = object({
23345
- /** 0..100 inclusive. Firmware-reported. */
23346
- percentage: number().min(0).max(100),
23372
+ /**
23373
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23374
+ * provider has registered the capability but no reading has landed.
23375
+ *
23376
+ * It is nullable because it was not, and the only value a provider could
23377
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23378
+ * itself at 0% on every start and corrected itself a moment later, which is
23379
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23380
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23381
+ * reading the difference is an alarm.
23382
+ *
23383
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23384
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23385
+ * declines to band a non-finite reading, which is the correct shape.
23386
+ */
23387
+ percentage: number().min(0).max(100).nullable(),
23347
23388
  /**
23348
23389
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23349
23390
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19185,7 +19185,20 @@ var RecentTracksQueryInput = object({
19185
19185
  projection: TrackProjectionSchema.optional(),
19186
19186
  /** Include stationary-promoted rows (parked objects). Default false: the
19187
19187
  * feed lists passages; parking records live on the stationary registry. */
19188
- includeStationary: boolean().optional()
19188
+ includeStationary: boolean().optional(),
19189
+ /**
19190
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19191
+ *
19192
+ * The same filter `listTracks` takes, because the timeline's class chips must
19193
+ * mean the same thing whether the scope is one camera or twelve. Until this
19194
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19195
+ * while the single-camera path narrowed the read — one filter, two costs.
19196
+ *
19197
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19198
+ * whose class list is unreadable are kept, and the client's rule stays the
19199
+ * exact one.
19200
+ */
19201
+ classes: array(string()).optional()
19189
19202
  });
19190
19203
  var RecentTracksPageSchema = object({
19191
19204
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19572,7 +19585,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19572
19585
  /** Include stationary-promoted rows (parked objects handed to the
19573
19586
  * stationary registry). Default false: the timeline lists passages,
19574
19587
  * not parking records (operator decision, 2026-08-15). */
19575
- includeStationary: boolean().optional()
19588
+ includeStationary: boolean().optional(),
19589
+ /**
19590
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19591
+ *
19592
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19593
+ * on a day of rows already downloaded. The zone filter had been moved
19594
+ * here for exactly that reason — and it is also what lets the rows come
19595
+ * back `slim` — but the class filter was left behind, so a narrow
19596
+ * selection was still a wide read followed by a wide discard.
19597
+ *
19598
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19599
+ * selected is an operator who has not narrowed anything, and an empty
19600
+ * timeline would read as a camera that saw nothing.
19601
+ */
19602
+ classes: array(string()).optional()
19576
19603
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19577
19604
  kind: "mutation",
19578
19605
  auth: "admin"
@@ -23341,8 +23368,22 @@ var automationControlCapability = {
23341
23368
  * threshold.
23342
23369
  */
23343
23370
  var BatteryStatusSchema = object({
23344
- /** 0..100 inclusive. Firmware-reported. */
23345
- percentage: number().min(0).max(100),
23371
+ /**
23372
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23373
+ * provider has registered the capability but no reading has landed.
23374
+ *
23375
+ * It is nullable because it was not, and the only value a provider could
23376
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23377
+ * itself at 0% on every start and corrected itself a moment later, which is
23378
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23379
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23380
+ * reading the difference is an alarm.
23381
+ *
23382
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23383
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23384
+ * declines to band a non-finite reading, which is the correct shape.
23385
+ */
23386
+ percentage: number().min(0).max(100).nullable(),
23346
23387
  /**
23347
23388
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23348
23389
  * 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-gree",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
4
4
  "description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
5
5
  "keywords": [
6
6
  "camstack",