Air Things View Plus

Re-import and try again. I missed removing a piece of debugging code.

Ok, I did and it says it found 3 devices, which is what I have. 1 hub and 2 airwaves.

Do you want logs?

Yes please! (Please redact your ID and Secret)

2022-10-13 02:40:37.841 pm traceupdated()

app:3572022-10-13 02:40:35.992 pm debug2930065920, WAVE_PLUS, Basement

app:3572022-10-13 02:40:35.991 pm debug2930079412, WAVE_PLUS, Family Room

app:3572022-10-13 02:40:35.990 pm debug2810011248, HUB, Airthings Hub

app:3572022-10-13 02:40:35.921 pm debug[headers:[X-Cache:Miss from cloudfront, x-amz-apigw-id:Z9NBRHK7IAMFulw=, Access-Control-Allow-Origin:*, x-frame-options:DENY, X-Amz-Cf-Pop:CMH68-P1, Connection:keep-alive, X-RateLimit-Reset:1665690000, Date:Thu, 13 Oct 2022 18:40:33 GMT, strict-transport-security:max-age=63072000; includeSubdomains; preload, X-Amzn-Trace-Id:Root=1-63485ba1-73dc236f280f0be941f3157b;Sampled=0, Via:1.1 773037e393cd6076bf819021d17f11ea.cloudfront.net (CloudFront), content-security-policy:default-src 'none'; frame-ancestors 'none', X-RateLimit-Remaining:115, x-xss-protection:1; mode=block, x-content-type-options:nosniff, x-amzn-RequestId:f00f804e-562a-4be4-bb17-f863344b6d64, referrer-policy:no-referrer, X-Amz-Cf-Id:lHCW2UMhKWJ10SfMcxiRV_eG1GpgZsQlz1m0zJTotbi8iwwmPDAdvQ==, X-RateLimit-Limit:120, Content-Length:879, Content-Type:application/json], warningMessages:[], class:class hubitat.scheduling.AsyncResponse, status:200, data:{"devices":[{"id":"2810011248","deviceType":"HUB","sensors":[],"segment":{"id":"fa8fd061-50af-49ee-ba09-8bd25af8ab26","name":"Airthings Hub","started":"2021-06-26T17:52:59","active":true},"location":{"id":"75a5d584-682a-47f6-b7a0-9a9d8d60c111","name":"-"}},{"id":"2930079412","deviceType":"WAVE_PLUS","sensors":["radonShortTermAvg","temp","humidity","pressure","co2","voc"],"segment":{"id":"a0855ecd-8650-4513-af3e-479549747da0","name":"Family Room","started":"2021-10-01T19:32:28","active":true},"location":{"id":"bedae1cc-e698-46e2-8ad1-f3114352af94","name":"Home"}},{"id":"2930065920","deviceType":"WAVE_PLUS","sensors":["radonShortTermAvg","temp","humidity","pressure","co2","voc"],"segment":{"id":"e99bb4e0-0418-432e-9fa1-d4a1f0654348","name":"Basement","started":"2021-10-10T11:40:45","active":true},"location":{"id":"bedae1cc-e698-46e2-8ad1-f3114352af94","name":"Home"}}]}, json:[devices:[[id:2810011248, deviceType:HUB, sensors:[], segment:[id:fa8fd061-50af-49ee-ba09-8bd25af8ab26, name:Airthings Hub, started:2021-06-26T17:52:59, active:true], location:[id:75a5d584-682a-47f6-b7a0-9a9d8d60c111, name:-]], [id:2930079412, deviceType:WAVE_PLUS, sensors:[radonShortTermAvg, temp, humidity, pressure, co2, voc], segment:[id:a0855ecd-8650-4513-af3e-479549747da0, name:Family Room, started:2021-10-01T19:32:28, active:true], location:[id:bedae1cc-e698-46e2-8ad1-f3114352af94, name:Home]], [id:2930065920, deviceType:WAVE_PLUS, sensors:[radonShortTermAvg, temp, humidity, pressure, co2, voc], segment:[id:e99bb4e0-0418-432e-9fa1-d4a1f0654348, name:Basement, started:2021-10-10T11:40:45, active:true], location:[id:bedae1cc-e698-46e2-8ad1-f3114352af94, name:Home]]]]] - devices - 200

Perfect! Thank you. I may be able to get a device coded today from this...

1 Like

Think we're really close... if I haven't fat fingered anything v0.1.0 of the app should create a device for each non-Hub device. (Overwrote the wrong source twice today so no guarantees. :sunglasses: )

Also copy down v0.0.1 of the device driver:
https://raw.githubusercontent.com/thebearmay/hubitat/main/airthings/airthingsDevice.groovy

Once you have run Get Devices or Initial Authorization you should have 1 or more child devices, go into each of these and set the polling rate, and you should be seeing values populating the attributes.

Getting this error:

Metadata Error:Please check if you inadvertently pasted driver code into apps code window on line 26

Looks like you're trying to copy the driver code into the Apps Code instead of the Device Driver code section.

Yes, I was into big a hurry. Give me a sec.

Can't tell you how many times I've done that :sunglasses:

The 3 devices created fine. I set debug on and poll 3 minutes, did inititilize and refresh well over 3 minutes. No changes, no values. Only item in Logs were debug updated()

See this under new App - errorUnhandled Command: 'devices/2930065920/latest-samples'

That would do it, let check real quick to see what I fat-fingered…

Okay try and re-import the app v0.1.1…

Yes! here is the resluts.

data : {battery=65, co2=709.0, humidity=51.0, pressure=976.7, radonShortTermAvg=22.0, temp=22.9, time=1665695175, voc=52.0, relayDeviceType=hub}

I am seeing the temp in Celsius where I am Fahrenheit. Minor.

Radon is showing as radonShortTermAvg=22.0, but I am seeing pCi/L 24h avg. "0.6" in the AirThings Webpage. Maybe this is also a conversion thing.

I need to add the battery, C to F is easy (have the code sitting in a few places), and I think I have the units wrong for the Radon (Bq/m3 instead of pCi/L)

*One pCi/L is equivalent to 37 Bq/m3 so 22 ~> 0.594. I’ll look at corrections after I grab some dinner; worst case tomorrow morning.

Edit: Dinner is running a little late. so device v0.0.2 is out there

1 Like

I’m currently getting the following when attempting to run the app:

Fixed I think, Try re-importing…

Same thing unfortunately… (Version 0.1.2)