[Custom Card] Warning Card – Generic Warning System for Home Assistant
I created a new Lovelace Custom Card called Warning Card.
It is a generic warning / alert card, not limited to batteries.
The goal is to provide a flexible warning board that:
- monitors multiple entities
- evaluates configurable rules
- only appears when something is actually wrong
- provides per-warning actions (e.g. “Resolved?”)
- optionally triggers popups or follow-up logic
Features
- generic rule system (not battery-only)
- multiple entities per rule
- severity levels (info / warning / critical)
- per-row actions
- native Home Assistant confirmation dialogs
- optional automatic popup logic
- HACS compatible
Installation
HACS (recommended)
- Open HACS
- Menu (⋮) → Custom repositories
- Add repository:
https://github.com/SirInsky12/warning-card
Type:
Dashboard
- Install
- Reload Home Assistant or clear browser cache
Manual
- Copy the file to:
/config/www/warning-card.js
- Add a resource:
/local/warning-card.js
Type:
JavaScript Module
Example Configuration
type: custom:warning-card
title: Warnings
threshold: 1
rules:
- id: battery_low
name: Battery critical
icon: mdi:battery-alert
entities:
- sensor.batterien_batterieladung
type: numeric_below
threshold: 5
severity: warning
actions:
- name: Resolved?
icon: mdi:check-circle
service: script.warntafel_behoben_pruefen
confirm_text: Is the issue really resolved?
Quick Test Mode
To force the card to show (useful for testing):
threshold: 999
Feedback / Testing
I’m looking for testers and feedback:
- different devices / browsers
- UI/UX suggestions
- bug reports
If you open an issue, please include:
- Home Assistant version
- Browser / device
- card YAML configuration
- browser console errors (if any)
GitHub repository:
https://github.com/SirInsky12/warning-card
Roadmap
Planned features:
- automatic detection of all battery sensors
- grouping by severity
- sound / alarm integration
- DWD / weather warning presets
- visual editor UI
Thanks for testing and feedback ![]()