@mega-yfue/eufy-sdk 0.2.0-beta.24 → 0.2.0-beta.26
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.
|
@@ -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/dist/model/classify.d.ts
CHANGED
|
@@ -55,7 +55,9 @@ export declare function codecForType(deviceType: number): Codec | undefined;
|
|
|
55
55
|
* EXCEPT `T8520`-prefixed which can be lock variants — still lock.
|
|
56
56
|
* - `T74xx` → **lock** (SmartSafe 7400-series).
|
|
57
57
|
* - `T80xx` / `T8001` / `T8002` / `T8010` / `T8030` / `T8023` / `T8025` → **station**
|
|
58
|
-
* (HomeBase / HomeBase 2 / 3 / Mini),
|
|
58
|
+
* (HomeBase / HomeBase 2 / 3 / Mini), `T9000` (the app's own model registry files it as family
|
|
59
|
+
* `STATION_9000`, the one station family outside the T8 band), and `T8N00` (NVR) / `T8E00` (PoE
|
|
60
|
+
* NVR) → station.
|
|
59
61
|
* - `T89xx` (entry/motion/water/siren sensors, e.g. T8900/T8910/T8920) → **sensor**.
|
|
60
62
|
* - `T87xx` keypad (`T8960`) → **keypad**.
|
|
61
63
|
* - any other `T8…` security T-code → **camera** (the default security family).
|
|
@@ -27,7 +27,8 @@ export declare const WALL_LIGHT_TYPES: ReadonlySet<number>;
|
|
|
27
27
|
* they own the hub-audio surface (alarm / voice-prompt volume). A deliberate SUBSET of the `station`
|
|
28
28
|
* codec that EXCLUDES the NVRs (S4 Max, PoE NVR): those resolve to `station` for arming/storage but
|
|
29
29
|
* have no speaker, so they must NOT expose the hub-audio controls (they'd fire at nothing). The
|
|
30
|
-
* alarm/prompt wire is verified on HomeBase 3 (HB3); the other hubs
|
|
30
|
+
* alarm/prompt wire is verified on HomeBase 3 (HB3); the other hubs, T9000 (`STATION_9000`) included,
|
|
31
|
+
* share the hub hardware.
|
|
31
32
|
*/
|
|
32
33
|
export declare const HOMEBASE_TYPES: ReadonlySet<number>;
|
|
33
34
|
/** Indoor camera (any indoor variant). */
|
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.26",
|
|
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",
|