-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Request] Add AQI sensor #140
Comments
@Hampo That's a great question! It might be possible, I'll investigate and get back when I have answers. |
Thank you :D |
Hi @dotvezz , can you implement AQI sensor? I have DysonPureHotCoolFormaldehyde Thanks a lot |
Hi everyone. Can you please share the models you use (other than @terzo33 who has already done so, of course. Additionally, there's a tool you can use to help identify the sensors available on your device: (not well-documented yet, that's on my to-do list) called opendyson. If you're willing to help debug this, you can use it to get the values directly from your fan. You can run
If you're able to get this to work, please share two things:
|
As mentioned in the OP, I have a HP04. Firmware version is
Thanks for looking into this |
@Hampo thanks! Sorry I missed the HP04 part of your original comment 😅. Interestingly, there's a thread going on in #159 with TP02/475 devices where the MQTT value labled Getting to your HP04, I see the following environment fields in your message (thanks so much for grabbing that for this issue!)
I'll try to find out what |
So, according to the APK's source code, From the same source, here's all the values:
I haven't found the AQI formula offhand, but hopefully these help in the meantime |
@Hampo Ahhh yep, you're totally right. I must have fat-fingered my code search because it's even being used by this integration. |
I noticed the same with my Dyson Purifier Hot+Cool Formaldehyde: no AQI sensor. I'm now looking at another interesting integration for home assistant that just does the calculation : https://github.com/Limych/ha-iaquk Maybe this can be integrated? |
@pprazzi interesting... interesting indeed. Looks like that integration uses an index defined here: https://github.com/Limych/ha-iaquk/blob/dev/IAQ_Rating_Index.pdf. I don't really know if that is the same index Dyson uses or not, and unfortunately it looks like the website for the organization isn't around anymore. But it's something. Maybe I'll just implement that math into an AQI sensor for Dyson devices? Trying to weigh the pros and cons here. The main con I can think of is possible user confusion if the AQI doesn't match what the app displays. |
@dotvezz Hi Ben, here's another calculation of an AQI, more specific targeted to Dyson purifiers : https://aarongodfrey.dev/home%20automation/dyson-tp04-integration/ |
Here's a (very rough and ready) Jinja template which tries to derive the Air Quality based on the PDF linked earlier Obviously its not optimal, but might aid in developing a custom calc I've scaled down the quality intervals, as were only using a subset of measurements. It's unclear whether this is directly translatable, since Nitrogen and a few other values are quoted as being an 'index' value. However, they seem to roughly correspond to the range of values in the PDF The Air Quality it spits out seems to correspond with what the Dyson app is showing (so far, anyway) The measurements are based on what I can grab from a BP04 - Purifier Big+Quiet Formaldehyde
|
Not sure if you still need this, but Device: BP04 |
I have a HP04, and the app shows an AQI value calculated from the 4 sensors (PM2.5, PM10, NO2, VOC). Could this be added to the integration?
The text was updated successfully, but these errors were encountered: