A sensor that gives you weather alerts from alerts.weather.gov.
Changes:
weatheralerts v0.1.5
Changes:
weatheralerts v0.1.4
Changes:
weatheralerts v0.1.3
Changes:
weatheralerts v0.1.2
weatheralerts YAML packages v0.1.2
This release addresses a problem when multiple alerts are issued with the same 'sent' date/time. The json alert feed will randomly swap these alerts around and can cause notifications to be continually re-triggered, potentially every 30 seconds (or whatever the scan_interval is set to in the weatheralerts yaml configuration). The alerts array is now sorted by 'sent' and 'id' fields, and should keep alerts in a consistent order even when they are swapped around in the json alert feed.
Added 'county' platform config option to specify an optional county ID number. 'zone' should be set to a proper zone ID number (and is required), the county ID number should then be specified with the 'county' option.
Additional alert properties have been added along with proper handling in the event an attribute is not included in the json alert feed. Feel free to request additional alert properties by submitting an issue here on github (https://github.com/custom-components/weatheralerts/issues).
The main platform sensor entity state will contain the number of active alerts, unless the sensor fails to connect with weather.gov to retrieve alerts. If the sensor cannot connect to weather.gov to retrieve the json alert feed, the sensor state will be set to 'unavailable'. The yaml package(s) with this pull request includes template sensors that will retain active alerts and the active alert count (for a short period), even when the main sensor becomes 'unavailable'.
PlatformNotReady is added to allow the platform to continue to retry the initialization if the weather.gov site is too slow to respond or experiencing other issues.
Added additional checks to verify the specified zone and county IDs are valid.
Included a set of comprehensive yaml packages that include tracking for up to 5 active weather alerts and automations and script to handle UI notifications.
Started update of README.md documentation.