Skip to main content

Home Assistant Integration

Aqua-Scope WiFi devices can be integrated directly into Home Assistant. The integration is based on MQTT and uses Home Assistant's MQTT Discovery feature — once enabled, all sensors, actuators and alarms appear automatically in the dashboard.

Prerequisites

  • A running Home Assistant installation (e.g. Home Assistant OS on a Raspberry Pi)
  • The local IP address of the Home Assistant system
  • An Aqua-Scope device with WiFi connection set up
Find the IP address

If you do not know the IP address of your Home Assistant system, install the "Local IP" add-on from the Home Assistant Add-on Store. It displays the current IP address directly in the dashboard.

Step 1: Install the Mosquitto MQTT broker

Home Assistant needs an MQTT broker through which the Aqua-Scope devices communicate. We recommend the official Mosquitto broker add-on.

  1. In Home Assistant, open Settings → Add-ons → Add-on Store
  2. Search for "Mosquitto broker"
  3. Click Install
  4. After installation, enable the "Start on boot" option
  5. Click Start
Mosquitto broker add-on installed and running

Step 2: Create an MQTT user

The Aqua-Scope devices authenticate against the broker with a username and password. Create a dedicated user for this purpose.

  1. Open Settings → People (or Users)
  2. Click Add Person / Add User
  3. Enter a display name and username, e.g. mqtt-user
  4. Choose a strong password and confirm it
  5. Click Create
Create MQTT user in Home Assistant
Remember the password

Note down the username and password — both are needed again in Step 4 and Step 5.

Step 3: Restart Home Assistant

For the newly created user to be recognised by the MQTT broker, a restart is required:

Settings → System → Hardware → Restart

Step 4: Configure the MQTT integration

After the restart, connect the MQTT integration with the new user.

  1. Open Settings → Devices & Services
  2. Search for MQTT and click Configure (or add the integration if not yet present)
  3. Enter the following details:
FieldValue
Brokercore-mosquitto
Port1883
Usernamemqtt-user
Passwordthe password chosen in Step 2
  1. Click Submit
Configure MQTT integration in Home Assistant

The integration should now show "Configured" and the Mosquitto add-on should report "Running".

Step 5: Connect the Aqua-Scope device to the broker

To make the Aqua-Scope device send its data to Home Assistant, the MQTT connection details must be stored on the device.

  1. Open the Aqua-Scope app
  2. Select the desired device
  3. Navigate to Configuration → Communication Options
  4. Enable MQTT and enter:
ParameterValue
ServerIP address of your Home Assistant system (e.g. 192.168.1.42)
Port1883
Usernamemqtt-user
Passwordthe password chosen in Step 2

See the MQTT page for details on the MQTT parameters.

Step 6: Enable Home Assistant Support

  1. With the device still open in the Aqua-Scope app
  2. Under Configuration, enable the "Home Assistant Support" option
  3. Save

Once enabled, the device automatically publishes MQTT Discovery messages to the broker. Home Assistant detects the device and creates all entities on its own — no entries in configuration.yaml are required.

Automatically discovered entities

Once Home Assistant Support is active, the following entities appear depending on the device type:

Sensors

SensorDevices
TemperatureAll devices
Water pressureAQS, AQX, PRE
Water consumptionAQM, AQX
RainfallRAN
HumidityFLO, CLP
Battery statusAll battery-powered devices

Actuators

ActuatorDevices
Valve Open/CloseBVS, KFR (via monitor)

Alarms

All alarm messages from the device (leak, overpressure, frost, etc.) are available as MQTT events and can be used in automations.

Every alarm message contains a source field:

  • source: 0 — alarm from the main device
  • source: 1 or higher — alarm from a paired sub-device (e.g. flood sensor or motor)

Example automation

On a flood alarm, send a mobile notification and turn on the basement light:

automation:
- alias: "Aqua-Scope Flood Alarm"
trigger:
- platform: mqtt
topic: "/AQS/12345678/alarm"
condition:
- condition: template
value_template: "{{ trigger.payload_json.alarm == 'flood' }}"
action:
- service: notify.mobile_app
data:
message: >
Water alarm! Flood sensor has detected water.
(Source: {{ trigger.payload_json.source }})
- service: light.turn_on
target:
entity_id: light.basement

Replace 12345678 with the 8-character device ID of your Aqua-Scope device (printed on the device).

Tips & troubleshooting

Multiple devices

Each Aqua-Scope device has a unique device ID. Any number of devices can be connected to the same broker in parallel and will appear as separate devices in Home Assistant.

Connection fails

If the device stays offline in Home Assistant, check:

  • Is the IP address of the Home Assistant system entered correctly in the app?
  • Has Home Assistant been restarted after creating the MQTT user?
  • Are username and password correct?
  • Does the firewall allow access to port 1883?
Encrypted connection

For a TLS-encrypted connection, use port 8883. See the MQTT page for details.

Supported devices

Home Assistant Discovery is supported by all WiFi-enabled Aqua-Scope devices: