Skip to content

@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.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.