home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.54k stars 29.91k forks source link

Weather Underground forrecasts #11723

Closed bastshoes closed 6 years ago

bastshoes commented 6 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.61.1 (docker container)

Python release (python3 --version): 3.6

Component/platform: Weather underground sensor

Description of problem: Forecast sensors not working after upgrade to 0.61.1

Expected: To get weather forecasts

Problem-relevant configuration.yaml entries and steps to reproduce:

- platform: wunderground
    api_key: !secret wunderground_api_key
    lang: RU
    pws_id: IPAVLOSL5
    monitored_conditions:
      - weather_1d_metric
      - weather_1n_metric
      - weather_2d_metric
      - weather_2n_metric

Sometimes sensor stops working right after HASS start and sometimes after first update.

Traceback (if applicable): Log is flooded with of warnings. They appear every 30 seconds.

2018-01-17 12:29:13 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d_metric Attr: value Error: IndexError('list index out of range',)
2018-01-17 12:29:13 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d_metric Attr: friendly_name Error: IndexError('list index out of range',)
2018-01-17 12:29:13 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d_metric Attr: entity_picture Error: IndexError('list index out of range',)

This warnings are appear for each forecast sensor. I have 8 sensors. So my log is over flooded.

Additional info: Meanwhile front-end shows proper icon and date (weekday) but do no show any forecast.

image

VDRainer commented 6 years ago

Same here, problem was already in 0.60 https://community.home-assistant.io/t/weather-underground-errors-in-log-0-60-1/38574

danodemano commented 6 years ago

I've noticed the same thing. It's not just the forecast though, none of the sensors are updating it seems except on a restart of HA. They do seem to SOMETIMES update, but it's not regularly like they should:

wunderground

I don't have any of the errors though in my log.

mattlward commented 6 years ago

I have noticed this as well, forcast as well as current conditions are broken. I am still on 60.0, seems to have started for me when I went to 60. My logs are full of errors and it is impacting my performance. This is a small subset of my log file.

2018-01-17 22:06:19 WARNING (SyncWorker_8) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: temp_high_1d_f Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_8) [homeassistant.components.sensor.wunderground] Failed to update attrs from WU API. Condition: temp_high_1d_f Attr: date Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_9) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: temp_low_1d_f Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_9) [homeassistant.components.sensor.wunderground] Failed to update attrs from WU API. Condition: temp_low_1d_f Attr: date Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_1) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2n Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_1) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2n Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_1) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2n Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_3) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: precip_1d_in Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_3) [homeassistant.components.sensor.wunderground] Failed to update attrs from WU API. Condition: precip_1d_in Attr: date Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_14) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: wind_1d_mph Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_14) [homeassistant.components.sensor.wunderground] Failed to update attrs from WU API. Condition: wind_1d_mph Attr: date Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_19) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2d Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_19) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2d Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_19) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_2d Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_5) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3d Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_5) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3d Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_5) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3d Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_18) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3n Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_18) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3n Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_18) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_3n Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1n Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1n Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_4) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1n Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_17) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_17) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_17) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_1d Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_15) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4d Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_15) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4d Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_15) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4d Attr: entity_picture Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_6) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: precip_1d Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_6) [homeassistant.components.sensor.wunderground] Failed to update attrs from WU API. Condition: precip_1d Attr: date Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_11) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4n Attr: value Error: IndexError('list index out of range',) 2018-01-17 22:06:19 WARNING (SyncWorker_11) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4n Attr: friendly_name Error: IndexError('list index out of range',) 2018-01-17 22:06:20 WARNING (SyncWorker_11) [homeassistant.components.sensor.wunderground] Failed to expand cfg from WU API. Condition: weather_4n Attr: entity_picture Error: IndexError('list index out of range',)

mattlward commented 6 years ago

Could this be part of the problem? Serious problems at WU with meltdown patches.

https://apicommunity.wunderground.com/weatherapi/topics/api-not-working-8jsfugpjga7xv?topic-reply-list[settings][page]=2#topic-reply-list

danodemano commented 6 years ago

@mattlward - seems possible. Though my weather station doesn't appear to have any problems with reporting.

danodemano commented 6 years ago

@mattlward - I think your theory on the API issue is probably correct. Mine seems to have straightened itself out:

image

squirtbrnr commented 6 years ago

having these issues on 0.59.2. Appears to be a WU issue as one minute it's fine, then typically overnight I'll get quite a few errors and the sensors will display "unknown" for a value, then later in the morning or after a restart it sorts itself out.

OttoWinter commented 6 years ago

Fixed by #12548