Can you file an issue…this started since the last update for me.
i updated to 0.32.4 now
16-11-16 19:18:23 homeassistant.components.sensor.wunderground: Check WUnderground API (‘you must supply a key’,)
16-11-16 19:18:23 homeassistant.components.sensor.wunderground: Received error from WUnderground: you must supply a key
no more wheater data is displayed:’-(
I’ve started to see this show up more in my logs now but I was still getting data on HA 0.31.1. I’m moving back to 0.32.3 now because it looks like @vehsen isn’t getting ANY weather with 0.32.4.
I’ll let you know what I find.
Update: Well the error is still there but at least it appears I am getting weather with 0.32.3. I am still using the code in my custom components folder but it appears the error is the same. I just thought I’d mention that in case it wasn’t obvious from my error message.
Hello everyone,
I just looked at the logs on my HA instance running 0.32.4 and I’m getting the same message too:
16-11-16 01:03:09 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
16-11-16 01:03:31 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
16-11-16 01:19:32 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
16-11-16 01:20:01 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
16-11-16 01:20:31 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
16-11-16 02:13:02 homeassistant.components.sensor.wunderground: Check WUnderground API ('you must supply a key',)
I’ve added some debug marks on my sensor to see if this is somehow related with asyncio calls or something else. I’ll post some findings later on. However I still have the weather information displayed via HA.
Ditto - I noticed it this afternoon while I was considering the new weather component. Any fix in sight?
I’ve added some debug marks on the code to see if the API key was being passed as expected and it is.
From the logs I can see:
16-11-17 08:16:31 custom_components.sensor.wunderground: Check WUnderground API update ('you must supply a key',)
16-11-17 08:16:31 custom_components.sensor.wunderground: KEY 9b09<REDACTED>
Did you guys create an issue already? I’ve added another debug mark to get the full content to see what is happening.
I didn’t. My last two issues turned out to be obvious things I screwed up so I’ve been gun-shy about pulling the trigger on a new issue.
updated to hass 0.32.4, recieving data again, no errors, clean log, everything is fine now!
@tchellomello did you the the language support?
Discussion going at https://github.com/home-assistant/home-assistant/issues/4498#issuecomment-262390494
@vehsen I did not do it yet. Let’s try to address the issues we are having with the key and rate and then we can add it for the next release.
Hello everyone,
For the folks hitting the issue Check WUnderground API update ('you must supply a key',)
please take a look at https://github.com/home-assistant/home-assistant/issues/4535#issuecomment-262403869.
Hello @vehsen,
I’ve started an implementation to support different languages on WU.
Could you test the code available at https://gist.github.com/tchellomello/0c3260836cbe20520f290bcb902015e7
The configuration will be like this:
sensor:
platform: wunderground
api_key: your_api_key
pws_id: station_id
lang: BR
The list of all languages are available at https://www.wunderground.com/weather/api/d/docs?d=language-support
You can different different languages from this list to test it too.
Please let me know if works for you. It worked fine for me.
Thank you!
Marcelo
I just updated my whole system, and wunderground was not working very well… I received many errors…
Without my stationID it wouldn’t work very well, now when I added my stationID it works well again…
Those are the errors I got:
17-02-01 03:12:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
yield from update_coro
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.hass.loop.run_in_executor(None, self.update)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/wunderground.py", line 213, in update
self.rest.update()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 296, in wrapper
result = method(*args, **kwargs)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/wunderground.py", line 248, in update
self.data = result["current_observation"]
and also
17-02-01 22:19:19 ERROR (Thread-10) [homeassistant.components.sensor.wunderground] Check WUnderground API ('Expecting value: line 2 column 1 (char 1)',)
17-02-02 02:37:33 ERROR (Thread-1) [homeassistant.components.sensor.wunderground] Check WUnderground API ('Expecting value: line 2 column 1 (char 1)',)
In the frontend, shows everything good…
There are a few issues reported on Weather underground which could be related with this problem you hit. Are you able to hit it again if you try today?
Yesterday I also updated to version 0.37.1… Since than I got still errors, those are:
17-02-03 10:32:25 ERROR (Thread-1) [homeassistant.components.sensor.wunderground] Check WUnderground API ('Expecting value: line 2 column 1 (char 1)',)
17-02-03 11:12:51 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
17-02-03 13:07:56 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out