CodeFoodPixels / robovac

Add a Eufy RoboVac easily to Home Assistant
Other
129 stars 28 forks source link

Question, How to select rooms to be clean #26

Closed scubieman closed 1 year ago

scubieman commented 1 year ago

Do you know how to select rooms to be clean? I show it in the coding for command roomClean?

just trying to get the room IDS. ALso line 445 says selectRoomsClean, Does this give a list?

elif command == "roomClean":
            roomIds = params.get("roomIds", [1])
            count = params.get("count", 1)
            clean_request = {"roomIds": roomIds, "cleanTimes": count}
            method_call = {
                "method": "selectRoomsClean",
                "data": clean_request,
                "timestamp": round(time.time() * 1000),
            }
            json_str = json.dumps(method_call, separators=(",", ":"))
            base64_str = base64.b64encode(json_str.encode("utf8")).decode("utf8")
            _LOGGER.info("roomClean call %s", json_str)
            await self.vacuum.async_set({"124": base64_str}, None)
CodeFoodPixels commented 1 year ago

This is a bit of code from before I forked it, but from my understanding, it just passes the roomIds from you calling it. The selectRoomsClean is for the vacuum to understand