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

unsupported device zhimi airmonitor v1 #393

Closed
druig opened this issue Oct 13, 2018 · 8 comments
Closed

unsupported device zhimi airmonitor v1 #393

druig opened this issue Oct 13, 2018 · 8 comments

Comments

@druig
Copy link

druig commented Oct 13, 2018

This is what happnd when I try discover

WARNING:miio.discovery:Found unsupported device zhimi-airmonitor-v1

and

at 192.168.x.x, please report to developers

Are there different models? I thought it was normal for xiaomi devices to be called zhimi
This isn't a new model, should have been available for more than a year

I don't know what information I should gather. Please instruct me if I can help

@syssi
Copy link
Collaborator

syssi commented Oct 13, 2018

Could you provide a product link? What's the product name?

@druig
Copy link
Author

druig commented Oct 13, 2018

@syssi

the name is 米家PM2.5检测仪, model JCY01ZM, CMIIT ID 2016DP6522

@syssi
Copy link
Collaborator

syssi commented Oct 13, 2018

The device is already supported. Just the discovery is missing.

@syssi syssi closed this as completed in 3a98ecb Oct 13, 2018
@druig
Copy link
Author

druig commented Oct 14, 2018

@syssi thanks, looking forward to the discovery

@druig
Copy link
Author

druig commented Oct 14, 2018

@syssi i just tried to clone the repo and pip install and mirobo discover again and got an exception:

[mio@alarm python-miio]$ ~/.local/bin/mirobo discover
INFO:miio.discovery:Discovering devices with mDNS, press any key to quit...
ERROR:miio.device:Unable to discover a device at address 192.168.1.200
Exception in thread zeroconf-ServiceBrowser__miio._udp.local.:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/home/mio/.local/lib/python3.7/site-packages/zeroconf.py", line 1382, in run
handler(self.zc)
File "/home/mio/.local/lib/python3.7/site-packages/zeroconf.py", line 1329, in
state_change=state_change,
File "/home/mio/.local/lib/python3.7/site-packages/zeroconf.py", line 1235, in fire
h(**kwargs)
File "/home/mio/.local/lib/python3.7/site-packages/zeroconf.py", line 1302, in on_change
listener.add_service(*args)
File "/home/mio/.local/lib/python3.7/site-packages/miio/discovery.py", line 137, in add_service
dev = self.check_and_create_device(info, addr)
File "/home/mio/.local/lib/python3.7/site-packages/miio/discovery.py", line 120, in check_and_create_device
return create_device(name, addr, partial(v))
File "/home/mio/.local/lib/python3.7/site-packages/miio/discovery.py", line 99, in create_device
m = dev.do_discover()
File "/home/mio/.local/lib/python3.7/site-packages/miio/device.py", line 162, in do_discover
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.1.200

@syssi
Copy link
Collaborator

syssi commented Oct 14, 2018

Try to extract the token (https://python-miio.readthedocs.io/en/latest/discovery.html#tokens-from-backups) and communicate with the device:

miiocli airqualitymonitor --ip 192.168.1.200 --token token info

@druig
Copy link
Author

druig commented Oct 14, 2018

@syssi ok, i guess that needs to be done, though discover would be simpler to do

@syssi
Copy link
Collaborator

syssi commented Oct 14, 2018

I assume the discovery won't expose the token.

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