-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Support for Xiaomi Air Quality Monitor 2gen #419
Comments
Could you provide the output of:
|
The connection is unstable: ERROR:miio.device:Got error when receiving: timed out I'll try again later. |
May be your device isn't compatible to the 1gen device. I will provide another command ASAP to retrieve selected properties only. |
OK The product link: |
|
Tried many times,get these results: Running command raw_command Maybe because of the monitor using UDP protocol? |
This happens usually if the TOKEN isn't correct. |
Does the |
$ mirobo --ip 192.168.0.79 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx info $ miiocli airqualitymonitor --ip 192.168.0.79 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx info but most times get 'time out' result. |
Could you place the device next to your access point just for testing? May be your Wi-Fi connection is unstable/lossy. |
OK,i'll try again later. |
I have putted the device next to the AP but get the same result,always time out. |
Hmm... it's hard to help here because it looks like a firmware issue or protocol incompatibility. |
OK.Hope the next firmware will fix this issue. |
I think Xiaomi use a new protocol for device with ESP32 chip. I tried to capture both local network and remote access from io.mi.com communication between Mijia.app and this device. The communication between app and io.mi.com is like:
And the local communication is disappeared. 1st Gen Air Quality Monitor was using udp 54321. |
I have the same problem for new firmware:
than
and if try again ask info after status
looks like it hangs during several minutes after wrong request @mwenyuan, how did you dump and decrypt communication between app and io.mi.com? |
Hi guys, Any progress on this one? I'm also having this product and issue. I really want to use it in Home Assistant. Let me know if I can help! |
@fwestenberg Your device doesn't respond, too? |
No, just the info endpoint as mentioned above.. |
@myvolkov mijia.app connects to io.mi.com by https, so I use surge.app to MitM and capture the traffic. |
You must call method "get_air_data" |
Could somebody provide some example payload of the |
https://mjdm.ru/forum/viewtopic.php?f=5&t=4863&start=770#p106185
|
This is enough to provide basic support of the device. |
sorry one basic question it is possible to get the url command in order to integrate it in HA with the information from skysilver? |
Added pull request #562 |
The next version will contain support for thanks to @fwestenberg - closing this issue now. |
I found the solution. there are two things must be modified.
|
Solution to what problem? The integration is running fine here. |
For an example) airqualitymonitor.py
device.py
|
Integration is working fine in my side too, but not all the parameters from the unit are shown in HA; I just got CO2e, TVOC and PM2.5 but no Temperature, Humidity and battery. I don´t know if I´m missing something |
Please open a separate issue for that, the basic support is already in place. |
$ mirobo discover
INFO:miio.discovery:Discovering devices with mDNS, press any key to quit...
WARNING:miio.discovery:Found unsupported device cgllc-airmonitor-b1_miio57435516._miio._udp.local. at 192.168.0.79, please report to developers
$ mirobo --ip 192.168.0.79 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx info
cgllc.airmonitor.b1 v3.4.4_0077 (34:CE:00:8A:71:CC) @ 192.168.0.79 - token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The text was updated successfully, but these errors were encountered: