Skip to content

@mega-yfue/eufy-sdk / roomAtPoint

Function: roomAtPoint()

ts
function roomAtPoint(
   outline, 
   rooms, 
   point
): VacuumRoom | undefined;

The room at a world position, named — the join of the outline's room id with the room list.

Takes the outline and the room list separately because the device sends them separately, on two channels that arrive at different times: a caller holding one without the other gets undefined rather than a wrong answer.

Parameters

outline

VacuumRoomOutline

rooms

VacuumRoomParams

point

MapPoint

Returns

VacuumRoom | 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.