Enter the text to be sent as the content of the push notification.
The message text can be freely customised. This setting is optional.
If a value address is configured, its currently stored value is appended to the end of the message text by default.
Alternatively, placeholders allow you to insert the value at any position within the message text and customise its formatting.
Placeholders for Dynamic Values
The following placeholders are available:
|
Placeholder |
Description |
Example Output |
|---|---|---|
|
|
Integer in decimal notation |
25 |
|
|
Floating-point value |
23.500000 |
|
|
String (text) |
Window open |
Select the placeholder according to the data type of the value to be inserted.
Advanced Formatting
Dynamic value formatting is based on the syntax of the sprintf function.
This allows you to customise the number of decimal places, leading zeros and minimum output width, among other formatting options.
|
Placeholder |
Description |
Example Output |
|---|---|---|
|
|
Integer without additional formatting |
5 |
|
|
Minimum of two digits, padded with a leading zero if required |
05 |
|
|
Minimum of three digits, padded with leading zeros if required |
005 |
|
|
Floating-point value with one decimal place |
23.5 |
|
|
Floating-point value with two decimal places |
23.50 |
|
|
Floating-point value without decimal places |
24 |
|
|
String |
Fault |
|
|
Percentage sign |
% |
For further formatting options, refer to the documentation of the sprintf function.
Note
To display a percentage sign within a formatted message text, use %% to prevent it from being interpreted as part of a placeholder.
Message Text Examples
|
Configured Message Text |
Example Value |
Generated Message Text |
|---|---|---|
|
The room temperature is %.1f °C. |
23.5 |
The room temperature is 23.5 °C. |
|
The current power consumption is %d W. |
850 |
The current power consumption is 850 W. |
|
The battery level is %.0f %%. |
15 |
The battery level is 15%. |
|
There are %02d open windows. |
3 |
There are 03 open windows. |
|
Current system status: %s |
Fault |
Current system status: Fault |
The notification title corresponds to the rule name configured under Name.
///