@mega-yfue/eufy-sdk 0.2.0-beta.23 → 0.2.0-beta.25
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/index.js +35 -14
- package/dist/index.js.map +2 -2
- package/dist/model/capabilities/lock.d.ts +15 -12
- package/package.json +1 -1
|
@@ -66,32 +66,34 @@ declare const overP2p: (ctx: AvailabilityContext) => boolean;
|
|
|
66
66
|
*/
|
|
67
67
|
export declare const LOCK_MEMBERS: {
|
|
68
68
|
/**
|
|
69
|
-
* The lock's own state,
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* points at the `lock`/`unlock` methods — a single `write` cannot express two verbs that carry no
|
|
73
|
-
* value.
|
|
69
|
+
* The lock's own state, verified on param 6000: "4" = locked, "3" = unlocked.
|
|
70
|
+
* `writtenElsewhere` points at the `lock`/`unlock` methods — a single `write` cannot express two
|
|
71
|
+
* verbs that carry no value.
|
|
74
72
|
*/
|
|
75
73
|
readonly locked: {
|
|
76
|
-
readonly param:
|
|
74
|
+
readonly param: 6000;
|
|
77
75
|
readonly type: "bool";
|
|
78
76
|
readonly kind: "boolean";
|
|
79
|
-
readonly provenance: "
|
|
77
|
+
readonly provenance: "verified";
|
|
80
78
|
readonly writtenElsewhere: true;
|
|
81
|
-
readonly
|
|
79
|
+
readonly coerce: (raw: string | number | boolean) => boolean;
|
|
80
|
+
readonly description: "Lock state, true=locked (verified: param 6000, 4=locked, 3=unlocked).";
|
|
82
81
|
};
|
|
83
82
|
/**
|
|
84
|
-
* Cell charge as a percentage, on
|
|
83
|
+
* Cell charge as a percentage, on param 1101 or smart-lock param 6001. Named `battery`
|
|
85
84
|
* within this capability rather than deferring to the `battery` capability: a lock resolves as a lock,
|
|
86
85
|
* so the accessor is `dev.lock().battery`.
|
|
87
86
|
*/
|
|
88
87
|
readonly battery: {
|
|
89
88
|
readonly param: 1101;
|
|
89
|
+
readonly readAliases: readonly [{
|
|
90
|
+
readonly paramType: 6001;
|
|
91
|
+
}];
|
|
90
92
|
readonly type: "number";
|
|
91
93
|
readonly unit: "%";
|
|
92
94
|
readonly kind: "percent";
|
|
93
95
|
readonly provenance: "verified";
|
|
94
|
-
readonly description: "Lock battery level 0-100 (verified: param 1101).";
|
|
96
|
+
readonly description: "Lock battery level 0-100 (verified: param 1101, alias 6001).";
|
|
95
97
|
};
|
|
96
98
|
/**
|
|
97
99
|
* Link quality in dBm as the lock measures it, on the shared param 1141. Both actuation methods here
|
|
@@ -235,8 +237,9 @@ export declare const LOCK_MEMBERS: {
|
|
|
235
237
|
};
|
|
236
238
|
};
|
|
237
239
|
/**
|
|
238
|
-
* `lock` — smart lock. `locked`
|
|
239
|
-
*
|
|
240
|
+
* `lock` — smart lock. `locked` reports lock state via verified param 6000 (4=locked, 3=unlocked);
|
|
241
|
+
* a device that reports no stable state param carries its transitions on the `lockState` event instead,
|
|
242
|
+
* whose payload names the decoded `locked`.
|
|
240
243
|
*/
|
|
241
244
|
export declare const LOCK: CapabilityModule;
|
|
242
245
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.25",
|
|
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",
|