-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Add Qingping Air Monitor Lite support (cgllc.airm.cgdn1) #900
Add Qingping Air Monitor Lite support (cgllc.airm.cgdn1) #900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Here's a very brief initial review.
LGTM, one last thing before merging this, could you add an entry to README's supported devices, @arturdobo? |
@rytilahti updated, but no idea why the build failed |
Looks like a problem at readthedocs' side, could you rebase the README change though? It's conflicting currently with a recently merged PR. |
…, device off and screen off
@rytilahti done |
Great, thanks for the PR! 🎉 The readthedocs problem seems to be related new rust compiler dependency on cryptography lib, which is not available there. I hope that'll get fixed by itself at some point. |
* Add Qingping Air Monitor Lite support * add test for cgdn1 * fix typo * removed CGDN1 from ChargingState enum * refactored to int be accepted in case of setting monitoring frequency, device off and screen off * added raw response to the doc string * moved enums to device class * fixed typo & exposed options * removed unnecessary enums from class * updated readme
This PR adds support for Qingping Air Monitor Lite support (
cgllc.airm.cgdn1
).Specification: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-monitor:0000A008:cgllc-cgdn1:1
Closes: #879
Support
start_time
andend_time
has been intentionally omitted in this PR and can be added in the other one. I didn't check whether the time zone is necessary to compute the current time. If yes, I wasn't able to readtime_zone
from my device, butcgllc-cgdn1:2
spec mentions that property. What's more Xiaomi Home reads somehow this property from the device.Another thing is I had no idea what
0
regardingmonitoring_frequency
could mean.