question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

airq integration stops updating

See original GitHub issue

The problem

I’m trying the AirQ integration on the dev branch. I was able to set it up fine, and it started gathering and reporting data.

However, a few hours later (at 8:45 local time), it suddenly stopped updating and providing new values.

During the night (these times are in UTC), I found these in the logs - there’s nothing else after the start up:

2022-11-14 01:30:47.030 ERROR (MainThread) [homeassistant.components.airq] Timeout fetching airq data
2022-11-14 01:30:57.142 INFO (MainThread) [homeassistant.components.airq] Fetching airq data recovered

However, the airq then continued reporting data until 7:45 UTC. The only error message in the logs which matches this is a timeout from the telegram integration, which seems unrelated. The AirQ itself is still reachable on its web interface and via the app.

Manually reloading the integration resolved this temporarily and the AirQ is now reporting values again, but obviously it would be preferable if this wasn’t necessary.

What version of Home Assistant Core has the issue?

Home Assistant 2022.12.0.dev20221113

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

AirQ

Link to integration documentation on our website

https://next.home-assistant.io/integrations/airq

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Unfortunately not.

Additional information

AirQ Pro by CorantGmbH Firmware: 1.20.2.r6_D_1.79 Hardware: D

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
l-mbcommented, Nov 17, 2022

It hasn’t occurred again. But I’ve also had to upgrade the Air-Q firmware to 1.80.0 (the new ones shipped with -rc1 which wouldn’t dim the LEDs during the night 😃 ), plus moved on to a more recent dev release from HA.

Let’s close unless I can reproduce with more logs, and hopefully on a stable HA branch too.

0reactions
Sibgatulincommented, Nov 24, 2022

Thanks for the logs! I am assuming those records which state success: False are proceeded by another log entry, such as Timeout fetching airq data? Just wanted to comment on the ~15.5 seconds reported by all failed updates. It is most likely due to the default timeout of 15s set in aioairq.AirQ.__init__ and passed through aioairq.AirQ.get to aiohttp.ClientSession.get. Hitting this timeout raises aiohttp.ServerTimeoutError (derived from asyncio.TimeoutError) which then must be caught by DataUpdateCoordinator. As a design decision this timeout was added to curb unreasonably long (5min by default) and predestined to fail queries when device and the HA host are not connected to the same network. This timeout is, of course, arbitrary and should not be expected to apply universally. At this point, however, the integration neither changes this timeout nor even exposes it for configuration, which may be a sensible point of further improvement. I cannot, however, point a finger at what may be causing the longer delays in those requests which finally succeed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sensibo integration does not expose air quality for ... - GitHub
I recently got a new sensibo AirQ device and it works fine with the cloud API integration. But it does not expose the...
Read more >
2022.8: You can fix it! - Home Assistant
The Sensibo integration now supports the AirQ sensor. ... Fix lifx homekit discoveries not being ignorable or updating the IP (@bdraco ...
Read more >
How can I upload my measurement data to the my.air-q.com ...
3. Log in to the account in the smartphone app. 4. Add your air-Q device to the Dashboard if you have not already...
Read more >
Integration of AirQ+ and particulate matter mass concentration ...
Integration of AirQ+ and particulate matter mass concentration to calculate health and ecological constraints in Islamabad, Pakistan.
Read more >
Integration Hub ETL - All CIs are not being update...
To Implement Generic API, we have tried to use Integration Hub ETL to update CMDB data. We have used the endpoints - CMDB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found