Air Things View Plus

still 0 I'm afraid.

If you comment out line 200 do you get anything?

I do but unfortunately nothing useful.
I get 91417653687483085067015051102369522570792703055677411534611329582879370078877688659404941116071938621440

Hmmm. Shouldn't be this hard. I'll try and run some simulated data through the driver this evening or tomorrow morning to see what I've fat fingered...

Thanks.

I may have gotten it right this time if you want to give it another look.

:slight_smile: Excellent work.
Many, many thanks.

Now I just need the Netatmo driver doing the same so I can get the outside absolute humidity to compare to the indoor. :wink:

Thanks. I'll go ahead and make it the production version and recompile the bundle for push out.

I am unable to see the file I uploaded via File Manager. Any idea why? I am running the C5 version with the latest update.

May need to close the app and then re-enter.

@thebearmay Would it make sense to have some of those current state values reported as integers?

For example, the mold risk value that AirThings uses goes from 0 to 10, integers only. As far as I know, VOC and CO₂ are also only reported in integers, and so is radon - as long as Bq/m³ instead of pCi/L is being used.

Mainly for aesthetic reasons when the values are being displayed in a dashboard!?

Only 2 places that I'm doing any calculation - Celsius to Fahrenheit, and pCi/L. The rest are coming straight from the device.

I realize that - and I like that you're not trying to do fancy calculations on the values.

The reason why I'm asking is that previously, I've been using a webcore piston to poll the AirThings API, and the way the values are coming back from the API looks like this:

image

Despite the fact that I'm reading the values from the JSON directly into the variables and despite the fact that I'm using decimal variables, I'm never getting floats for VOC or radon or a couple of other values.

I'm not super familiar with groovy, but is it possible that groovy just appends a ".0" by itself?

You actually have to force a ".0" normally. What do the values look like on the device page?

This is the device page for the AirThings Wave Radon:

and here are the values for the AirThings Wave Mini:

Interesting the numbers are coming across formatted as decimal. I can add an option to force them to integer if you like. Give me about 15 minutes.

1 Like

Should be out there now.

2 Likes

This is absolutely beautiful!!!

image

3 Likes

I'd like to thank you for this great work. I just ordered my View Radon by Airthings and am anxious to set it up in HE. Guess the code both in the first post and in HPM reflects the current update ?

Both pull from the same location ultimately but yes.