Status-Widgets

status.activelist status.badge status.collapse status.log status.message status.notify status.toast


status.notify

Displays a notification edge window

Parameters
{{ status.notify(id, item_trigger, item_message, signal, title, text, level, item_ack, ack_value, item_signal, item_title, item_level) }}
id
unique id for this widget
item_trigger
an item witch triggers the notification
item_message
an item with the dynamic message
signal
a word for the signal corner (optional, default 'INFO')
title
a title of the messagebox
text
an additional static text
level
the level: 'info', 'warning', 'error' (optional, default 'info')
item_ack
an item to send an acknowledge message to (optional)
ack_value
the value which will be sent when the message gets acknowledged (optional, default 0 if item_ack is equal to item_trigger, otherwise 1).
item_signal
an item to set the word in the signal corner. The value overrides the parameter "signal" (optional)
Caution: If this is set, the notification gets not shown until the item has sent a value.
item_title
an item to set the title of the message box. The value overrides the parameter "title" (optional)
Caution: If this is set, the notification gets not shown until the item has sent a value.
item_level
an item to set the level. The value overrides the parameter "level" (optional)
Caution: If this is set, the notification gets not shown until the item has sent a value.
Examples
If you flip the switch to 'on' the alert is been triggerd and the notification will be shown. Watch how clicking the "OK" button in the message box of the warning message resets the trigger item, if item_ack is identical to item_trigger.
{{ status.notify('n1', 'bath.alert.info', 'bath.alert.text', 'INFO', 'Information', 'The heating is too hot!', 'info') }}
{{ status.notify('n2', 'bath.alert.warning', 'bath.alert.text', 'WARN', 'Warning', 'The heating is too hot! Please switch it off!', 'warning', 'bath.alert.warning') }}
Info

Information

The heating is too hot!

Warning

Warning

The heating is too hot! Please switch it off!

Error

Error

The heating is too hot! It will burn now!


Author: Martin Gleiss, Stefan Widmer
enhancements inspired by Frank Benicke

Widgets

Design

Misc