Saltar al contenido principal

Integración domótica Droplet, gratuita y de código abierto

Integración Droplet para Gladys Assistant

Unofficial: Droplet (Hydrific) water flow sensor on your network: flow, water index, leaks.

info

La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.

Unofficial integration, not affiliated with Hydrific nor LIXIL. It reads a Droplet clamp-on water flow sensor on your home network, without the cloud, through the local WebSocket the Droplet opens (firmware 1.4.0 or later), as Hydrific's own library pydroplet does. Read-only: no setting nor command is ever sent to the Droplet. Never tested with a real Droplet: it was built from pydroplet and tested against a fake one; please report what you see.

Setup​

  1. In the Droplet app, find the pairing code for local access.
  2. Give the Droplet a fixed IP address in your router.
  3. In Gladys, fill Droplet address (e.g. 192.168.1.30, a port only if it is not 443) and Pairing code, then save.
  4. The status shows Connected to Droplet <id> once the Droplet has sent its device id. Create the device in the Discover tab.

The pairing code is kept by Gladys in its database, never shown again, and sent only to the Droplet, over TLS, after its certificate was checked.

What you get​

FeatureUnitNotes
Flow ratem³/hthe Droplet gives L/min (1 L/min = 0.06 m³/h)
Water indexLbuilt from the volume reports, see below
Server connectivitytextas the Droplet says it (e.g. "Connected")
Signal qualitytextultrasonic signal, as the Droplet says it
Leak0/1flow above the threshold set in the Droplet app
Unusual flow0/1a leaky flapper, a slow leak

Leak and unusual flow are only known while the Droplet reaches the Hydrific servers. When the Droplet is unreachable, the flow rate and the alerts stay at their last value in Gladys (Gladys has no "unknown" state for them): the badge of the device turns "unreachable" after a minute and the integration status says it; a scene that relies on the leak alert should check that badge too. The live values go to Gladys at most every 10 seconds; a value older than 2 minutes is not sent again as new (after a restart of Gladys, a device created).

The water index​

The Droplet has no meter reading: it reports the volume since its previous report (in mL, sometimes negative). The integration adds the reports up into an index in litres, kept in /data across restarts, published once a minute after /data holds it. Its rules:

  • it is never 0 and never goes down: a negative report lowers the running total, and the index waits until the total climbs back above it (the status says by how much when it is 1 L or more);
  • a report larger than what 200 L/min (about 53 US gal/min) bring in the time since the previous report (counted up to 10 minutes) plus 10 L is held: shown in the status (orange badge), kept in /data, never counted by time nor by repetition. The reports after it count as usual. If it is right, click Accept the held volume twice (3 seconds to 5 minutes apart): the second click adds exactly what the first one listed. A negative report that large is ignored (counted in the status). The 10 L are allowed per report: a Droplet sending many reports of 10 L each in a burst would have them counted (a margin kept on purpose, so that the first report of a connection is not held for nothing);
  • the volumes reported before the Droplet gives its device id count for that Droplet once it does; the volumes reported while the integration is not connected to the Droplet are not known (the index stays where it was);
  • if Gladys already holds a larger index than /data (a /data lost), the index goes on from Gladys's value;
  • another Droplet at the address (a replacement) is another device, with its own index. Deleting and creating the device again keeps the index going.

Connection​

  • One connection at a time. A connection that ends is opened again 30 seconds after the previous attempt; while it fails, after 30 s, 1, 2, 4... up to 30 minutes. Never two attempts less than 30 seconds apart, whatever asks (the test button, a save, a restart: the time of the attempt is kept in /data).
  • A ping every 30 seconds: no answer within 15 seconds, the connection is closed and opened again later.
  • Pairing code refused (an HTTP 401/403 at the handshake, or, with firmware 1.4.1 and older, the connection closed by the Droplet before any message, twice in a row): nothing is tried by itself until you save the code again or the Test the connection button receives data from the Droplet (one attempt per click, at the pace above; a connection that opens and closes at once lifts nothing). Two closes at once may also mean that the Droplet accepts no more local clients (Home Assistant connected too?): the status says both.
  • HTTP 429 or 5xx at the handshake: a pause of 1 minute, doubled up to 6 hours, kept across restarts.
  • Certificate: pinned at the first connection (written to /data before the code is sent). Another certificate later: nothing is sent and the status shows its fingerprint; if you replaced or reset the Droplet, copy it into Certificate fingerprint and save.
  • /data that cannot be read: no certificate is learned (nothing sent unless a fingerprint is typed), the index is not published (its volumes are kept in memory and added once /data reads again), and the file is never overwritten.

Buttons​

  • Test the connection: while connected, the flow and the index; otherwise one attempt when it is due.
  • Accept the held volume: see "The water index".

Not done​

No discovery on the network (type the address), no settings of the Droplet, no history from the Hydrific cloud.

Parámetros de configuración​

Estos son los parámetros que Droplet te pide en su pantalla de configuración en Gladys.

ParámetroTipoObligatorioDescripción
DropletsectionNoUnofficial connector, not affiliated with Hydrific nor LIXIL. It reads a Droplet clamp-on water flow sensor through its local WebSocket (TLS on your network, firmware 1.4.0 or later), as Hydrific's own pydroplet library does: the flow rate, a water index built from the volumes the Droplet reports, its connectivity to the Hydrific servers, the quality of its ultrasonic signal and its leak alerts (these two only while the Droplet reaches the Hydrific servers). Read-only: no setting nor command is ever sent to the Droplet. Never tested with a real Droplet.
Droplet addressstringSíThe IP address of the Droplet on your home network (shown by your router), with a port only if it is not 443. Preferably give it a fixed address.
Pairing codesecretSíThe pairing code the Droplet app shows for local access. Kept by Gladys in its database, never shown again, sent only to the Droplet above, over TLS to its pinned certificate; never logged.
Certificate fingerprint (optional)stringNoLeave empty: the certificate of the Droplet is pinned at the first connection. Fill it only when the status says the certificate changed (a Droplet replaced or reset) and shows the new fingerprint: copy it here and save.

Cómo instalar Droplet en Gladys​

  1. En Gladys, abre Integraciones: Droplet aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
  2. Haz clic en Instalar. Gladys descarga la imagen Docker (ghcr.io/lm1lc3n7/gladys-droplet:0.1.1), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración).
  3. Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
  4. También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-droplet.

Droplet requiere Gladys >=5.1.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.

¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.

Sobre las integraciones externas​

Droplet es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.

Suscríbete a la newsletter de Gladys Assistant

Unos pocos correos al mes sobre nuevas versiones y novedades del proyecto. Enviados por Pierre-Gilles Leymarie, fundador del proyecto. Puedes darte de baja cuando quieras 🙂