Skip to content

v1.2.7

Choose a tag to compare

@djdevil djdevil released this 25 Apr 20:41
0d4d9f6

AlertTicker Card v1.2.7

πŸ”΄ Persistent Alerts + πŸ“± Mobile Hold Fix


✨ Highlights

πŸ”΄ Persistent Alerts β€” stay visible until manually dismissed

A new persistent: true per-alert flag changes how the alert lifecycle works: once the trigger condition becomes true, the alert latches on and stays visible even after the sensor returns to idle. The only way to clear it is to explicitly dismiss it.

When persistent is enabled:

  • The πŸ’€ snooze button is replaced by a βœ• Dismiss button (smaller, red-tinted, always visible)
  • Swiping left also dismisses the alert
  • The latch survives page reloads (stored in localStorage)
  • Works in all card layouts: standard, large_buttons, vertical, and vertical + large_buttons
alerts:
  - entity: binary_sensor.smoke_detector
    state: "on"
    persistent: true
    message: "Smoke detected!"
    theme: fire

Ideal for alarms, critical safety sensors, and any alert you want to ensure is acknowledged β€” not just silenced by a snooze.


πŸ†• Also Added

Feature Description
weather_forecast_interval Set the alternation speed (1–60 s) for weather_forecast mode β€” configurable in the editor, default 5 s
clear_display_mode: weather_forecast
weather_forecast_interval: 10   # seconds per panel, default 5

πŸ› Fixed

  • Hold action not firing on mobile (#95) β€” on touch devices, the browser fires a pointercancel event as soon as it takes over the touch gesture for scrolling, silently cancelling the hold timer before it expires. Fixed by calling e.preventDefault() in _onPointerDown when a hold action is configured for the alert. Standard tap, double-tap and swipe remain unaffected.

πŸ“¦ Installation / Update

HACS

Search AlertTicker Card β†’ Update

Manual

Replace alert-ticker-card.js and alert-ticker-card-editor.js in /config/www/ with the files from this release, then hard-reload the browser (Ctrl+Shift+R).


πŸ™ Support

If this card saves you time, consider buying me a coffee β˜•

Buy Me A Coffee