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

Issue with "very low pm2.5" data leading to "Unknown" status in HomeKit #8

Open
llagasse opened this issue Oct 24, 2017 · 0 comments
Open

Comments

@llagasse
Copy link

Hello,
I am hoping the authors are still interested in supporting this code.
I find the laseregg amazing and was one of the first few buyers and I am so happy to see someone wrote this pluggin so that I can automate more.
The issue is, I am actually very well isolating rooms and I can reach level of pm2.5 so low that the AQI result from calcAQI() is equal to "0". This return a status of "0" from the function trans_aqi() that is an enum state in the HomeKit of "Unknown". So, the calcAQI() return should be limit to 1 as a minimum and error management should only flat the the "0" state if it is not possible to retrive the data from the API.
If someone is still listening, I would be happy to participate into the code update as a first pluggin development.

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

1 participant