@camstack/addon-provider-tuya 0.2.56 → 0.2.58
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 +45 -4
- package/dist/addon.mjs +45 -4
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20020,7 +20020,20 @@ var RecentTracksQueryInput = object({
|
|
|
20020
20020
|
projection: TrackProjectionSchema.optional(),
|
|
20021
20021
|
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
20022
20022
|
* feed lists passages; parking records live on the stationary registry. */
|
|
20023
|
-
includeStationary: boolean().optional()
|
|
20023
|
+
includeStationary: boolean().optional(),
|
|
20024
|
+
/**
|
|
20025
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
20026
|
+
*
|
|
20027
|
+
* The same filter `listTracks` takes, because the timeline's class chips must
|
|
20028
|
+
* mean the same thing whether the scope is one camera or twelve. Until this
|
|
20029
|
+
* existed the scoped feed downloaded a page and narrowed it on the phone
|
|
20030
|
+
* while the single-camera path narrowed the read — one filter, two costs.
|
|
20031
|
+
*
|
|
20032
|
+
* A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
|
|
20033
|
+
* whose class list is unreadable are kept, and the client's rule stays the
|
|
20034
|
+
* exact one.
|
|
20035
|
+
*/
|
|
20036
|
+
classes: array(string()).optional()
|
|
20024
20037
|
});
|
|
20025
20038
|
var RecentTracksPageSchema = object({
|
|
20026
20039
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20407,7 +20420,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20407
20420
|
/** Include stationary-promoted rows (parked objects handed to the
|
|
20408
20421
|
* stationary registry). Default false: the timeline lists passages,
|
|
20409
20422
|
* not parking records (operator decision, 2026-08-15). */
|
|
20410
|
-
includeStationary: boolean().optional()
|
|
20423
|
+
includeStationary: boolean().optional(),
|
|
20424
|
+
/**
|
|
20425
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
20426
|
+
*
|
|
20427
|
+
* Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
|
|
20428
|
+
* on a day of rows already downloaded. The zone filter had been moved
|
|
20429
|
+
* here for exactly that reason — and it is also what lets the rows come
|
|
20430
|
+
* back `slim` — but the class filter was left behind, so a narrow
|
|
20431
|
+
* selection was still a wide read followed by a wide discard.
|
|
20432
|
+
*
|
|
20433
|
+
* Empty is "show all", not "nothing matches": a chip row with nothing
|
|
20434
|
+
* selected is an operator who has not narrowed anything, and an empty
|
|
20435
|
+
* timeline would read as a camera that saw nothing.
|
|
20436
|
+
*/
|
|
20437
|
+
classes: array(string()).optional()
|
|
20411
20438
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
20412
20439
|
kind: "mutation",
|
|
20413
20440
|
auth: "admin"
|
|
@@ -24176,8 +24203,22 @@ var automationControlCapability = {
|
|
|
24176
24203
|
* threshold.
|
|
24177
24204
|
*/
|
|
24178
24205
|
var BatteryStatusSchema = object({
|
|
24179
|
-
/**
|
|
24180
|
-
|
|
24206
|
+
/**
|
|
24207
|
+
* 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
|
|
24208
|
+
* provider has registered the capability but no reading has landed.
|
|
24209
|
+
*
|
|
24210
|
+
* It is nullable because it was not, and the only value a provider could
|
|
24211
|
+
* seed with was `0`. A battery camera behind an NVR therefore announced
|
|
24212
|
+
* itself at 0% on every start and corrected itself a moment later, which is
|
|
24213
|
+
* indistinguishable from a real flat battery: it fires the low-battery alert
|
|
24214
|
+
* every time the hub restarts. Unknown is not empty (D315), and on a battery
|
|
24215
|
+
* reading the difference is an alarm.
|
|
24216
|
+
*
|
|
24217
|
+
* `vacuum-control` and `lawn-mower-control` already model it this way.
|
|
24218
|
+
* Consumers must SKIP a null rather than coerce it — `battery-band` already
|
|
24219
|
+
* declines to band a non-finite reading, which is the correct shape.
|
|
24220
|
+
*/
|
|
24221
|
+
percentage: number().min(0).max(100).nullable(),
|
|
24181
24222
|
/**
|
|
24182
24223
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
24183
24224
|
* Reolink-specific for the Solar Panel 2 accessory (will become
|
package/dist/addon.mjs
CHANGED
|
@@ -20019,7 +20019,20 @@ var RecentTracksQueryInput = object({
|
|
|
20019
20019
|
projection: TrackProjectionSchema.optional(),
|
|
20020
20020
|
/** Include stationary-promoted rows (parked objects). Default false: the
|
|
20021
20021
|
* feed lists passages; parking records live on the stationary registry. */
|
|
20022
|
-
includeStationary: boolean().optional()
|
|
20022
|
+
includeStationary: boolean().optional(),
|
|
20023
|
+
/**
|
|
20024
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
20025
|
+
*
|
|
20026
|
+
* The same filter `listTracks` takes, because the timeline's class chips must
|
|
20027
|
+
* mean the same thing whether the scope is one camera or twelve. Until this
|
|
20028
|
+
* existed the scoped feed downloaded a page and narrowed it on the phone
|
|
20029
|
+
* while the single-camera path narrowed the read — one filter, two costs.
|
|
20030
|
+
*
|
|
20031
|
+
* A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
|
|
20032
|
+
* whose class list is unreadable are kept, and the client's rule stays the
|
|
20033
|
+
* exact one.
|
|
20034
|
+
*/
|
|
20035
|
+
classes: array(string()).optional()
|
|
20023
20036
|
});
|
|
20024
20037
|
var RecentTracksPageSchema = object({
|
|
20025
20038
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20406,7 +20419,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20406
20419
|
/** Include stationary-promoted rows (parked objects handed to the
|
|
20407
20420
|
* stationary registry). Default false: the timeline lists passages,
|
|
20408
20421
|
* not parking records (operator decision, 2026-08-15). */
|
|
20409
|
-
includeStationary: boolean().optional()
|
|
20422
|
+
includeStationary: boolean().optional(),
|
|
20423
|
+
/**
|
|
20424
|
+
* Restrict to these track classes. ABSENT or EMPTY means no filter.
|
|
20425
|
+
*
|
|
20426
|
+
* Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
|
|
20427
|
+
* on a day of rows already downloaded. The zone filter had been moved
|
|
20428
|
+
* here for exactly that reason — and it is also what lets the rows come
|
|
20429
|
+
* back `slim` — but the class filter was left behind, so a narrow
|
|
20430
|
+
* selection was still a wide read followed by a wide discard.
|
|
20431
|
+
*
|
|
20432
|
+
* Empty is "show all", not "nothing matches": a chip row with nothing
|
|
20433
|
+
* selected is an operator who has not narrowed anything, and an empty
|
|
20434
|
+
* timeline would read as a camera that saw nothing.
|
|
20435
|
+
*/
|
|
20436
|
+
classes: array(string()).optional()
|
|
20410
20437
|
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
|
|
20411
20438
|
kind: "mutation",
|
|
20412
20439
|
auth: "admin"
|
|
@@ -24175,8 +24202,22 @@ var automationControlCapability = {
|
|
|
24175
24202
|
* threshold.
|
|
24176
24203
|
*/
|
|
24177
24204
|
var BatteryStatusSchema = object({
|
|
24178
|
-
/**
|
|
24179
|
-
|
|
24205
|
+
/**
|
|
24206
|
+
* 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
|
|
24207
|
+
* provider has registered the capability but no reading has landed.
|
|
24208
|
+
*
|
|
24209
|
+
* It is nullable because it was not, and the only value a provider could
|
|
24210
|
+
* seed with was `0`. A battery camera behind an NVR therefore announced
|
|
24211
|
+
* itself at 0% on every start and corrected itself a moment later, which is
|
|
24212
|
+
* indistinguishable from a real flat battery: it fires the low-battery alert
|
|
24213
|
+
* every time the hub restarts. Unknown is not empty (D315), and on a battery
|
|
24214
|
+
* reading the difference is an alarm.
|
|
24215
|
+
*
|
|
24216
|
+
* `vacuum-control` and `lawn-mower-control` already model it this way.
|
|
24217
|
+
* Consumers must SKIP a null rather than coerce it — `battery-band` already
|
|
24218
|
+
* declines to band a non-finite reading, which is the correct shape.
|
|
24219
|
+
*/
|
|
24220
|
+
percentage: number().min(0).max(100).nullable(),
|
|
24180
24221
|
/**
|
|
24181
24222
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
24182
24223
|
* 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-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.58",
|
|
4
4
|
"description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|