Overview Push Message NTFY



With this function block, push notifications can be sent via the NTFY app. In the app, a topic must be subscribed to in order to receive messages. The serial number of the controller is used as the topic, as it is unique. 

The app can be installed from the app stores, name of the app NTFY.

iOS app Download

Android app Download



Inputs

TR
Trigger
Trigger at which the message is sent. See parameter Trigger.
WT / W1..W8
Value
Optional values. Values can be linked here that are inserted into the topic or the message. The placeholder %1 in the topic or message is replaced by the value of the first value input, %2 by the second one and so on. The number of value inputs is set via the parameter Input count. The formatting depends on the data type of the linked address (integer, floating point number or string); if no address is linked, floating point is used. The older placeholders %d, %f and %s are still supported and refer to the first value input.

Outputs

FE
Error
Number of errors.
AZ
Count
Number of messages still to be sent.
FT
Filter
Remaining filter time in seconds. After a message has been sent, this output counts down from the time set in the Filter parameter to 0. As long as the value is greater than 0, no further messages are sent.

Parameters

Trigger
  • Rising edge: data is sent on 0-1.
  • Falling edge: data is sent on 1-0.
  • Telegram 0: data is sent on a telegram with value 0.
  • Telegram 1: data is sent on a telegram with a value other than 0.
Topic
Optional topic. The topic consists of the serial number of the controller and this parameter. If this parameter is empty, the topic is for example "8805-ca65-51f9-47e1-b5a6-60a9-344c-0597", otherwise "8805-ca65-51f9-47e1-b5a6-60a9-344c-0597-xy" xy = topic from this parameter.
Message Message that is sent.
E-mail
Optional e-mail address. If this parameter is filled in, the same message is also sent as an e-mail to this address in parallel to the push notification. Several addresses can be entered separated by semicolons. The SMTP server from the project's mail server configuration is used. If the parameter is left empty, no e-mail is sent.
Filter
Waiting time in seconds until the next message is sent (default 300 seconds). After a message has been sent, further messages are discarded for this time. The output FT Filter shows the remaining time.
Input count
Number of value inputs (1 to 8, default 1) for the placeholders %1 to %8.

The placeholders %1, %2 and so on can be used in both the topic and the message. They are replaced by the values of the value inputs, %1 by the first value input, %2 by the second one and so on. For example, the message "Error sensor above %1 degrees" becomes "Error sensor above 50 degrees". The formatting depends on the data type of the linked address; if no address is linked, floating point is used. The older placeholders %d (integer), %f (floating point number) and %s (string) are still supported and refer to the first value input.

Limit: The number of messages is limited per hour and per day. This limit is fixed in the controller, applies to all NTFY function blocks together and protects against unintended continuous sending (e.g. caused by a bouncing input). If the limit is exceeded, the message is discarded, the output FE Error is incremented and an error message is written to the debug log.

See also common parameters of all function blocks.