MQTT EMS platformThis function block connects the controller to an energy platform via MQTT. The connection is always encrypted (TLS).
Two kinds of data are transferred: the addresses of the filter table and – if the project contains a Block EMS optimizer – its schedule, measured values and the specifications of the platform. All messages are JSON with a timestamp in UTC and the value: {"ts":"2026-11-13T08:15:00Z","value":21.5}.
Only the addresses entered in the filter table take part in the transfer – when sending to the broker as well as when receiving. The transfer is bidirectional: values are sent to the platform and can also be written from there. Messages for addresses that are not in the table are discarded.
If the domain or the password is missing or the controller has no VPN ID, the block does not connect and reports the reason in the log. The broker certificate is not verified; the connection is encrypted nevertheless.
All topics start with the VPN ID of the controller, without any further prefix. The block subscribes to <VPN-ID>/#. There is one topic per address of the filter table:
<VPN-ID>/ADDRESS-VALUE/<main group>/<middle group>/<sub group>
If the project contains a Block EMS optimizer, the block exchanges its data with the platform. The content is defined by the EMS optimizer, this block only transports it:
The fields of the individual messages are described in the help of the EMS optimizer.
The addresses are edited via the ... button next to Filter: drag addresses from the address window into the dialog. For each address a deviation and a time can be set to limit the number of messages:
Outputs |
||
| VB | Connected | 1 = connected to the broker and subscription confirmed. |
Parameters |
||
| Broker domain | Domain of the platform's MQTT broker. | |
| Broker port | Port of the broker, default 8883. | |
| Password | Password at the broker. The user is the VPN ID of the controller. | |
| User / Topic | Information only: always the VPN ID of the controller. | |
| Filter | Table of transferred addresses with deviation and time, see above. | |
| Diagnostics | Writes messages about the connection and received values to the log. | |
One MQTT EMS platform block is possible per project. On a backup controller in standby the block sends nothing.