The configuration for a MQTT host
The MQTT auth mechanism
No authentication
Authentication using a username and password
The buffer size for each connection
Value must be greater or equal to 0.0
The MQTT host
The MQTT client ID
The MQTT keep alive time in seconds
Value must be greater or equal to 0.0
The MQTT port
Value must be greater or equal to 0.0
All the topics to subscribe/publish
No Additional ItemsThe configuration for a MQTT topic
A list of datapoints for this topic, which can either be a subscription or publication depending on the mode.
No Additional ItemsDatapoint mode
The mapping of a datapoint to a MQTT JSON It will send MQTT messages with the following structure: json { "datapoint_name": "some_name", "value": UInt32, "timestamp": 1234567890 }
The name of the datapoint This datapoint must be set as a subscriber
The QoS level for the MQTT message
The mapping of a MQTT JSON value to a datapoint
The name of the datapoint This datapoint must be set as a publisher
If the MQTT message contains a timestamp, this is the path to the timestamp in nanoseconds. If this field is set to None, the timestamp will be set to the current time.
The path to the MQTT JSON value
json { "temperature": { "value": [25.0, 10, 20], "unit": "C" } } and we pretend to map the first element of the value array, then the path is temperature.value[0]The type of the MQTT value
The QoS level for all the subscriptions
The name of the topic
The MQTT server version This is used to represent the MQTT version in the configuration. The version is represented as a string, e.g., "3", "v3.1.1", "5", "5.0" , "v4". Any version up to "4" will be treated as "3", and "5" will be treated as "3".