Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional commands for vacuum #607

Closed
glompfine opened this issue Jan 1, 2020 · 0 comments · Fixed by #608
Closed

Additional commands for vacuum #607

glompfine opened this issue Jan 1, 2020 · 0 comments · Fixed by #608

Comments

@glompfine
Copy link
Contributor

glompfine commented Jan 1, 2020

To simplify the map handling, you could probably add this lines to vacuum.py:

    @command()
    def get_recover_maps(self):
        """Get recover maps."""
        return self.send("get_recover_maps")

    @command(
        click.argument("id"),
        click.argument("map"),
    )
    def recover_map(self, id: int, map: int):
        """Set recover maps ."""
        payload = [int(id), int(map)]
        click.echo("Setting the map %s as active" % payload)
        return self.send("recover_map", payload)[0]

is working fine with my Roborock S6

please se PR: https://github.com/rytilahti/python-miio/pull/608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant