Air Things View Plus

I got mine working today. I have a Wave View in Hub mode, 2 Wave pluses and 3 Wave Minis. With the wave view in hub mode. All work great. I had to be patient with everything so all the parts would link up in the hubitat.

Great work to @thebearmay!
Has anyone tried to get direct access to the hub it self and bypass the cloud?

2 Likes

Manual import worked fine, drivers are running.
I tried to see if HPM would find/match it to manage future updates, but it didn’t find it for some reason.

@thebearmay , the driver exposes : attribute "radonShortTermAvg", "number"

Is there a way to modify to access the AirThings current radon reading, not the averaged one? I'm trying to use this in my HRV control code so that ventilation rates increase in response to current radon levels. The 24 hour average radon level attribute doesn't allow me to respond until after levels have risen above the threshold.

Thanks again for this great integration. I'm using averaged CO2 across 3 sensors, VOC and Radon to manage the home's air exchange system and it's working awesome so far :slight_smile:

Only radon value I've seen come back is the short term average (and not really sure what they consider short term TBH).

1 Like

@thebearmay , It looks like "radonShortTermAvg" is the 24 hour average, based on the dashboard.airthings data.

I did see reference to ""hourlyRadon": { }," in the Airthings API. I did try changing the driver attribute to that description but got null values in Hubitat.

Yeah that's what I was getting too.

1 Like

Hi there, I've been using the Airthings integration for some time and it works great. I have 3 Airthings devices:

  1. Hub (used to connect Wave to the internet)
  2. Wave
  3. View

I noticed 2 (seemingly cosmetic issues. First is the View device generates an error every time it refreshes. I tried turning on debug logging but it doesn't shed any additional light.

dev:2692023-10-09 12:38:46.430 PMerrorjava.lang.NullPointerException: Cannot invoke method split() on null object on line 548 (method dataRefresh)
dev:2692023-10-09 12:38:46.385 PMerrorRead Error: status code: 404, reason phrase: Not Found
dev:2692023-10-09 12:38:45.625 PMdebug[--No Selection--, firmware, webcore]
dev:2692023-10-09 12:38:45.580 PMdebugGetting list of files
dev:2692023-10-09 12:38:45.044 PMdebugupdated()

Second is both devices have a funky screen when viewing.

Thoughts?

The "funky screen" is due to the driver requesting data before the hub is fully up - should go away after the next poll. As to the 404 and resulting NPE, what version of HE firmware are you running? If below 2.3.6.x update to the latest and see if that resolves the issue.

HE version is the latest (2.3.6.144)

The funky screen remains constant, never goes away.

Do you have a valid template file listed in your preferences? If so, can you click update on the preferences and then Refresh

Candidly, I'm not sure what that setting does or how to use it correctly so I left the default of "--No Selection--". What should it be?

copy https://raw.githubusercontent.com/thebearmay/hubitat/main/airthings/tileTemplate.txt to the File Manager and set that option to it.

That did the trick re the funky screen!! Thank you!

I'm still getting an error on every refresh:

java.lang.NullPointerException: Cannot invoke method split() on null object on line 548 (method dataRefresh)
Read Error: status code: 404, reason phrase: Not Found

Still acting like it isn't finding the template file. Can you screen shot your file manager and the preferences from the device?

My bad. I neglected to apply the template to the hub device. It's all working now. THANK YOU!!

1 Like

@thebearmay , how would I remove a child device (Air Things Wave Plus) that I have removed from the Airthings hub/web interface? I had a unit replaced under warranty but was wondering now how to remove the old child device from Hubitat. Thanks :slight_smile:

Hmmm. Doesn't look like I handled that scenario. It removes all child devices if you uninstall the app, but doesn't allow an individual removal. I'll need to add something in for you to do that.

Edit: Pushed up a new version that will let you delete Child Devices.

1 Like

Awesome...should I see that via HPM?

Edit: never mind, grabbed it from Github.

That worked perfectly. Thanks again for your great work on this app and driver :slight_smile:

1 Like

Thanks for this. I just installed a View Plus and everything working well.

Any chance for a PM2.5 to AQI conversion option in the future? Info: PM2.5 to AQI Conversion / Mike Bostock | Observable

@hu4725 Import https://raw.githubusercontent.com/thebearmay/hubitat/main/airthings/airthingsDeviceV018.groovy over the top of your current Air Things Device code and see if it will work for you. When it encounters a pm25 value it should output 2 additional attributes:

pm25Aqi - computed AQI from the pm25 value
pm25AqiText - color coded text corresponding to the pm25Aqi

If it works for you I'll replace the live driver and update HPM and the bundle