Skip to content

@mega-yfue/eufy-sdk / SmartLightActions

Type Alias: SmartLightActions

ts
type SmartLightActions = Surface<typeof SMART_LIGHT_MEMBERS> & object;

Bound smart_light controls — the object returned by dev.smartLight().

The reads, their setters, the state request and the effect write are DERIVED from SMART_LIGHT_MEMBERS: one declaration per feature gives the getter, the setter, its argument type and its description. Only the no-argument power verbs are written out below.

Type Declaration

off()

ts
off(): Promise<void>;

Turn the light off.

Returns

Promise<void>

on()

ts
on(): Promise<void>;

Turn the light on.

Returns

Promise<void>

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.