Watergate Sonic (unofficial) Smart-Home-Integration, kostenlos und Open Source

Watergate Sonic leak valve over its local API: valve, flow, water meter, auto shut-off.
Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.
Paid licence. This integration uses the local API of the Sonic, a licence sold by Watergate ("Local API", bought from Watergate and activated on your Sonic). Without it the Sonic does not answer these requests and the integration shows "the local API does not answer". The integration itself is free; the licence is between you and Watergate.
Reads the Watergate Sonic leak protection valve over your local network, without the Watergate cloud: valve state, flow, pressure, water temperature, water meter, power supply and the auto shut-off settings; shuts the water off and, if you allow it, turns it on again.
Never tested with a real device: written from the official OpenAPI description of the Sonic local API ("Sonic local API" 2026.1.0, docs.watergate.ai) and tested against fake Sonics built from it. Not affiliated with Watergate.
Setting up
- Buy and activate the Local API licence for your Sonic (Watergate).
- Give the Sonic a fixed IP address in your router.
- In Gladys, open the integration, enter the address of each Sonic (at most
4, separated by commas;
:portonly if it is not 80), save. - Open the Discovery tab and add the Sonic.
The status at the top of the configuration screen shows each address: the Sonic read (end of its serial number, valve state), or why it is not (no answer, connection refused, local API not answering, another error).
What you get
| Feature | Meaning |
|---|---|
| Valve open | 1 open, 0 closed (opening, closing: left unknown) |
| Shut the water off | button, see below |
| Turn the water on | button, off by default, see below |
| Water flowing | 1 while water flows |
| Flow | m³/h (the Sonic gives ml/min) |
| Pressure | millibar |
| Water temperature | °C |
| Water meter | litres, lifetime total in the flow direction of the Sonic |
| Volume of the current use | litres since the water started flowing (0 when none) |
| On batteries | 1 when the Sonic runs on its batteries only |
| Auto shut-off on | 1 when the auto shut-off of the Sonic is on |
| Auto shut-off volume, duration | its thresholds (litres, minutes), read only |
| Water cut by the auto shut-off | 1 while the Sonic reports an auto shut-off and its valve is not open |
A value the Sonic reports in error, or does not give, stays unknown: it is
never published as 0. The water meter is never published lower than the
highest value already published (kept in /data); if it goes down (a reset
of the Sonic), it is held and the status says so.
Each Sonic is read every 30 s by default (10 to 600 s in the configuration), one request at a time. A Sonic answering with errors (5xx) is read again 60 s later, then 2 min, up to 1 h; the Test the connection button lifts that pause (the next read still waits for the read interval). One Sonic that does not answer never delays the others.
The integration never changes a setting of the Sonic: no network change, no webhook, no reboot, no buzzer, no change to the auto shut-off thresholds.
Shutting the water off
The Shut the water off button is never behind an option and is never a switch (a "turn everything off" of a voice assistant or a scene on switches cannot touch the valve). The only refusals are an unknown feature or a value other than 1. A shutoff:
- leaves at once, even while the Sonic is paused after errors, before the
configuration is read, or while
/datacannot be written; a read in flight to that Sonic is cut for it; a turn-on of the same Sonic still waiting is cancelled; a turn-on already on the wire is let finish first (its answer, 2.5 s at most), then the shutoff leaves; - is kept, in memory and in
/data, until a read of the same Sonic (same serial number) made after it left shows the valve closed: read back while Gladys waits for the answer, then 20 s after each send; - is sent again when the valve is not seen closed: 3 times 20 s apart, then every 10 min ("held" in the status);
- is sent again after a restart of the integration, from
/data, before the configuration is read; - is given up 24 h after its first send that may have reached the Sonic (counted in this run of the integration: a restart starts the count again), or when you delete the device in Gladys. A given-up shutoff is named in the status.
The answer to Gladys comes within 3.5 s: "done, seen by the Sonic", "sent, not seen closed yet: kept", "the Sonic did not take the shutoff now: kept", or "address not known yet: kept" (a device whose Sonic has not been read since the start and whose address is unknown: it leaves as soon as it is read).
The price of "in doubt, the shutoff stays": if the Sonic could not be read after a shutoff (network down) and you turn the water on with the Watergate app meanwhile, the integration closes the valve again once the Sonic answers, until it sees it closed. To drop a kept shutoff, delete the device in Gladys and add it again from the Discovery tab.
Turning the water on
Off by default: enable Allow turning the water on first. The Turn the water on button then opens the valve only when:
- the option is on, at the click and again right before the request;
/datahas been read (a shutoff kept there is then known): while it cannot be read, nothing opens;- no shutoff of this Sonic is kept (not seen closed yet);
- the Sonic has been read since the start and its reads are not paused after errors;
- a read made after the click answers in time, from the same Sonic (same serial number), with its valve closed;
- it leaves within 2 s of the click, and no shutoff was clicked since.
Otherwise the answer says why, followed by "Nothing sent". Already open (or opening): "already open", nothing sent. Once sent, it is confirmed only by a later read showing the valve open; the answer is "done", "sent, the valve is opening" or "sent, without confirmation yet", and the status still follows it 5 s and 20 s after.
Security
The local API of the Sonic has no password: any device on your network can
command the valve. Keep the Sonic on a trusted network. The integration keeps
nothing secret; /data/watergate-state.json holds only the shutoffs kept
(serial number, address, name, date) and the highest water meter published.
Not done in this version
- The webhook of the Sonic (instant events): the integration reads at its interval instead.
- Changing the auto shut-off settings (read only).
- Battery voltage and Wi-Fi signal.
To check on a real Sonic
- When the auto shut-off report clears (204) once the valve is open again.
- Whether the water meter of the device state ever goes down.
- The media types the firmware really answers with.
Konfigurationseinstellungen
Diese Einstellungen fragt Watergate Sonic (unofficial) in seinem Konfigurationsbildschirm in Gladys ab.
| Einstellung | Typ | Pflichtfeld | Beschreibung |
|---|---|---|---|
| Your Watergate Sonic | section | Nein | Paid licence: this module uses the local API of the Sonic, a licence sold by Watergate ("Local API", bought from Watergate and activated on your Sonic); without it the Sonic does not answer. Reads the valve, flow, pressure, water temperature, water meter and auto shut-off settings over your local network, without the Watergate cloud. Enter the address of each Sonic below, save, then add it from the Discovery tab. Shutting the water off always works (never a switch: a "turn everything off" cannot touch it); turning it on stays off until you allow it below. Anyone on your network can command the Sonic: the local API has no password. Never tested with a real device. Not affiliated with Watergate. |
| Sonic addresses | string | Ja | The IP address (or host name) of each Sonic on your network, separated by commas, at most 4; :port only if it is not 80. Give it a fixed address in your router. |
| Read interval (seconds) | number | Nein | How often each Sonic is read (10 to 600). A shutoff never waits for it. |
| Allow turning the water on | boolean | Nein | Off by default. On: the "Turn the water on" button opens the valve, only when a read made after the click shows the same Sonic with its valve closed, and no shutoff of this Sonic is still kept. Off: it refuses every command. Shutting the water off always works. |
| Language of the feature names | select | Nein | The language of the names given to the features. |
So installierst du Watergate Sonic (unofficial) in Gladys
- Öffne in Gladys Integrationen: Watergate Sonic (unofficial) erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
- Klicke auf Installieren. Gladys lädt das Docker-Image (
ghcr.io/lm1lc3n7/gladys-watergate:0.1.1) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration). - Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
- Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/LM1LC3N7/gladys-watergate.
Watergate Sonic (unofficial) benötigt Gladys >=5.1.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.
Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.
Über externe Integrationen
Watergate Sonic (unofficial) ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von LM1LC3N7 veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.
- Alle Integrationen durchsuchen, native und aus der Community
- Deine eigene externe Integration bauen und veröffentlichen
- Quellcode auf GitHub — Quelle dieser Dokumentation