@mega-yfue/eufy-sdk 0.5.0-beta.27 → 0.5.0-beta.29
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.
|
@@ -271,6 +271,10 @@ export declare const MOTION_MEMBERS: {
|
|
|
271
271
|
* The raw sensitivity an indoor camera reports, on the one id whose write takes a `1700` control
|
|
272
272
|
* payload carrying an index rather than the `1350` envelope its siblings use — a frame-shape
|
|
273
273
|
* difference `sensitivityCommand` resolves from the scale. `unexposed` like its three siblings.
|
|
274
|
+
*
|
|
275
|
+
* Some devices report 6041 as a base64 JSON list of per-sensor entries
|
|
276
|
+
* (`{"list":[{"sensor_id":…,"sensitivity":…}]}`) rather than a scalar. That value is stored verbatim
|
|
277
|
+
* and this getter answers `undefined` for it: only the scalar form is confirmed to be this step.
|
|
274
278
|
*/
|
|
275
279
|
readonly indoorSensitivity: {
|
|
276
280
|
readonly param: 6041;
|
|
@@ -279,6 +283,7 @@ export declare const MOTION_MEMBERS: {
|
|
|
279
283
|
readonly provenance: "verified";
|
|
280
284
|
readonly unexposed: true;
|
|
281
285
|
readonly description: "Raw sensitivity an indoor camera reports (verified: param 6041).";
|
|
286
|
+
readonly decode: (raw: unknown) => number | undefined;
|
|
282
287
|
};
|
|
283
288
|
/**
|
|
284
289
|
* The raw sensitivity on the INVERTED seven-step camera scale — a HIGHER number is LESS sensitive, so
|
|
@@ -247,6 +247,12 @@ export interface AvailabilityContext {
|
|
|
247
247
|
homeBaseAttached?: boolean;
|
|
248
248
|
/** Serial of the covering station, when the device record names one. */
|
|
249
249
|
stationSerial?: string;
|
|
250
|
+
/**
|
|
251
|
+
* The vendor DeviceType of the station the device hangs off, when it is attached
|
|
252
|
+
* and the station's record states one. Answers which station family a command addressed to an
|
|
253
|
+
* attached device is carried through.
|
|
254
|
+
*/
|
|
255
|
+
stationDeviceType?: number;
|
|
250
256
|
}
|
|
251
257
|
export interface CommandContext extends AvailabilityContext {
|
|
252
258
|
/** Device channel (0 for standalone, `device_channel` on a HomeBase). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.29",
|
|
4
4
|
"description": "One typed TypeScript client for the Anker eufy v6 cloud — capability-driven devices, realtime events over P2P/MQTT/push, and live media",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "mega-yfue",
|