Skip to content

@mega-yfue/eufy-sdk / FamilyContext

Interface: FamilyContext ​

The evidence a family decision needs — a structural subset of CommandContext.

Properties ​

category? ​

ts
category?: string;

API category string — e.g. "eufy_home", "eufy_home_tuya", "eufy_security". Supplied by the mega get_devs_list response; absent in unit-test contexts that build a minimal context without a real API record. Used as the PRIMARY transport discriminator for the clean line: "eufy_home_tuya" devices are on the ThingClips/Tuya Cloud platform, not Anker AIoT MQTT.


deviceType? ​

ts
deviceType?: number;

eufy vendor DeviceType, when known (undefined ⇒ unknown ⇒ don't guess).


model? ​

ts
model?: string;

Model / T-code, when known.


serial? ​

ts
serial?: string;

Full device serial, when known. The one family split that no type number expresses: the vendor reuses one DeviceType across generations of a product and distinguishes them by serial.

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.