home_assistant_airthings_cloud
home_assistant_airthings_cloud copied to clipboard
Data granularity
I'm using a Wave Plus device and the Airthings dashboard CSV export gives sensors data series mostly regular with a 5 minutes step, except for Radon which is once per hour. On home assistant charts I'm seeing irregular samples at less than 1 sample per hour on average instead. Where's the issue? Is it the data from the Airthings API, which differs in granularity from the CSV export, or an issue with the component / home assistant?
AirThings limits API access to essentially every 20 mins. Very frustrating. Even if you have their hub, you can't poll it for any information. That at least would be a work around.
I literally received a Tuya Smart Air Box today to see if that works as a replacement before I spend anymore on AirThings.
A few more details I've found on the CSV export: despite the apparently successful data upload from the Android APP to the cloud, the Airthings Web Dashboard refreshes the shown data about once per hour, just after a new Radon measurement, which happens almost always one hour after the previous.The CSV export follows the same refresh pattern but it always contains previous data, 2 hours old al least.
OT: @MeighenHouse I'm interested on the Tuya Smart Air Box but couldn't find any online review, can you please share briefly your first impressions about it's accuracy and precision?
My apologies for not responding sooner, the first Smart Air Box the VOC and Formaldehyde sensors weren't working. :-/
The device itself though updated every 10 seconds in home assistant once I got the local key off Tuya's developer website. (Not difficult, but an annoying hoop to jump through)
Seller refunded my money and I have another one on the way, which may be a month or more.
AirThings limits API access to essentially every 20 mins. Very frustrating. Even if you have their hub, you can't poll it for any information. That at least would be a work around.
On their webpage, they state you can now get an api for personal use, and max calls 100/hour.
Had not heard of the personal use API, going to have to look into that. Does this integration support it?
As for the Smart Air Box, my second unit from another seller also malfunctioned in the same way as the first. I'm sadly giving up on it.
Can't link it, but on your dashboard.airthings.com/integrations/ page, you should have an API button. I just got a View Plus 2 days ago, so too early to judge, but so far it is working good. Happy i found this intergration. I wonder how often it polls.
Interesting stuff. Unless the integration has been updated, it should still be every 20 mins. The graphs in Home Assistant will show that.
I wonder if the 100 requests count per device. Like if you were polling every minute, that would be 60 requests. But if you had two devices would that be 120 requests? If not, I could see me getting more wave mini's for other rooms.
I think i recall reading that the sensors update every 5 minutes except the radon that updates every hour, so maybe you don't need to poll that often? Their (Airthings) support is awesome, i got told about this integration and the API when i asked about API and HA integration, so they are really alert and 'in the game'. I recommend their app, 'support/chat with us' as i trust their answers more than mine. :)
I am working on a new integration with the public API. It seems the Wave plus is updated every 20 minutes.
https://github.com/home-assistant/core/pull/56578
Sweet! Very fast, thanks!
Got this from support uesterday: "I know that there is a maximum of 100 requests an hour with the API, but I'm not sure how the HA developer has set everything up. Make sure your View Plus is plugged in, because then the sensors update sample every 2.5 minutes (with the exception of radon - hourly, and VOC/CO2 - 5mins). Yes! The View Plus is able to function as a Hub when plugged in. This feature should be released tomorrow, and we will have an article with instructions in the help center."