With the recent outage of the NWS weather API (in the US), someone asked how to go about supplementing certain weather data with another service.
I use the Template Weather Provider integration to create my own weather.backyard
entity.
Here is an example of what that could look like based on what I’m using (NWS and Accuweather):
weather:
- platform: template
name: "Backyard"
unique_id: "backyard_weather_32"
condition_template: >-
{% if states('weather.kgrr_daynight') not in ['unavailable','unknown'] %}
{{ states('weather.kgrr_daynight') }}
{% elif states('weather.accuweather') not in ['unavailable','unknown'] %}
{{ states('weather.accuweather') }}
{% endif %}
temperature_template: >-
{% if states('weather.kgrr_daynight') not in ['unavailable','unknown'] %}
{{ state_attr('weather.kgrr_daynight','temperature') |float(0) }}
{% elif states('weather.accuweather') not in ['unavailable','unknown'] %}
{{ state_attr('weather.accuweather','temperature') |float(0) }}
{% endif %}
You would need to do this for each attribute that you plan to use (e.g. temperature, humidity, winds, etc.). You can also use other local temperature and humidity sensors as well. See link above for full listing and further examples about how to use the integration.