Skip to main content

πŸ“¨ 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​

ItemRequired
ModelA 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
RoleAdministrator or Operator of the site
NetworkThe 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 ConsoleWhere the asset publishesAvailable for
Fuzz Local MQTT brokerOn 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 brokerOn the Fuzz cloud broker, mqtt.fuzz.energy, port 8883 (MQTT with TLS), over the InternetHybrid 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 brokerOn an existing broker of the customer or the manufacturer; choose it in Broker, or create it with Add brokerAll 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 shownFuzz Local MQTT brokerFuzz Cloud MQTT broker
MQTT Host / IPIP address of the controller, for example 192.168.1.10mqtt.fuzz.energy
MQTT Port18838883
MQTT UsernameFuzzThe site identifier (site UID), for example t1d1vauf
MQTT PasswordMQTT password of the site, masked (***): click the eye icon (Show password) to display itSame MQTT password of the site
MQTT TLSβ€”Yes
MQTT TopicsThose 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.

SymptomProbable causeSolution
No values, the asset does not connectWrong host, port or password; port 1883 or 8883 blockedCopy the values shown in the Console again; open the port
The asset is connected but there are no valuesTopics different from those of the model, variable filled in wrongly, site identifier added in front of the topicsCompare the published topics with the model; correct MQTT variables
Fuzz Cloud MQTT broker missing from the listEdge site whose cloud option is not enabledTick Allow devices to publish to the Fuzz cloud MQTT broker (Internet exposure step)
Cannot untick the cloud option in Internet exposureAssets still use the cloud brokerChoose 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?