Skip to content

v2.1.0-dev — Notification System

Pre-release
Pre-release

Choose a tag to compare

@SimoneB79 SimoneB79 released this 26 May 06:49
· 13 commits to dev/notifications since this release

🔔 Notification System

Toast Overlay

  • Custom HTML/CSS toast notifications injected into the Lovelace dashboard
  • Animated slide-in/out with progress bar for auto-dismiss
  • Up to 3 stacked toasts simultaneously
  • 5 priority levels: urgent (persistent + action button), high, default, low, min
  • Color-coded borders: 🔴 urgent, 🟡 high, 🔵 default, ⚪ low, ⚫ min
  • Action buttons support (primary/secondary)

Notification Settings (⚙ menu)

  • Enable/disable notifications
  • Sound on/off
  • Do Not Disturb mode
  • Popup duration: 4s / 6s / 10s / Never
  • Melody selection: Default / Success / Warning / Error
  • Recent notification history with clear

Custom Sounds

  • Place .wav, .ogg, .mp3, or .flac files in ~/.config/ha-linux-companion/sounds/
  • Selectable from the overlay menu
  • Preview on selection change

Channels

  • Auto-created when HA sends a notification with data.channel
  • Per-channel settings: enabled, sound, priority
  • Disabled channel = notification suppressed
  • Configurable from the overlay menu
  • Persisted in ~/.config/ha-linux-companion/channels.json

Sending Notifications

service: notify.mobile_app_pannello
data:
  title: "🚨 Alert"
  message: "Front door opened!"
  data:
    priority: high
    push_sound: warning
    channel: alarm
    channel_name: Allarmi

Commits

  • 534c722 v2.1.0-dev — Toast notification overlay
  • f6b31cd Notification settings in overlay menu
  • 7c06925 Custom notification sounds support
  • d2b2030 Notification channels — auto-create from HA, per-channel config
  • 8354837 docs: update README with notification system docs