WIP: Initial MQTT work

WIP: Add initial EcoVacsMQTT client
- Connect and get message

TODO: Parse messages and plumb to events
This commit is contained in:
Brian Martin
2019-01-16 09:02:03 -05:00
parent 3c01cd2678
commit ca7d37c193
3 changed files with 145 additions and 11 deletions
+4
View File
@@ -219,6 +219,10 @@ def run(actions, debug):
vacuum = api.devices()[0]
vacbot = VacBot(api.uid, api.REALM, api.resource, api.user_access_token, vacuum, config['continent'])
vacbot.connect_and_wait_until_ready()
time.sleep(3)
vacbot.run(Move('backward'))
time.sleep(3)
vacbot.run(Charge())
for action in actions:
click.echo("performing " + str(action.vac_command))