stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
85 stars 44 forks source link

No-go lines not used in Botvac D7? #72

Closed loosrob closed 3 years ago

loosrob commented 3 years ago

When using the start_cleaning() function, I would expect my Botvac D7 Connected to use the no-go-lines I defined. When I start the robot via Neato's app, the app displays "no-go lines enabled"; however, when I start via pybotvac, the app displays "no-go lines disabled".

From this code I would expect the robot to use the persistent maps and no-go lines when available (category=4):

        if category is None:
            category = (
                4
                if self.service_version in ["basic-3", "basic-4"]
                and self.has_persistent_maps
                else 2
            )

Am I missing something, and do I need to pass certain parameters to the start_cleaning function to enable the no-go lines?

loosrob commented 3 years ago

The solution is to use the following command: start_cleaning(mode=1, navigation_mode=1, category=4)

With following parameters: mode: 1 eco, 2 turbo category: 2 without persistent map, 4 with persistent map navigation_mode: 1 normal, 2 extra care