diff --git a/sucks/__init__.py b/sucks/__init__.py index 792539d..2b2ac6f 100644 --- a/sucks/__init__.py +++ b/sucks/__init__.py @@ -403,6 +403,14 @@ class VacBot(): _LOGGER.warning("Unknown cleaning status '" + type + "'") self.clean_status = type self.vacuum_status = type + + if self.vacuum['iot']: + cleaning = event.get('st', None) + if cleaning == 'p': + self.clean_status = 'paused' + else: + self.clean_status = 'cleaning' + fan = event.get('speed', None) if fan is not None: try: diff --git a/sucks/cli.py b/sucks/cli.py index 7c08e27..bf77453 100644 --- a/sucks/cli.py +++ b/sucks/cli.py @@ -215,8 +215,9 @@ def run(actions, debug): vacbot = VacBot(api.uid, api.REALM, api.resource, api.user_access_token, vacuum, config['continent']) #vacbot.connect_and_wait_until_ready()( - vacbot.run(Clean('spotarea', 'normal', 'start', '2')) - + #vacbot.run(Clean('spotarea', 'normal', 'start', '2')) + vacbot.request_all_statuses() + # for action in actions: # click.echo("performing " + str(action.vac_command)) # vacbot.run(action.vac_command)