Skip to content

Notifications

chochb edited this page Dec 1, 2026 · 3 revisions

Notifications, live activities and dynamic badges

Each display gets a notify service notify.hapanel_<display> in the Companion App format – automations written for notify.mobile_app_* work with few or no changes.

action: notify.hapanel_kitchen
data:
  title: Front door
  message: Someone rang the bell
  data:
    tag: doorbell
    notification_icon: mdi:doorbell
    color: "#ff9800"
    image: /api/camera_proxy/camera.front_door
    actions:
      - action: OPEN_DOOR
        title: Open

Supported data fields

Field Effect
tag replaces a notification with the same tag; needed for clear_notification and live updates
notification_icon, color icon and colour of the banner
image picture in the banner (HA path or URL)
actions buttons (action, title, uri); pressing fires mobile_app_notification_action like the Companion App
sticky, timeout stays until dismissed / disappears after n seconds
importance / priority high notifications still sound when the sound is set to important only
sound true / false per notification
live_update, progress, progress_max live activity with progress bar
chronometer, when, when_relative live activity with countdown
tap_action, hold_action like in the dashboard: navigate, more-info, toggle, perform-action, url; or clickAction / longClickAction as text (path, entityId:<id>, #pop-up)
entity_id (or clickAction: entityId:<id>) tap opens the view that shows the entity and its more-info dialog

Special messages: clear_notification (with data.tag), command_screen_on, command_screen_off. Swiping a notification away fires mobile_app_notification_cleared.

While a display is offline, notifications are kept in HA and delivered when it reconnects.

Live activity example

action: notify.hapanel_kitchen
data:
  title: Washing machine
  message: 40 min left
  data:
    tag: washer
    live_update: true
    progress: 60
    progress_max: 100
    notification_icon: mdi:washing-machine

Send again with the same tag to update it; message: clear_notification ends it.

Add entity_id (e.g. switch.washing_machine) so that tapping the dynamic badge opens that entity.

Dynamic badges (live badges)

A live activity is swiped away and keeps running as a pulsing badge in the badge row of the view

Since app 2.27. A live activity you swipe away does not disappear – it keeps running as a dynamic badge in the badge row at the top of the view, next to your normal badges:

  • Swipe up, right or fully left on a live activity to turn it into a badge. (A half swipe left still shows mute and delete.)
  • The badge shows icon, title and progress in %; its border pulses softly in the notification color.
  • If the view has no badges, the badge row is shown just for the dynamic badges and hidden again when the activity ends.
  • Tap: opens the more-info dialog of data.entity_id; without an entity it shows the live activity again. Hold: shows the live activity again.
  • Updates with the same tag update the badge; clear_notification removes it.

Settings on the display (settings page › Notifications):

Setting Options
Dynamic badges on (default) / off – off: hidden activities are shown by the glow bar as before
Show on all views (default) / start page only
Position centre (default) / left of the first badge / right of the last badge

On the display

  • Banners appear at the top in your theme. Several open ones stack like on iOS; tap the stack to unfold it (count, less, clear all).
  • Hidden live activities become dynamic badges. With dynamic badges off, a glow bar lights up at the top edge instead (pulse, glow, line or off); tap it or swipe down on it to show them again.
  • Swipe half left for mute and delete. Normal notifications: fully left deletes, up/down/right only hides. Live activities: up, right or fully left collapses them to a badge.
  • Hold a notification (without hold_action) to mute: this one, all running ones, or all for 15 min, 1 h, 4 h or until 7 am. Muted = no banner, no sound, no wake-up.

Settings

On the display: settings page › Notifications (position top/middle/bottom, distance to the edge, swipe directions, sound off/important/always, on notification (nothing/screensaver/dashboard, important ones always wake), display time, glow bar style, test sound, dynamic badges on/off, all views or start page, position). In HA: switch Mute notifications, sensor Notifications (number of open notifications).

Clone this wiki locally