Skip to main content

MQTT Integration

All Aqua-Scope WiFi devices support MQTT for integration into smart home systems, custom dashboards, or automation platforms such as Home Assistant, Node-RED, or ioBroker.

Enabling MQTT

MQTT can be enabled in two ways:

During Initial Setup (Configuration Page)

During the WiFi setup, you can enter the MQTT connection details directly under "Advanced".

Later via the App

  1. Open the Aqua-Scope App
  2. Select the device
  3. Navigate to Configuration → Communication Options
  4. Enter the MQTT connection details

Configuration Parameters

ParameterDescription
serverHostname or IP address of the MQTT broker
portBroker port (default: 1883, TLS: 8883)
loginUsername (optional)
passwordPassword (optional)
enableEnable (1) or disable (0) the service

Example JSON downlink for MQTT configuration:

{
"mqtt": {
"enable": "1",
"server": "my-broker.example.com",
"port": 1883,
"login": "username",
"password": "password"
}
}

MQTT over TLS

Aqua-Scope devices support MQTT over TLS for encrypted connections. Use port 8883 (or the TLS port configured on your broker). The devices validate the server certificate automatically.

MQTT Topics

All topics use the 8-character device ID (printed on the device). Example with device ID 12345678:

TopicDirectionDescription
/AQS/12345678/statDevice → BrokerRegular status messages
/AQS/12345678/alarmDevice → BrokerAlarm messages
/AQS/12345678/cmndBroker → DeviceControl commands to the device

Message Format

All MQTT messages use JSON. The values follow the same format as the JSON Webhook service.

Status Message (stat)

Example of a regular status message:

{
"uptime": 12345,
"temperature": 22.5,
"pressure": 3200,
"battery": 3.1
}

The included fields vary depending on the device type (e.g., rainlevel for the rain gauge, pressure for the pressure sensor).

Alarm Message (alarm)

{
"alarm": "flood",
"state": 1,
"source": 0,
"value": 0
}
FieldDescription
alarmAlarm type (e.g., flood, overpressure, underpressure, temperature)
state1 = alarm active, 0 = alarm cleared
source0 = main device, 1 or higher = sub-device (e.g., paired flood sensor or motor)
valueCurrent sensor value that triggered the alarm (e.g., pressure in mBar for underpressure alarm, temperature for frost alarm). Not present for all alarm types.

Control Commands (cmnd)

Example — close valve:

{"valve": "0"}

Example — open valve:

{"valve": "100"}

Supported Devices

MQTT is supported by all WiFi-enabled Aqua-Scope devices: