-
Notifications
You must be signed in to change notification settings - Fork 29
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
units need updating #4
Comments
Okay, I've got conversion factors for everything except Formaldehyde. It's all so straightforward I actually feel silly. Spoiler: There never were any base units to begin with!
I'll push an update soon that updates all the units and also sets the correct device class so Formaldehyde gives you a graph. |
https://github.com/libdyson-wg/ha-dyson/releases/tag/v0.18.1 updates all the units and removes the µg/m³ unit labels from VOC, NO2 and Formaldehyde.
|
thanks for the latest update to address the units issue! Some error logs in HA though.
and some more:
|
Yeah me too 😅. |
ha, ok, unfortunatly its not collecting stats anymore because of the second issue. So I can not show you the plots to compare for formaldehyde. ITs almost like it a unit has to be invented....ie. DU Dyson Units....I may revert back to 0.18.0 |
For the no stats issue, you can click the link it gives you in the log to
reset the stats.
…On Thu, May 4, 2023, 7:40 PM Anto79-ops ***@***.***> wrote:
ha, ok, unfortunatly its not collecting stats anymore because of the
second issue. So I can show you the plots to compare for formaldehyde.
ITs almost like it a unit has to be invented....ie. DU Dyson Units....I
may revert back to 0.18.0
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4A734PBZODSDLYPRAOTTXEQ475ANCNFSM6AAAAAAWBKOUIQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry, my last comment was sent from my phone over email so I wasn't able to go into much detail. You can go to your Home Assistant's /developer-tools/statistics page, search for "Dyson", and reset the statistics. This is what I would recommend. That said, I think it's best for me to actually create new sensor entities so that it tracks them on a new graph instead of needing a reset. I'll pull down the 0.18.1 release (since it turned out to be akin to a breaking change) and do a 0.19.0 release with new sensors so it doesn't freak out Home Assistant.
|
@Anto79-ops I've released v0.19.0 which should take care of your issue with graphs and units as well. Whew, this has been a big learning journey. We're almost there. |
@dotvezz awesome just updated to version 19. I will keep you posted! |
Hey, I have some updates. I really like this more intuitive way of showing the levels. NO2, VOC and PM seems to updating accordingly. But you're right, its almost there. Formaldehyde needs a bit more tweaking. First, it seems its not updating as much as it used to. Maybe its rounding to 0.1, its almost like it is stuck at 0.2, for example: and my second machine, did have a quick register at 0.3 However, when comparing the data with he app, it does fluctuate quite a bit as shown here In you original fix of this, it up was updating every few minutes, like going to 5 to 12 So I wonder if its just a rounding issue. there is a log error on every restart for both my machines, could it be related?
What do you think is happening with the formaldehyde? Nice update! Just needs a final tweak and I think you got this. Thank you! |
Thanks for the info! Turns out I've committed a stupid and set the Formaldehyde sensor to track Nitrogen Dioxide. |
Okay, I've deleted the 0.19.0 release and replaced it with v0.19.1. For the log error, we'll knock it out once we know the conversion factor. |
Awesome! Just updated and it is giving those whole numbers as it did originally. Nice! Now, I compare the plots with the app and we can figure out the conversion factor....or is the index scale of 1 to 100? It might make sense that is because my formaldehyde barely goes about 15 (Always in the green region). Time will tell i guess. I still get those invalid unit errors in the log, but guess if we don't know what this units are, we'll figure it out. |
Here's some data: and the dyson app you can see, it seems that it generally tracks it very well. They app seems to also do some smoothing or averaging. Also, reporting intervals on the app (every 15 minutes) are not as much as HA But, as a rough estimate, im getting a conversion factor of at 2:30 at 4:45pm at 5 pm: I'd say, its generally a conversion factor of "0.00271" based on the average of these 3 points: 0.00242 |
the more research I do on this, the more I'm starting to think the native formaldehyde component is ppb Dyson says they use/develop a "solid-state formaldehyde sensor" that uses "electrochemical" method for precise formaldehyde detection against other VOC gases and their marketing photo above, looks very similar to this sensor: https://www.mouser.ca/new/sensirion/sensirion-sfa30-formaldehyde-sensor-module/ which does output ppb But, looking at the tech spec of the Sensiron SFA30 on page 11, it talks about how it calculates ppb and its based on a reciprocal factor of 5. I'm trying to play with the math to see if things match. I'm not saying that the Dyson uses the Sensiron sensor (it very well could be using it), but this sensor is exactly the Dyson Marketing suggests. |
I'm seeing there's also another formaldehyde sensor field in the MQTT data, labeled |
You bet! |
I just realized that the machine itself also outputs the number that's in the app. Is it possible that this the hchr as opposed to hcho (raw value)
|
Interesting! I got your email (thanks!). I've got one more thing that could be awesome to get your help with. I created a tool called |
for sure! I will run this and get that data for your. Cool diagnostics tool |
@dotvezz BOOM! You got it sir,
|
@dotvezz I just noticed that that's also a payload for RSSI. Anyway, you can add a Wi-Fi signal strength sensor diagnostic to the machines? Could be useful for those who have connection issues. |
YES!!! Finally! I smell a new release coming soon. Also great eye catching the RSSI field. That's an awesome suggestion, I'll definitely do that. |
Reference discussion link: libdyson-wg/ha-dyson#4 The `hcho` field in MQTT is of an unknown unit/scale and has no known conversion factor to a known unit. However, it was recently discovered that `hchr` (referred to as "High Res Formaldehyde" in the android app) has a clean conversion factor of n/1000 to mg/m^3.
Reference discussion link: libdyson-wg/ha-dyson#4 The `hcho` field in MQTT is of an unknown unit/scale and has no known conversion factor to a known unit. However, it was recently discovered that `hchr` (referred to as "High Res Formaldehyde" in the android app) has a clean conversion factor of n/1000 to mg/m^3.
Reference discussion link: libdyson-wg/ha-dyson#4 The `hcho` field in MQTT is of an unknown unit/scale and has no known conversion factor to a known unit. However, it was recently discovered that `hchr` (referred to as "High Res Formaldehyde" in the android app) has a clean conversion factor of n/1000 to mg/m^3.
Nice! Thanks @dotvezz Look at this 😍 |
its still giving these log errors wonder if HA needs to change their device class definitions.....but happy to see the number is reporting correctly!
|
Ugh, that seems like an overly-strict definition of "valid". I don't know exactly how I feel about conforming to it, tbh. I want to keep the scale consistent with what the Dyson app shows to avoid confusion. But then, Dyson themselves aren't consistent either - particulate sensors are presented in µg/m3 while HCHO is presented in thousandths of mg/m3. This is kinda ridiculous on their part since 0.001 mg/m3 = 1 µg/m3. I'm leaning toward keeping it at mg, but I'm worried about the logs bothering people. Does it spam your logs, or is it just on initialization? |
lol I know what you mean!! It nice the integration does exactly what the Dyson app/machine does....but on the other hand you get these. Which by the way, it does not spam the logs, just on every startup for every formaldehyde machine you have. But I did a little bit of research on this, and there was other mentioning this for other devices. Technically formaldehyde is a VOC BUT, it might need a class on its own like NO2, SO2, CO2 etc. which exists for those: https://www.home-assistant.io/integrations/sensor#device-class perhaps a PR to HA Core :) |
Looking at other Formaldehyde PRs against HA Core (example: https://github.com/home-assistant/core/pull/75807/files) it looks like they just don't set the sensor class for formaldehyde, so it's defaulting to Fun fact: Looks like other HCHO sensors also use mg/m3 so I guess I shouldn't complain about Dyson. |
You did it again! Just updated and now everything is working with no log issues. Thank you for being an awesome and responsive developer. My hat to you. Please allow me the pleasure of closing this issue. |
Hi,
This is a minor thing, but just to be consistent, it would be good to update the units to the proper ones
shenxn/ha-dyson#137
thanks
The text was updated successfully, but these errors were encountered: