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.
{{ status.notify('n1', 'bath.alert.info', 'bath.alert.text', 'INFO', 'Information', 'The heating is too hot!', 'info') }}
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