Ejemplo n.º 1
0
    def clean_spot(self, **kwargs):
        """Perform a spot clean-up."""
        from ozmo import Clean

        self.clean_mode = 'spot'
        self.device.run(
            Clean(mode=self.clean_mode, speed=self.fan_speed, action='start'))
Ejemplo n.º 2
0
    def turn_on(self, **kwargs):
        """Turn the vacuum on and start cleaning."""
        from ozmo import Clean, SpotArea

        self.clean_mode = 'auto'
        self.device.run(
            Clean(mode=self.clean_mode, speed=self.fan_speed, action='start'))
Ejemplo n.º 3
0
    def clean_area(self, area):
        from ozmo import Clean, SpotArea

        if not area:
            self.clean_mode = 'auto'
            self.device.run(Clean(mode=self.clean_mode, speed=self.fan_speed, action='start'))
        else:
            self.clean_mode = 'spot_area'
            self.device.run(SpotArea(area=area, speed=self.fan_speed, action='start'))
Ejemplo n.º 4
0
    def clean_map(self, map):
        from ozmo import Clean, SpotArea

        if not map:
            self.clean_mode = 'auto'
            self.device.run(Clean(mode=self.clean_mode, speed=self.fan_speed, action='start'))
        else:
            self.clean_mode = 'spot_area'
            self.device.run(SpotArea(map_position=map, speed=self.fan_speed, action='start'))
Ejemplo n.º 5
0
    def resume(self, **kwargs):
        """Stop the vacuum cleaner."""
        from ozmo import Clean

        self.device.run(
            Clean(mode=self.clean_mode, speed=self.fan_speed, action='resume'))