Skip to content

Additional commands for vacuum #607

Closed
@glompfine

Description

@glompfine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions