π¨ MQTT devices
Some meters, inverters and batteries cannot be queried using Modbus: they publish their measurements themselves to a message server, called an MQTT broker. Fuzz subscribes to this broker and reads the asset's messages. This page explains which broker to choose, which credentials to give the asset and how to check reception.
The asset types that accept the Mqtt protocol in the Console are the meter, the photovoltaic installation and the battery. Charge points connect using OCPP, not MQTT.
β Prerequisitesβ
| Item | Required |
|---|---|
| Model | A Fuzz MQTT model for the asset (Model field): it lists the topics published and the message format. Without a model, request one from Fuzz support with the MQTT documentation of the asset |
| Role | Administrator or Operator of the site |
| Network | The asset must be able to reach the chosen broker (local network, or Internet for the cloud broker) |
π§ Choose the MQTT brokerβ
In the asset form, choose Protocol = Mqtt, the Model, then the MQTT broker field:
| Choice in the Console | Where the asset publishes | Available for |
|---|---|---|
| Fuzz Local MQTT broker | On the Fuzz controller of the site, at its IP address on the local network, port 1883 (MQTT without TLS) | Edge sites only. This is the default choice on Edge |
| Fuzz Cloud MQTT broker | On the Fuzz cloud broker, mqtt.fuzz.energy, port 8883 (MQTT with TLS), over the Internet | Hybrid and Cloud sites, and Edge sites where the Allow devices to publish to the Fuzz cloud MQTT broker option is ticked (Internet exposure step of the site parameters) |
| Other broker | On an existing broker of the customer or the manufacturer; choose it in Broker, or create it with Add broker | All sites |
For an Other broker, the Add broker window asks for Name, Host (for example mqtt.example.com), Port (1883 by default), Use TLS, Username and Password.
If Fuzz Cloud MQTT broker does not appear in the list, the cloud option is not enabled for the site: see Fuzz cloud MQTT broker. The local broker does not exist on a Hybrid or Cloud site, which has no controller on site.
π Credentials to configure on the assetβ
After saving, open the asset in Assets: the attributes card shows the connection information to enter in the asset.
| Line shown | Fuzz Local MQTT broker | Fuzz Cloud MQTT broker |
|---|---|---|
| MQTT Host / IP | IP address of the controller, for example 192.168.1.10 | mqtt.fuzz.energy |
| MQTT Port | 1883 | 8883 |
| MQTT Username | Fuzz | The site identifier (site UID), for example t1d1vauf |
| MQTT Password | MQTT password of the site, masked (***): click the eye icon (Show password) to display it | Same MQTT password of the site |
| MQTT TLS | β | Yes |
| MQTT Topics | Those of the model | "As configured in the vendor config: the broker files them under the site" |
For an Other broker, the card shows the host, port, user and password entered for this broker.
Configure the asset so that it publishes its measurements to this host and port, with these credentials, on the topics provided by the model, as they are. On the cloud broker, do not add the site identifier in front of the topics: Fuzz itself files the messages of each site separately.
MQTT variablesβ
Some models use topics with a variable part, for example {deviceId}. The form then shows an MQTT variables table ("Values used to resolve variables in the MQTT topic, such as {deviceId}."): enter in Value the value specific to your asset, for example its serial number. Variables marked as required must be filled in, otherwise the Console refuses to save. When the model offers a list of values, choose from the list. If you change the Model, the table is recalculated for the new model: check the values again. Without variables in the model, the table does not appear.
π Check that MQTT messages are receivedβ
When the asset publishes correctly, it goes Online in Assets and its values (P (W), currents) appear in the State tab. An asset that does not publish, or publishes on other topics, stays without values.
| Symptom | Probable cause | Solution |
|---|---|---|
| No values, the asset does not connect | Wrong host, port or password; port 1883 or 8883 blocked | Copy the values shown in the Console again; open the port |
| The asset is connected but there are no values | Topics different from those of the model, variable filled in wrongly, site identifier added in front of the topics | Compare the published topics with the model; correct MQTT variables |
| Fuzz Cloud MQTT broker missing from the list | Edge site whose cloud option is not enabled | Tick Allow devices to publish to the Fuzz cloud MQTT broker (Internet exposure step) |
| Cannot untick the cloud option in Internet exposure | Assets still use the cloud broker | Choose another broker on these assets first (the Console lists them) |
π See also: Fuzz cloud MQTT broker, An MQTT asset is not sending data, what should I check?