@mega-yfue/eufy-sdk 0.5.0-beta.17 → 0.5.0-beta.18
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 +4 -1
- package/dist/index.js.map +2 -2
- package/dist/model/capabilities/light.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6233,6 +6233,9 @@ var LIGHT_MEMBERS = {
|
|
|
6233
6233
|
* This is the switch a user changes and expects to STAY changed. {@link isOn} is a different fact:
|
|
6234
6234
|
* the lamp being lit right now, driven by whichever
|
|
6235
6235
|
* client is streaming — the vendor app lights it for a live view and drops it on quitting.
|
|
6236
|
+
*
|
|
6237
|
+
* The T8423 write takes the session-chosen level; level-1 int+string was verified live on a standalone
|
|
6238
|
+
* unit.
|
|
6236
6239
|
*/
|
|
6237
6240
|
spotlightEnabled: {
|
|
6238
6241
|
param: LIGHT_CMD.SPOTLIGHT_ENABLE,
|
|
@@ -6240,7 +6243,7 @@ var LIGHT_MEMBERS = {
|
|
|
6240
6243
|
kind: "boolean",
|
|
6241
6244
|
provenance: "verified",
|
|
6242
6245
|
description: "The spotlight master switch, distinct from the on/off above \u2014 whether the spotlight may light at all. Read verified live on a T8170 (param 1403, direct polarity: 1 = enabled).",
|
|
6243
|
-
write: (v, ctx) =>
|
|
6246
|
+
write: (v, ctx) => setScalar(LIGHT_CMD.SPOTLIGHT_ENABLE, asBool(v) ? 1 : 0, ctx, ctx.deviceType === DeviceType.FLOODLIGHT_CAMERA_8423 ? "auto" : "direct-binary"),
|
|
6244
6247
|
writeAs: "setEnabled"
|
|
6245
6248
|
}
|
|
6246
6249
|
};
|