Severe Weather Alerts & Radar Right In Home Assistant

Quick Update: I fixed the limit in the code for the weather description. A YouTube user pointed out I forgot something that I added in the code in the video.

Weather Forecasts in Home Assistant

Home Assistant Weather Integrations – https://tshouse.link/weather

Weather Radar

Weather Underground, Create Custom Radar Image – https://tshouse.link/radar

Display Weather Radar as Camera in Home Assistant

camera:
  - platform: generic
    still_image_url: [[INSERT URL FROM WUNDERGROUND]]
    name: Weather Radar

National Weather Service Alerts

NWS Weather Alerts – https://alerts.weather.gov/

NWS Alerts Custom Component – https://tshouse.link/NWSalert

Code for NWS Alert Parsing

- platform: template
  sensors:
    weather_alert_title:
      value_template: '{% if states("sensor.nws_alerts") | float > 1 %}{{states.sensor.nws_alerts.attributes.title.split(" - ")[0]}}{% elif states("sensor.nws_alerts") | float >0%}{{states.sensor.nws_alerts.attributes.title}}{% else %}No Alert{%endif %}'
      friendly_name: "NWS Alert Title"
      
      
- platform: template
  sensors:
    weather_alert_desc:
      value_template: '{% if states("sensor.nws_alerts") | float > 1 %}{{states.sensor.nws_alerts.attributes.display_desc.split("Description: ")[1].split(">")[0]|truncate(254,True)}}{% elif states("sensor.nws_alerts") | float >0%}{{states.sensor.nws_alerts.attributes.display_desc.split("Description: ")[1].split(">")[0]|truncate(254,True)}}{% else %}No Alert{%endif %}'
      friendly_name: "NWS Alert Description"

Weather Alerts to Text to Speech Example

alias: Weather - Alert TTS
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.nws_alerts
    above: '0'
condition:
  - condition: time
    after: '08:00:00'
    before: '21:00:00'
action:
  - service: notify.telegram
    data:
      title: Weather Title
      message: '{{ states.sensor.nws_alerts.attributes.title }}'
  - service: notify.telegram
    data:
      title: Weather Spoken
      message: '{{ states.sensor.nws_alerts.attributes.spoken_desc }}'
  - service: tts.cloud_say
    data:
      entity_id: media_player.kitchen_display
      message: 'New Weather Alert: {{ states.sensor.nws_alerts.attributes.spoken_desc }}'
mode: single

Weather Alerts to Notification Example

alias: Weather - New Weather Alert
description: ''
trigger:
  - platform: state
    entity_id: sensor.weather_alert_title
condition: []
action:
  - service: notify.telegram
    data:
      message: state_attr('sensor.nws_alerts','spoken_desc')}
      title: '{{states.sensor.weather_alert_title.state}}'
mode: single

Custom Cards I Use In My Weather Dashboard

My Weather Dashboard in Home Assistant

Compass Card – https://github.com/tomvanswam/compass-card

Mini Graph Card – https://github.com/kalkih/mini-graph-card

Sun Card – https://github.com/AitorDB/home-assistant-sun-card