Home Assistant Community

Severe Weather Alerts from the US National Weather Service

#130

I’m sure it has to do with “The great migration” so its probably a folder structure issue for the feedparser custom component.

I haven’t updated to v92x so I cant troubleshoot it yet. I will be soon tho.

However, you really don’t need the feedparser portion of the package for everything else to work. You can just comment it out and everything else will still function until we get it working again.

Or you can go to the author of the feedparser component and ask for support there. Which, honestly, is the best solution since I’m sure there are others who use it and are probably affected too.

#131

So this is interesting, Am I suppose to have the “custom-components/sensor.feedparser” installed? I haven’t added this and it seemed to be working. If I am that’s probably why the error. I didn’t see that this was required for the nws_alert.

#132

Check your /custom_components/nws_alerts folder and make sure you have the following files:

__init__.py
sensor.py

and a folder:

__pycache__

which should have the files:

__init__.cpython-37.pyc
sensor.cpython-37.pyc
#133

I don’t see the pycache folder or the 2 files. Do I need to create them? On 0.91 it was working fine.

I did add the custom component/sensor.feedparser and the invalid config error went away. I assume that is what was needed even though I never had that previously and I didn’t see it being required for the nws_alert.

#134

I think the pycache folder and files will be created for you.

#135

no. it’s not necessary.

i said as much in my post right above yours. :wink:

But if you just copied the complete package from the github then you need it installed because the config is included in the package.

I think i’ll remove it from the package so it causes less confusion.

#136

when i add the sensor like in the example:

sensor:
  - platform: nws
    zones:
      - COZ240
      - COZ040
      - COC005

(only using my areas)

i get an error when i do the config check:

Integration nws not found when trying to verify its sensor platform.
#137

I do not see any platform: nws used in this thread either.

Please read how to post for help.

#138

that’s in interesting reply. but considering it pertains to this custom component i put it here…
here is a link to the custom component that seems to be referenced above

#139

I searched this thread for that platform and only found platform: nws_alerts

I see that component was last updated a month ago. There have been several changes that could break custom components that have not been updated.

#140

have you changed the way you installed the component based on the requirements of “The Great Migration”?

the component needs to be in the following directory/file:

/config/custom_component/nws_alerts/sensor.py

you will copy the “raw” code from the eracknaphobia github repository for the nws_alert sensor and place the code into the above “sensor.py” file.

you also need to create an empty "__init__.py" file in that same directory (two underscores before & after init).

restart HA and it (hopefully…) will work.

#141

yes, i did that before… and it was working, but since upgrading to 0.92.1 it’s now broken. so i checked the documentation. that documentation i linked no longer has:
/config/custom_components/nws_alerts/

it shows:
/config/custom_components/nws/

so that is now how i have it. if the link i provided is the incorrect component, maybe someone could link me the correct one and i can follow the directions for it so update mine

#142

yes that is a completely different component than the one i’m using for this.

i’ve linked to the correct custom component upthread and in my gist with the instructions for this. but here it is again:

1 Like
#143

that fixed my issue. thank you so much!

1 Like
#144

Thanks for the awesome work on this!

I’m using 0.92.2 and noticed the below in my event log:
Error during template condition: UndefinedError: 'dict object' has no attribute 'to_state'

I’ve narrowed it down to the automation for ‘NWS Weather Alert Pop Up Control’.

Any idea’s on how why it’s popping up?

#145

did you happen to have an active weather alert when you restarted HA the last time before the error popped up?

#146

Yes. That would be correct. We’ve had a ton of alerts here in North Texas the last few days.

#147

I’m not really sure but i think it might have been because there was no “to_state” because the trigger was already in the state that should have caused the to_state to begin with. :crazy_face:

Is everything working otherwise beside that one error?

#148

The weathers calmed down some around here, so I haven’t seen any new alerts. As far as I can tell, everything else seems to be working.

#149

Hopefully it was just a glitch from having the alerts already active when you restarted HA. I’ll guess we’ll see on the next alerts. Hopefully there won’t be a time to test it. Good luck on the weather!

1 Like