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

Unable to discover the device #259

Closed
dvido opened this issue Mar 9, 2018 · 4 comments
Closed

Unable to discover the device #259

dvido opened this issue Mar 9, 2018 · 4 comments

Comments

@dvido
Copy link

dvido commented Mar 9, 2018

Hello,

I'm trying to control a Xiaomi smart plug. I'm doing a very simple thing:

print(miio.plug.Plug(token=plug_token, ip=plug_ip).status())

but it's not working. Could anyone point me to a solution here?
Also, I couldn't find any code example of the API usage and the documentation is very limited, would appreciate some help here.

Thanks in advance

@syssi
Copy link
Collaborator

syssi commented Mar 9, 2018

Please post the error message / exception.

@dvido
Copy link
Author

dvido commented Mar 9, 2018

The error message is:
Unable to discover a device at address xxxxxxxxxx

The device is available vi the MiHome app.
I'm using python 3

@syssi
Copy link
Collaborator

syssi commented Mar 9, 2018

This could be an invalid token. How long is your token? How did you retrieve the token? Did you reset the device in the mean time (another wifi network)?

@syssi
Copy link
Collaborator

syssi commented Apr 1, 2018

I close this issue because of inactivity.

@syssi syssi closed this as completed Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants