A logbook-style card for Home Assistant that displays a timeline of errors and their severity levels.
This is a personal project and I will not be assisting with issues. I will, however, push any updates or changes that I make.
An adaption of this card to be used with cat tracking
- Copy
server-monitor-card.jsto yourconfig/www/folder - Add the resource to your Lovelace configuration:
resources:
- url: /local/server-monitor-card.js
type: module- Restart Home Assistant
- Add the card to your dashboard
| Field | Required | Description | Default |
|---|---|---|---|
type |
Yes | Must be custom:server-monitor-card |
— |
error_level_sensor |
Yes | Sensor entity that provides the error level (ERROR, CRITICAL, etc.) |
— |
error_message_sensor |
Yes | Sensor entity that provides the error message text | — |
title |
No | Card title displayed at the top | Server Monitor |
max_events |
No | Maximum number of events to display | 10 |
max_time_ago |
No | Only show events from the last X hours | No limit |
accent_color |
No | Color for scrollbar and UI accents | Uses error_color |
error_color |
No | Icon color for ERROR level events | #FFC2A2 |
critical_color |
No | Icon color for CRITICAL level events | #FF9999 |
unknown_color |
No | Icon color for unknown level events | #FFEE99 |
error_icon |
No | MDI icon for ERROR level events | mdi:alert |
critical_icon |
No | MDI icon for CRITICAL level events | mdi:alert-octagon |
unknown_icon |
No | MDI icon for unknown level events | mdi:help-circle |
type: custom:server-monitor-card
error_level_sensor: sensor.server_monitor_homeassistant_error_level
error_message_sensor: sensor.server_monitor_homeassistant_last_error
title: Logs
max_events: 3
max_time_ago: 12
accent_color: "#A2D2FF"
error_icon: mdi:alert
critical_icon: mdi:alert-octagon
unknown_icon: mdi:help-circle
grid_options:
columns: 12
rows: 8- Displays error messages in a scrollable timeline
- Color-coded severity levels (Error, Critical, Unknown)
- Customizable icons per severity level
- Filters out "none" and "unknown" placeholder messages
- Collapses consecutive duplicate messages
- Visual editor for easy configuration
