Skip to content

@mega-yfue/eufy-sdk / decodeVacuumScenes

Function: decodeVacuumScenes()

ts
function decodeVacuumScenes(raw, codec): readonly VacuumScene[] | undefined;

Decode a SceneResponse (DP 180) to the scenes it reports, or undefined.

undefined means the payload could not be read — no codec, not a Raw-DP value, malformed bytes. An empty array is a different answer: the device reports its scenes in full on boot and after any change, so a report carrying none says this robot has no scenes saved.

Parameters

raw

unknown

codec

RawDpCodec | undefined

Returns

readonly VacuumScene[] | 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.