@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