Skip to content

@mega-yfue/eufy-sdk / VacuumScene

Interface: VacuumScene

One saved scene, as the robot reports it.

Properties

estimatedRuntime

ts
readonly estimatedRuntime: number | undefined;

How long the device expects a run to take, as it reports it. undefined for the vendor's 0, which its own comment marks invalid rather than instant.

The unit is not stated anywhere. Every other duration on this line is seconds, which is a reason to expect seconds and not a reason for this SDK to claim it — so the number is reported as sent and named for what it is.


id

ts
readonly id: number;

The device's own id for this scene — what encodeSceneClean takes to run it.


invalidReason

ts
readonly invalidReason: 
  | "other"
  | "none"
  | "mapMissing"
  | "mapUnavailable"
  | "mapMismatch"
  | "legacyDefault"
  | undefined;

Why it cannot run. "none" while valid — the vendor reports both fields either way.


mapId

ts
readonly mapId: number | undefined;

The map this scene's rooms belong to, and one of the two real map ids the device reports — the other being a scheduled rooms-clean's.

undefined when the device sends its no-map sentinel, which is -2 written into a uint32, and undefined for a zero as well: proto3 omits a zero-valued field, so a scene tied to map 0 and one that said nothing about a map are the same bytes. Reporting "no map" for both is the reading that cannot send a clean at the wrong floor.


name

ts
readonly name: string | undefined;

The scene's name. undefined when the device sent none, which a built-in scene does.


order

ts
readonly order: number;

Where the scene sits in the list the app shows, counting from 1.


type

ts
readonly type: 
  | "custom"
  | "wholeHouseDaily"
  | "wholeHouseDeep"
  | "afterDinner"
  | "petArea";

Whether this is one of the vendor's built-in scenes, and which.


valid

ts
readonly valid: boolean;

Whether the scene can still run. A scene whose map was deleted is kept and reported invalid.

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.