It's been known for sometime that the Wunderground API was being discontinued, but there are still those who have Personal Weather Stations who have access to the API now through their new API process for PWS owners: https://apicommunity.wunderground.com/weatherapi/topics/turning-off-pws-associated-keys
but the Home Assistant component still uses the old API and hasn鈥檛 been updated (or a new one made) to work with the NEW API as documented here:https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit
I鈥檓 not in a position to help with this, but I鈥檓 hopeful that the component developers for Wunderground can take a look into this and hopefully provide an updated component soon before the spring season hits (as it handles all of my severe weather and irrigation automations!)
Thanks!!
Home Assistant release with the issue:
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Component/platform:
Wunderground
Description of problem:
Still uses old API. See here: https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit
I know how to code but haven't made any components for Home Assistant yet. I'm using the Wunderground PWS api for a project I'm working on and I may be able to update the current component in Home Assistant as well.
I'm also using the Weather Underground HA integration and a PWS operator (www.weather-station.org). Would love to see this updated to the new API format. Unfortunately my coding skills are thin so not sure how much I can add (other than the ability to test).
@codycodes you can start from creating a custom component, it relative easy, see: https://developers.home-assistant.io/docs/en/creating_component_index.html
By luck and chance someone posted a profile here that has a WUnderground PWS custom component already built! You can find it at:
https://github.com/cytech/Home-Assistant-wundergroundpws
If you find it useful you should buy him a 馃嵑 !
~Good stuff. I got my dev environment setup and am looking at API wrappers from pypi to see if there's anything already available and ready to integrate. Unfortunately I can't get an API key due to site maintenance.~
~I will get the key soon and hopefully be able to have this working in the near future. I would much rather use an existing wrapper rather than write one myself as I'll probably be missing some things (mainly documentation) if I do. For now it'll probably remain as a custom component, but I hope that if it works out it can be merged :).~
~EDIT: Got the key, going to test. I'm more confident now that I can write a wrapper and document it after looking at the PWS API. Hope to have news for you guys shortly :)~
~Update: I successfully called the api and have been working on some test cases. I am hoping to have the python package done in the next couple days and then hope to integrate to home assistant! Thanks for sending me resources y'all.~
~Update 3-30-19: I've been a bit preoccupied with work and such but I'm making progress and hope to have the API wrapper I made up on pypi asap! I will delve right into the home assistant configuration and hope to have a custom component rolled out within a week. Thanks for your patience!~
Good stuff. I got my dev environment setup and am looking at API wrappers from pypi to see if there's anything already available and ready to integrate. Unfortunately I can't get an API key due to site maintenance.
I will get the key soon and hopefully be able to have this working in the near future. I would much rather use an existing wrapper rather than write one myself as I'll probably be missing some things (mainly documentation) if I do. For now it'll probably remain as a custom component, but I hope that if it works out it can be merged :).
EDIT: Got the key, going to test. I'm more confident now that I can write a wrapper and document it after looking at the PWS API. Hope to have news for you guys shortly :)
Update: I successfully called the api and have been working on some test cases. I am hoping to have the python package done in the next couple days and then hope to integrate to home assistant! Thanks for sending me resources y'all.
Update 3-30-19: I've been a bit preoccupied with work and such but I'm making progress and hope to have the API wrapper I made up on pypi asap! I will delve right into the home assistant configuration and hope to have a custom component rolled out within a week. Thanks for your patience!
Came here to see if someone had posted an issue and was very happy to see that you're working on a solution! There's a number of users that have PWS that would still like to be able to use the WU API, especially those of us that own PWS that can only interface with WU. Thank you!
Thanks so much, @codycodes - that is great news!!!
Some might also be interested in the new Weather Underground API for Kodi, which I was able to contribute a small section of code for imperial units.
https://github.com/cytech/weather.wundergroundpws
Between the new API being developed for Home Assistant and working in Kodi, that is fantastic!!!! The only negative is the new API (hosted by IBM) doesn't have nearly the data of the original Weather Underground API. So many things missing, like current condition, record high/low, etc. I asked if they would be added and it doesn't appear it will, unfortunately.
@MarkHofmann11 did you know that there's already a custom component for the Wunderground PWS API on the profile you linked? Thank you @cytech for the custom component! I've tested it and got it setup on my install. If you find it useful you should buy him a beer (I know I do!):
@codycodes no, I didn't even notice! Thanks for letting me know! How do we go about getting this added to HA without it being a custom component?
I will have to check that out soon. It is a small world where we have people with PWS, HA, and Kodi - all using the Weather Underground API.
I hope to soon work with Brian Hamilton from Weather Display on testing MQTT support Weather Display. Then we can get data direct from the program and not need WU.
hi all
the custom component was my first attempt at an HA component so beware... :)
I cannibalized the old built-in. The new api is pretty restricted compared to the old and also does some weird things like sending null after 3:00 apparent time, etc so you will see some 'na''s here and there after 3 pm.
It seems to work fine here. been using it for a few weeks without issues.
observation note, I use Weewx for collecting/posting my pws data and being that it is mysql based I was abled to setup a mysql component in HA and pull my pws data direct from my server.
just in case any one is collecting locally and does not want to deal with weather underground
thanx
and hi @MarkHofmann11
didn't know you were using home assistant too :)
Hi @cytech - it sure is a small world. We are all apparently running the combination of PWS, Kodi, and Home Assistant at a minimum. I had no idea you already wrote a WU<->HA component until this morning.
I'm using several Weather Station programs at the same time, one being Weather Display. Ideally it would be best to get the data from the source. Weather Display can use SQL and creates a clientraw.txt with data that could be used. I have been in contact with the person that wrote and supports Weather Display and he is open to making it work with MQTT, also. This could be another option to bring weather station data directly into HA, Kodi, etc. Since we all run PWS, it would be better (and be able to get more data) directly from the source vs. relying on IBM/WU who left us with less functionality these days.
It is great seeing all the progress, though! Lost of fun and I have already learned a few things this past week about python. A few weeks ago I couldn't write a line of code, but it was fun looking at your code and figuring out how to get imperial units to work. That was a small baby step for me and fun.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
By luck and chance someone posted a profile here that has a WUnderground PWS custom component already built! You can find it at:
https://github.com/cytech/Home-Assistant-wundergroundpws
If you find it useful you should buy him a 馃嵑 !
~Good stuff. I got my dev environment setup and am looking at API wrappers from pypi to see if there's anything already available and ready to integrate. Unfortunately I can't get an API key due to site maintenance.~
~I will get the key soon and hopefully be able to have this working in the near future. I would much rather use an existing wrapper rather than write one myself as I'll probably be missing some things (mainly documentation) if I do. For now it'll probably remain as a custom component, but I hope that if it works out it can be merged :).~
~EDIT: Got the key, going to test. I'm more confident now that I can write a wrapper and document it after looking at the PWS API. Hope to have news for you guys shortly :)~
~Update: I successfully called the api and have been working on some test cases. I am hoping to have the python package done in the next couple days and then hope to integrate to home assistant! Thanks for sending me resources y'all.~
~Update 3-30-19: I've been a bit preoccupied with work and such but I'm making progress and hope to have the API wrapper I made up on pypi asap! I will delve right into the home assistant configuration and hope to have a custom component rolled out within a week. Thanks for your patience!~