Skip to content

v2.3.0 - Severity-Based Action Triggers

Choose a tag to compare

@sxdjt sxdjt released this 07 Jan 08:25

New Features: Automated Alert Actions

This release adds the ability to automatically trigger scripts or automations when weather alerts appear or increase in severity.

Action Triggers

Configure scripts or automations to execute based on alert severity:

type: custom:nws-alert-card
nws_zone: AKZ844
email: user@example.com
moderate_action: script.turn_light_yellow
severe_action: automation.close_curtains
extreme_action: script.play_alarm_sounds
alert_trigger_cooldown: 60  # Minutes between triggers

Key Features

  • Smart Triggering: Actions fire when NEW alerts appear or severity INCREASES
  • Highest Severity Only: Only the most severe active alert triggers an action
  • Cooldown Protection: Default 60-minute cooldown prevents spam on page reloads
    • Persists across browser sessions via localStorage
    • Tracked per severity level and per zone
    • Set to 0 to disable cooldown
  • Queue Management: Prevents concurrent action execution
  • Comprehensive Logging: Console logs for all trigger decisions and cooldown status

Configuration Options

Option Default Description
minor_action - Entity ID for Minor severity
moderate_action - Entity ID for Moderate severity
severe_action - Entity ID for Severe severity
extreme_action - Entity ID for Extreme severity
alert_trigger_cooldown 60 Minutes between triggers

Example Use Cases

  • Flash warning lights when alerts appear
  • Close curtains/blinds for severe weather
  • Sound alarms for extreme conditions
  • Send notifications to family members
  • Adjust HVAC settings for temperature alerts

Important Notes

This card and its action triggers are for convenience only and should NOT be relied upon for critical safety decisions. Always consult the National Weather Service directly for official weather information.

Closes #3

See the CHANGELOG for full release history.