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
[miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite #10182
Conversation
close openhab#10152 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
"piid": 3, | ||
"friendlyName": "Battery - Voltage", | ||
"channel": "voltage", | ||
"type": "Number", |
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.
"type": "Number", | |
"type": "Number:ElectricPotential", |
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.
@joeberlin123 For this, can you confirm what you see as value in the screen of the app and in the channel.
I expect this to be mV, but would be good to confirm
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.
Yes, I can confirm. The channel shows the values as mV
"piid": 2, | ||
"friendlyName": "Settings - Start Time", | ||
"channel": "start_time", | ||
"type": "Number", |
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.
Is this supposed to be a time unit?
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.
@joeberlin123 can you confirm what you are seeing for this channel as value and how it translates in the mihome app.
Than we can determine what is indeed it is (e.g. the time until it switches on/off or a date/time sort of thing.
The spec does not hint anything
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.
I don't find something like start time in the mi home app. If I use item type number I get 0.0 and if I use date time I get NULL. Do have another hint for me?
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.
I took out this property... if we can't find it in the app and it is unknown what it does, it is useless.
"piid": 5, | ||
"friendlyName": "Environment - PM10 Density", | ||
"channel": "pm10_density", | ||
"type": "Number", |
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.
"type": "Number", | |
"type": "Number:Density", |
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.
Agree, Done.
"piid": 4, | ||
"friendlyName": "Environment - PM2 5 Density", | ||
"channel": "pm2_5_density", | ||
"type": "Number", |
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.
"type": "Number", | |
"type": "Number:Density", |
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.
Agree, Done.
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
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.
You code doesn't compile as CloudLoginDTO
uses the wrong NotNull
import:
import org.jetbrains.annotations.NotNull;
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This was changed some time ago.. should no longer be the case |
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.
LGTM
There are some checkstyle warnings in the binding, which can be easily fixed. You could take a look at target/code-analysis/report.html
.
…enhab#10182) * [miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite close openhab#10152 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove expiremental Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * Improve readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] improve qty types Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove unknown element Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
…enhab#10182) * [miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite close openhab#10152 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove expiremental Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * Improve readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] improve qty types Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove unknown element Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
…enhab#10182) * [miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite close openhab#10152 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove expiremental Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * Improve readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] improve qty types Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove unknown element Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
…enhab#10182) * [miio] add support for cgllc.airm.cgdn1 Qingping Air Monitor Lite close openhab#10152 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove expiremental Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * Improve readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] improve qty types Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove unknown element Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
close #10152
Signed-off-by: Marcel Verpaalen marcel@verpaalen.com