TIL: With Openhab cloud notification, I can specify icon and more importantly, the “severity” with any string, e.g. high
, or superduperimportant
(this is an arbitrary string, we will interpret the meaning of this string ourselves).
When received, the Android App registers a new notification category using that name (e.g. “high”, or whatever)
Then in the Android app, I can go into the App settings → Manage Notifications → Messages, and I’ll see this severity below the Default
one.
I can enable/disable or customise this severity level, e.g. set as silent, assign a special ringtone, or perhaps more importantly, enable Allow notifications when Do Not Disturb is on
for important messages.
RulesDSL
sendBroadcastNotification("The house fire alarm was triggered!", "fire", "high")
notify("The house fire alarm was triggered!", icon: "fire", severity: "high")
actions.NotificationAction.sendBroadcastNotification('The house fire alarm was triggered!', 'fire', 'high');