@mega-yfue/eufy-sdk / tuya / TuyaSession
Interface: TuyaSession
Per-install session identity carried on every request.
Properties
chKey
ts
chKey: string;8-hex chKey. ✅ SOLVED: getChKey in libthing_security.so is a pure function of the appId only (never touches time/session/Context), so it's a per-appId CONSTANT — "7cbfe6d8" for this app's appId. Hardcode it.
deviceId
ts
deviceId: string;Per-install device id (44-hex in the capture). See TuyaClient for generation.
ecode?
ts
ecode?: string;Per-login encryption code (User.ecode), read from the decrypted login.reg reply. Absent until login completes; it keys et=3 body encryption and reply decryption for every session call.
sid
ts
sid: string;Session id from a successful login; empty string pre-login.