@camstack/addon-provider-tuya 0.2.57 → 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 +30 -3
- package/dist/addon.mjs +30 -3
- 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). */
|
|
@@ -24190,8 +24203,22 @@ var automationControlCapability = {
|
|
|
24190
24203
|
* threshold.
|
|
24191
24204
|
*/
|
|
24192
24205
|
var BatteryStatusSchema = object({
|
|
24193
|
-
/**
|
|
24194
|
-
|
|
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(),
|
|
24195
24222
|
/**
|
|
24196
24223
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
24197
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). */
|
|
@@ -24189,8 +24202,22 @@ var automationControlCapability = {
|
|
|
24189
24202
|
* threshold.
|
|
24190
24203
|
*/
|
|
24191
24204
|
var BatteryStatusSchema = object({
|
|
24192
|
-
/**
|
|
24193
|
-
|
|
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(),
|
|
24194
24221
|
/**
|
|
24195
24222
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
24196
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",
|