Alert Light - Change a light color and brightness based on alert severity level
About
I created this automation to provide a visual indicator on the Home Assistant Voice Preview Edition light ring (or any color light) for active alerts using my Alert blueprint (referenced below). The automation uses three counters—one for each severity level (high, medium, and low)—to track the current alert status. When an alert becomes active, it increments the corresponding severity counter; when the alert is dismissed or becomes inactive, the counter is decremented. The light color reflects the highest active alert level: red for high-severity alerts, orange for medium-severity alerts (when no high alerts are active), and so on. Enjoy and feedback is always welcome!
Version 1.1
Requirements
- Home Assistant Minimum Version: 2024.6.0
- Three counters: With the restore option set to false (See Setup below)
- Recommend: Use with my Alert blueprint (referenced below)
What’s New
- After Hours Brightness: Set a different alert brightness for a specified time of day
Features
- Multi-Light Support: Control one or more color lights simultaneously
- Customizable Colors: Set custom colors for each alert severity level
- After Hours Brightness: Set a different alert brightness for a specified time of day
- Default State Control: Configure the default color, brightness, and power state when no alerts are active
Related Blueprints
- Alert - Create a dismissible repeating alert based on an entity’s state
- Voice Alert Summary - Read active alerts via voice using local TTS or AI-generated summaries
Setup
Create three alert counters:
- Navigate to Settings > Devices and Services > Helpers:
- Select the Create helper button
- Select Counter
- Fill in the fields:
- Name: Alert Count High
- Minimum Value: 0
- Maximum Value: 100
- Initial Value: 0 - Select Advanced Settings and disable Restore the last known value when Home Assistant starts
- Repeat for Alert Count Medium and Alert Count Low counters