core: Ambient Weather Stops Updating Sensors

Home Assistant release with the issue:

0.88.1

Last working Home Assistant release (if known): 0.86.0

Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io/Docker Component/platform:

https://www.home-assistant.io/components/ambient_station/

Description of problem: Sensors fail to update after an unspecified amount of time.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

ambient_station:
  api_key: !secret ambient_api
  app_key: !secret ambient_app
  monitored_conditions:
    - 24hourrainin
    - baromabsin
    - baromrelin
    - battout
    - dailyrainin
    - dewPoint
    - eventrainin
    - feelsLike
    - hourlyrainin
    - humidity
    - humidityin
    - lastRain
    - maxdailygust
    - monthlyrainin
    - solarradiation
    - tempf
    - tempinf
    - totalrainin
    - uv
    - weeklyrainin
    - winddir
    - winddir_avg10m
    - winddir_avg2m
    - windgustdir
    - windgustmph
    - windspdmph_avg10m
    - windspdmph_avg2m
    - windspeedmph
    - yearlyrainin

Traceback (if applicable):

Unhandled exception

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start
    await resp.prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 353, in prepare
    return await self._start(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 667, in _start
    return await super()._start(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 410, in _start
    await writer.write_headers(status_line, headers)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 112, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

That sounds good to me. Thank-you!

@bachya everything has seemed smooth. I am frustrated, because now that I’m watching it like a hawk I am not seeing it happening. If I’m honest, I think it’s safe to assume there’s nothing wrong with your code, especially since you, nor anyone else, seem to be experiencing the problem. I must have a gremlin somewhere that has either left, or will poke its head up later when I least expect it. I appreciate your help.