NWS Integration

I have been running two NWS integrations for my two homes.
They had been working fine but now (at least the first of the year) I am having problems.
One station reports the following for the daynight

emperature: 19
humidity: 57
pressure: 30.25
wind_bearing: 240
wind_speed: 6
visibility: 10
forecast: 
- detailed_description: >-
    A chance of snow showers before 2pm. Mostly cloudy, with a high near 23.
    West wind around 5 mph.
  temperature: 23
  datetime: '2022-02-14T12:00:00-06:00'
  daytime: true
  condition: snowy
  precipitation_probability: 0
  wind_bearing: 270
  wind_speed: 5
- detailed_description: Partly cloudy, with a low around 10. North wind 0 to 5 mph.
  temperature: 10
  datetime: '2022-02-14T18:00:00-06:00'
  daytime: false
  condition: exceptional
  precipitation_probability: 0
  wind_bearing: 0
  wind_speed: 2
- detailed_description: Mostly cloudy, with a high near 33. East wind 0 to 15 mph.
  temperature: 33
  datetime: '2022-02-15T06:00:00-06:00'
  daytime: true
  condition: cloudy
  precipitation_probability: 0
  wind_bearing: 90
  wind_speed: 8
- detailed_description: >-
    Mostly cloudy. Low around 31, with temperatures rising to around 39
    overnight. South wind 15 to 20 mph, with gusts as high as 35 mph.
  temperature: 31

The other reports only the following

temperature: 75
humidity: 14
pressure: 30.16
wind_bearing: 30
wind_speed: 3
visibility: 10
forecast: 
attribution: Data from National Weather Service/NOAA
friendly_name: KFFZ Daynight

All the stations near me report the same basic information for the daynight function.
NO FORECAST IS GIVEN.

Do I need to reconfigure something?
I have deleted the NWS integration and reinstalled but no luck.

Can anyone help.

The forecast regularly disappears for me throughout the day. So I cache it when it is available. NWS tends to be like that.

Thank you for the reply.

Can you explain how you cache it. I have never done this before.

I use the Weather Template Provider and the NWS weather as input into it along with my Ambient weather station. For each template, I use the ambient weather station value first and then the NWS weather as backup. If I can’t get either then I keep what was stored before. For example

    temperature_template: >
      {% if states('sensor.amb_temp')|is_number %} 
        {{ states('sensor.amb_temp')|int(None) }}
      {% elif states('weather.nws_daynight') not in ('unavailable', 'unknown') %}
        {{ state_attr('weather.nws_daynight', 'temperature')|int(None) }}
      {% else %} {{ state_attr('weather.myhome', 'temperature') }} {% endif %}

IF you don’t have a second source then just get rid of the first if statement. The last ‘else’ will keep the previously stored value, hence the cache. Works for all the templates including the forecast. Then in my automations, etc I always reference weather.myhome as opposed to weather.nws. So weather my home is caching the other sensors and weather information so it’s always available.

Thanks.
I now understand.

1 Like

This was so unreliable for me that I recently switched to Accuweather instead. NWS would time out too much and forecast was really not accurate (yes I had the right station configured).

1 Like

I just installed this because I didn’t know it was an option and I was hoping it would be better than OpenWeather map which often says rain and fog other strange things that don’t or aren’t happening. When NWS sync’d up it gave me this:

image

it looks like the temperatures are shifted by one. It’s really hot right now in the afternoons and the mornings are cool but this shows that AM values are very high and PM values are low!

I guess I can’t win with weather. :confused: