Skip to content

Notifications

olialb edited this page Jun 22, 2026 · 2 revisions

Notifications

You can also send notifications from openHAB to the panel

Simple notification

You can send a notification text to the topic notification. This text is shown in the screensaver and lost when you leave the screensaver

Notification cards

For more persistant notifications you can define notification cards of type popupNotify. This cards show the content of an openHAB item as notification and can be activated and deactivated over an openHAB *Switch" item.

Note: This card type has in ticaki/ioBroker.nspanel-lovelace-ui 3 instead of 2 buttons.

Card attributes of popupNotify card:

card attribute default value from skin file optional / Mandetory Description
title "Notification" O Shown as title in the card
fontSize 2 O font size of the notification text. Values from 1-5 are allowd see also here Label Parameter
titleColor white O Color of the popupNotify card title
textColor white O Color of the popupNotify card text
b1Color red O Color of the popupNotify card 1st button
b2Color green O Color of the popupNotify card 2nd button
b3Color grey O Color of the popupNotify card 3rd button. The 3rd button is only supported if you use HMI from fork ioBroker.nspanel-lovelace-ui
b1Text 'Ignore' O Name of the 1st button. Default content depend on translation json.
b2Text 'OK' O Name of the 2nd button. Default content depend on translation json.
b3Text empty O Name of the 3rd button. Default content depend on translation json. The 3rd button is only supported if you use HMI from fork ioBroker.nspanel-lovelace-ui

Slots of popupNotify card:

Slot number OH item type slot types default value optional / Mandetory Description
1 Switch switch - M The switch item in openHAB to activate and deactivate this notification.
2 Any text - M Prefered to use a openHAB String item, which content is shown as notification text. You can add line brakes with "\r\n" in the string. As an alternative you can show any item state as text.
3 String text n.a. O This is an optional openHAB String item. If its defined, the name of the button (b1Text, b2Text or b3Text) is send to this item when the popupNotify is left. You can react on this in a special openHAB rule.

Notify card Example:

  - name: PlantAlarm #free name of the state card.
    type: popupNotify
    fontSize: small
    title: Pflanzen giessen!
    slots: #2 slots must be defined in a notify popup
      - class: ohItem #switch to activate the notification
        type: switch
        item: Switch_PlantWarning
        icon: palm-tree
        iconColor: green
      - class: ohItem #Notification text
        type: text
        item: String_PlantWarning

image

Behavior of a notification popupNotify card:

  • When the switch item in first slot of the card is ON, a notification is shown in the screensaver and the card is shown first after leaving the screensaver
  • You can press on the left button (default label "Ignore") to leave the card
  • You can press on the right button (default label "OK) to leave the card and switch the item on slot 1 to OFF. That means you acknowledge the notification and switch it OFF. The notification card will not be shown again until the notifation text in slot 2 changes.
  • As an alternative you can define a String item for slot 2 an react individually on the buttons. The state of the switch item in slot 1 is not touched by the bridge.

Clone this wiki locally