Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

get status #99

Open
thib5 opened this issue Nov 3, 2020 · 0 comments
Open

get status #99

thib5 opened this issue Nov 3, 2020 · 0 comments

Comments

@thib5
Copy link

thib5 commented Nov 3, 2020

Hi, I'm juste trying to write a little script that get the status of my robot but I always receiving "None"

this is my code so far :

`from sucks import *

config = {
'device_id': EcoVacsAPI.md5(str(time.time())),
'email': '******', # Email you use to login to Ecovacs
'password_hash': EcoVacsAPI.md5('
'), # Password you use to login to Ecovacs
'country': 'CA', # Two character country code
'continent': 'NA' # Two character continent code, can you ww if have issues
}

api = EcoVacsAPI(
config['device_id'],
config['email'],
config['password_hash'],
config['country'],
config['continent']
)

vacs = api.devices()
my_vac = vacs[0] # Assuming we want to get the first Deebot

vacbot = VacBot(
api.uid,
api.REALM,
api.resource,
api.user_access_token,
my_vac,
config['continent']
)
vacbot.connect_and_wait_until_ready()
test = vacbot.run(GetChargeState())
print(test)
vacbot.disconnect(wait=True)

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant