Skip to content

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

Function: deriveTuyaAccount() ​

ts
function deriveTuyaAccount(eufyUserId, phoneCode?): TuyaAccount;

Derive the full TuyaAccount (username + password + countryCode) for a eufy user id. phoneCode is the eufy account's phone country code; when omitted the countryCode defaults to "1" (see resolveCountryCode for the region-based fallback).

Parameters ​

eufyUserId ​

string

phoneCode? ​

string

Returns ​

TuyaAccount

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.