Skip to content

@mega-yfue/eufy-sdk / resolveWorkingMode

Function: resolveWorkingMode()

ts
function resolveWorkingMode(model, value): string | undefined;

Resolve a workingMode raw value to its human mode label for a device model — or undefined if the value isn't in that model's map. Matches the model against the WORKING_MODE_MAPS keys by T-code prefix, falling back to the 3-mode camera DEFAULT.

Parameters

model

string | undefined

value

number

Returns

string | undefined

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.