Skip to content

@mega-yfue/eufy-sdk / decodeVacuumSchedules

Function: decodeVacuumSchedules()

ts
function decodeVacuumSchedules(raw, codec): 
  | readonly VacuumSchedule[]
  | undefined;

Decode a TimerResponse (DP 164) to the schedules it reports, or undefined.

undefined means the payload could not be read at all — no codec, not a Raw-DP value, malformed bytes. An empty array is a different and equally real answer: the device reports its timers in full every time, so a report carrying none says this robot has no schedules set.

The device sends this unprompted on boot and after any change, and in reply to an INQUIRY. Which of those produced a given payload does not change the reading — every report is the complete list — so the request method and seq beside it are not surfaced.

Parameters

raw

unknown

codec

RawDpCodec | undefined

Returns

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