Skip to content

@mega-yfue/eufy-sdk / listLightEffects

Function: listLightEffects()

ts
function listLightEffects(mega, opts?): Promise<LightEffectSummary[]>;

Browse the light-effect gallery — the catalogue of lightIds that setEffect accepts. Unions every scene/light id found anywhere in the /app/light/discover/list carousel (walked recursively) with a scan over the default LIGHT_EFFECT_ID_WINDOW (the dense id band holding the app's category tabs) plus any ids given, then resolves them via /app/light/lighteffect/batchget (which returns an entry only for ids that exist). Pass idRange to widen/narrow the scan or ids to fetch specific ones.

batchget is issued in chunks of BATCHGET_CHUNK (100) ids — the scanned set runs to the hundreds, so one request does not swallow it whole.

Parameters

mega

MegaHttpClient

opts?

idRange?

[number, number]

ids?

number[]

Returns

Promise<LightEffectSummary[]>

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.