Skip to content

@mega-yfue/eufy-sdk / tuya / TuyaClientConfig

Interface: TuyaClientConfig ​

Properties ​

chKey? ​

ts
chKey?: string;

Channel key — defaults to TUYA_CHKEY ("7cbfe6d8"), the constant extracted from the eufy Security/Mega app. Override only for non-standard builds.


deviceId? ​

ts
deviceId?: string;

Per-install device id; a random 44-hex one is generated if omitted (see genDeviceId).


endpoint? ​

ts
endpoint?: string;

api.json endpoint override (region shard).


env? ​

ts
env?: TuyaEnv;

Override the environment/static fields (see TuyaEnv).


http? ​

ts
http?: TuyaHttpPost;

Inject a POST transport (test stub); default = native fetch.


sid? ​

ts
sid?: string;

Restore a prior session id (skip login).


signer? ​

ts
signer?: TuyaSigner;

The native sign seam. Defaults to HmacSigner with the built-in app key — no config needed. Override only for tests (pass a StubSigner or custom impl).

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.