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

repeats when cleaning a room #5

Open
G1K opened this issue Jan 16, 2022 · 1 comment
Open

repeats when cleaning a room #5

G1K opened this issue Jan 16, 2022 · 1 comment
Labels
question Further information is requested

Comments

@G1K
Copy link

G1K commented Jan 16, 2022

When cleaning a segment, there is no repeat option, although the application does.
The miio service also does not have this parameter, and it’s impossible to add this parameter just like that.

There is a way to use sending a custom command

service: vacuum.send_command
target:
  entity_id: vacuum.xiaomi_vacuum
data: 
  command: app_segment_clean
  params:
    - segments:
        - 17
      repeat: 2

Or if you change the component code, for example like this


        if 'room' in self.config:
            await self.hass.services.async_call(
                'vacuum', 'send_command', {
                    'entity_id': self.config['entity_id'],
                    'command': 'app_segment_clean',
                    'params':
                        [
                            {
                                'segments': [
                                    self.config['room']
                                ],
                                'repeat': self.config.get('repeats', 1)
                            }
                        ]

                }, blocking=True)
@AlexxIT AlexxIT added the question Further information is requested label Jan 17, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 17, 2022

Just repeat segment number multiple times

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

No branches or pull requests

2 participants