Hi all, not sure if anyone has the same problem?
Hassio core installation on RaspPi
I can see my Weather station live on wunderground.com
Wunderground entity stopped working for me yesterday (2nd March).
I’ve updated Hassio to current release but the same issue.
Log says;
Traceback (most recent call last):
‘File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 293, in _async_setup_platform
await asyncio.shield(task)
File “/config/custom_components/wundergroundpws/sensor.py”, line 353, in async_setup_platform
if hass.config.units.is_metric:
AttributeError: ‘UnitSystem’ object has no attribute ‘is_metric’’
I’m not smart enough (or brave enough) to go altering code in custom components so would be very happy to hear if anyone has the same experience.
Cheers!
Write that in your configuration.yaml exactly like in the picture, then create a folder sensor.yaml and put all the sensors in there. enter this command in the configuration.yaml. sensor: !include sensors.yaml
Be careful, there are a few terms that you don’t need.
You can still adjust the country setting according to the instructions simply change de-DE.![Bildschirmfoto 2023-03-03 um 23.04.46|604x500(upload://fHhhlaVzSGNEsFvK1QMETmZlGWR.png)
Hi @alpat59 !
Well I gave up waiting for someone else to fix it and played around until it worked.
I deleted the contents of the wunderground directory in custom_components, downloaded the zip file from the GitHub repository and unzipped it into a dummy dir then copied the underground contents into the existing dir.
I also had to split my wunderground sensor in my sensors.yaml into configuration.yaml;
wundergroundpws:
api_key: !secret wunderground_api_key
pws_id: !secret wunderground_pws_id
and sensor.yaml;
platform: wundergroundpws
monitored_conditions:
solarRadiation
neighborhood
obsTimeLocal
uv
winddir
humidity
dewpt
heatIndex
windChill
elev
precipTotal
precipRate
pressure
temp
windGust
windSpeed
precip_1d
precip_chance_1d
temp_high_1d
I’m not smart enough to know why that worked but it did (after a restart of course).
Good luck
I’m still using the old version and have installed the new version on a test system which is currently inactive otherwise I could have helped. It’s best to contact the developer and report the problem.
I know this is in the api and on github.
but my forecast is always N/A also before the 3:00pm
Wunderground API caveat:
The daypart object as well as the temperatureMax field OUTSIDE of the daypart object will appear as null in the API after 3:00pm Local Apparent Time.
The affected sensors will return as “N/A” when this condition is met.
edit:
even with reboots it did not solve the problem.
I did the latest update of HA now , reboot and the forecast of today it there.
shoot me
the link starting this topic still leads to version 1. maybe second link or replace with the version 2?
only the forecast icons are still a a default one not weather based
I upgraded the Cytech/wundergroundpws integration from v1.0.x to v2.0.x. The entity names changed as expected to include the wunderground station ID.
Does anyone have a working procedure for renaming the entities and keep the long term statistics?
I think I’m running into some problems because now that I’ve started with the new integration, it’s started collecting long term statistics under the new entities so renaming the old entities runs into a problem (unique constraint in the SQL query that does the rename).
Deleting the new entities doesn’t delete the new statistics data so I can complete the rename.
Just started using this integration, so correct me if I’m wrong, but there isn’t any hourly data. Is this an Wunderground limitation or does this integration just not pull this? I really like having hourly data and would love to switch entirely to this integration.
Also, I followed the instructions on the Github (so just manually copied the files) but now I’m noticing some comments about HACS in this thread. Is there a way to have HACS manage this integration or is that only for the old version?
Thanks a ton!
Edit: Figured out I can just put the github address as a custom repository in HACS.