MQTT output| The function block MQTT output is used to publish values from the controller as an MQTT message. In the settings dialog a list is created with the inputs button: one topic per line. One input is created for every line. When the value at the input changes, the message is sent. |
Inputs |
||
| E0 | Value 0 | Value of the first line of the list. One further input is created for every further line (E1, E2 and so on). |
Parameters |
||
| Inputs | Opens the list of topics. Per line the topic is entered under which the value is published. | |
| Data type | Format of the sent value: Integer as a whole number, Float with decimal places, True/False and On/Off as text for bit values. | |
| Retain | The broker remembers the value sent last and passes it on to newly connected participants. Without retain, a participant only receives a value on the next change. | |
| Update on startup | Sends all values once when the controller starts, even if nothing has changed. With an external broker the values are sent as soon as the connection is up, and again after every reconnection. | |
| Server type | Internal (default): The MQTT broker of the controller is used, as with all Shelly blocks. It has to be switched on, see MQTT devices - general. External: The block connects to another broker in the network itself, for example a Mosquitto on a server that Zigbee2MQTT also uses. The following parameters only appear with External. |
|
| Server | IP address or name of the external broker. | |
| Server port | Port of the broker, default 1883. With TLS usually 8883. | |
| User / Password | Login at the external broker. Leave empty if the broker does not require one. | |
| TLS | Encrypted connection to the external broker. | |
| Verify certificate | With TLS, additionally checks the certificate of the broker. | |
See also MQTT devices - general.
See also general parameters of all function
blocks.