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