MQTT input| The function block MQTT input is used to read any MQTT messages for which there is no dedicated block. In the settings dialog a list is created with the outputs button: one topic per line and optionally the name of a field in the JSON. One output is created for every line. This allows integrating third-party devices, Node-RED or your own scripts, for example. The received values are converted: on and true result in 1, off and false result in 0, everything else is read as a number. If a text address is assigned to the output, the content is taken over unchanged as text. |
Outputs |
||
| A0 | Value 0 | Value of the first line of the list. One further output is created for every further line (A1, A2 and so on). |
Parameters |
||
| MQTT topic | Not required for this block, the topics are entered per line in the list. | |
| Outputs | Opens the list of topics. Per line a topic and optionally JSON data are entered. If the JSON field is left empty, the whole message is used as the value. Up to 128 lines are possible. | |
| The topic has to match exactly here. Unlike with the Shelly blocks a part of the topic is not sufficient. |
See also MQTT devices - general.
See also general parameters of all function
blocks.