custom-components / weatheralerts

A sensor that gives you weather alerts from alerts.weather.gov.
MIT License
123 stars 15 forks source link

Adds optional spoken alerts automation. #59

Closed raptor1jec closed 2 years ago

raptor1jec commented 2 years ago

This pull request adds spoken alerts that are disabled by default as everyone's speaker setup is different. The automation utilizes the previously unused spoken_title and spoken_message attributes to trigger a spoken notification over connected speakers when there is an active weather alert. I tweaked the wording a little so it more closely matches NOAA's alert messages.

To activate, simply enable and replace "friendly_name" with the name of your speakers and change or remove the "quiet hours" time conditions as desired.