Saltar al contenido principal

Integración domótica DROP (Chandler Systems), gratuita y de código abierto

Integración DROP (Chandler Systems) para Gladys Assistant

DROP water management over local MQTT: shutoff valve, leaks, softener, flow.

info

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

This integration shows the DROP water management devices (Chandler Systems, United States) in Gladys through your own MQTT broker, locally, without the DROP cloud: the hub publishes its data to your broker (Mosquitto...), Gladys reads it there.

Unofficial, not affiliated with Chandler Systems. Never tested with a real device: it follows the MQTT topics the maker published (dropmqttapi) and the Home Assistant integration. Your feedback is welcome.

What is shown​

DROP deviceFeatures
Hubwater on, shut the water off, turn the water on, leak, flow, peak flow today, water used today, average daily use, pressure (current, highest and lowest today), bypass, protect mode, notification pending, battery
Protection valvewater on, shut the water off, turn the water on, leak, flow, pressure, temperature, battery
Leak detectorleak, temperature, battery
Softenercapacity remaining, reserve in use, flow, pressure, bypass, battery
Filterflow, pressure, bypass, battery
Salt sensorsalt low
Alertsensor alert, powered, temperature, battery
Pump controllerpump running, leak, flow, pressure, temperature
Reverse osmosis filterleak, inlet and outlet TDS (ppm), cartridge 1 to 3 life

Units: gallons become litres, gallons per minute m³/h; the pressure stays in PSI and the temperature in °F (Gladys converts them for display). A value missing, empty or out of bounds stays unknown: never published as 0.

Setting up​

  1. An MQTT broker on your network (Mosquitto, or the one of your home automation box), preferably with a user name and a password.
  2. In the DROP Connect app, set the hub to publish to this broker (the same setting as for Home Assistant). The topics start with drop_connect/.
  3. In Gladys, enter the broker address (192.168.1.20, or mqtts://broker.lan:8883 in TLS), the user name and the password, save.
  4. Discovery tab: add the devices the hub announced.

A broker in TLS with a self-signed certificate: enter the SHA-256 fingerprint of its certificate. The connection is then accepted for this certificate only; another certificate stops everything before the password leaves and the status shows the fingerprint seen. Without a fingerprint, the certificate must be signed by a known authority; a refused certificate also shows its fingerprint in the status (read on a connection that sends nothing), to paste in the field if you trust it.

Commands​

They are never switches: a "turn everything off" or a voice assistant cannot touch the valve. Shutting the water off and turning it on are two buttons; the bypass and the protect mode are lists.

Shutting the water off: always allowed​

Shutting the water off (hub, protection valve) has no option: it is the safety of the device. It reads nothing before leaving and does not wait behind the other commands: it leaves at once and cancels those of the same hub still waiting for their turn (nothing clicked before a shutoff leaves after it). It leaves even when the valve seems closed already.

It is kept (in memory and in /data) until the device shows the water off in a live message received after it left, or a turn-on of this hub leaves from Gladys after it (its write taken by the broker). Before it leaves, nothing lets it go. The retained message the broker replays at a reconnection never lets it go: it may be older than your click (the valve opened since).

  • clicked without a broker connection: answered "shutoff kept", sent right after the next connection, without waiting for a message of the hub;
  • after a restart of the integration: sent again from /data at the connection;
  • sent again when the device still shows the water on at least 2 s after it left, and 20 s after each send without a confirmation: 3 times, then every 10 min ("held", said in the status), until confirmed;
  • a write of /data that fails never delays it;
  • when the valve was known closed (by a live message) as it left, a turn-on seen later (made in the DROP app, say) lets it go: it is never sent again against that turn-on;
  • the price of the doubt: when the live confirmation was missed (Gladys or the broker down at that moment), the shutoff stays kept, and a turn-on made in the DROP app right after can be cut once (at once, or within 10 min when it is "held"); the live "water off" the hub then publishes lets it go. The status lists the shutoffs kept: turning the water on from Gladys (its option) lets them go;
  • never confirmed: it is given up 24 h after it first left in this run of the integration (it always leaves at least once; the status names it; the 24 h start again at each restart of the integration), or as soon as you delete the device in Gladys (the status says so).

It is not sent only when the identity is wrong: a value other than the button press, or a device the hub now announces with another type (scan again). Without a possible broker connection (credentials refused, certificate refused), it stays kept and leaves as soon as the connection is back.

The other commands: off by default​

Each has its own box in the configuration, read at the click and again right before sending. A command leaves within 2 s of its click, once, or is not sent. Gladys gets its answer within 3.5 s: "done, confirmed by the device" (a message of the device received after sending shows the value asked), "sent, without confirmation" (the status then says whether the device showed it within 20 s), or a refusal ending with "Nothing sent". The last command is shown in the status of the configuration page.

Turning the water on is sent only when all of this is true, from what the hub published since the connection to the broker (DROP has no read request; at each connection or disconnection everything is unknown again until the next messages):

  • "Allow turning the water on" is checked, at the click and right before sending;
  • the valve state of the device is known; already on: nothing is sent;
  • its leak state is known and without a leak;
  • every device of the same hub able to report a leak (hub, valve, detectors, pump, reverse osmosis, alert), announced by the hub or created in Gladys, has a known state, without a leak nor an alert. A leak reported by any device of the hub, even of a type the integration does not know, refuses too. A detector removed or out of order blocks turning on: delete it in Gladys and remove it from the hub (as long as the hub announces it, it counts). After a reconnection, a detector that publishes on change only blocks turning on until its next message (to check on a real hub);
  • no message of the broker was dropped (over 200 a second) in the last 2 seconds; after dropped messages, every value is unknown again until the next message of its device;
  • no shutoff of this hub left less than 20 s ago, and none was clicked since this click.

A turn-on that leaves lets go the shutoffs kept on this hub.

Bypass (hub, softener, filter; on: the water goes around the treatment) and protect mode (hub: Home, Away, Schedule; Away is the strictest): refused when their option is unchecked; nothing is sent when already in the state asked. Switching to Away is not a shutoff: it stays behind the option of the protect mode.

Security​

  • Anyone who can publish on your broker can command the valve and forge messages of the hub: protect the broker with a password and access rules (ACL), keep it on a trusted network.
  • The password is kept by Gladys in its database, never shown again, sent only to your broker; it is in no log, nor in /data, nor in the status.
  • Credentials refused by the broker: the integration stops and does not try again by itself, even after a restart (it keeps in /data an 8-bit mark, useless to find the password back). Save other credentials or click "Test the connection". One password in 256 shares the mark: the button then lifts the stop.
  • Every message of the broker is bounded to 16 KB before it is read; beyond 200 messages a second, the next ones are dropped; 8 hubs and 64 devices at most.

Limits​

  • Never tested with a real device; the name of the MQTT setting in the DROP Connect app may differ.
  • The hub publishes at its own pace: a value may stay a long time without an update (nothing is made up between two messages).
  • A device type the hub announces and the integration does not know is ignored (counted in the status).

Parámetros de configuración​

Estos son los parámetros que DROP (Chandler Systems) te pide en su pantalla de configuración en Gladys.

ParámetroTipoObligatorioDescripción
Your DROP HubsectionNoShows your DROP devices (Chandler Systems) in Gladys through your own MQTT broker, without the DROP cloud: hub, protection valve, leak detectors, softener, filters, salt, pump controller, reverse osmosis; flow, pressure, water used. In the DROP Connect app, set the hub to publish to your broker (Mosquitto...), enter the broker below, save, then add the devices from the Discovery tab. Shutting the water off always works (never a switch: a "turn everything off" cannot touch it); turning it on, the bypass and the protect mode stay off until you allow each below. Anyone who can publish on your broker can command the valve: protect it with a password. Never tested with a real device. Not affiliated with Chandler Systems.
MQTT broker addressstringSíThe broker the DROP Hub publishes to: its IP address or host name (port 1883), or mqtts://address:8883 in TLS.
User namestringNoThe user of the broker, if it asks for one.
PasswordsecretNoThe password of the broker: kept by Gladys in its database, never shown again, sent only to your broker. A password needs a user name.
Certificate fingerprint (mqtts, optional)stringNoOnly for a broker in TLS with a self-signed certificate: its SHA-256 fingerprint (64 hexadecimal digits, colons allowed). The connection is then accepted for this certificate only; another one stops it. A certificate refused shows its fingerprint in the status (read without sending anything). Empty: the certificate must be signed by a known authority.
Allow turning the water onbooleanNoOff by default. On: the "Turn the water on" button opens the valve, only when the device has said in this connection that its valve is closed and that it has no leak, every leak-capable device of the same hub has a known state without a leak or alert, and no shutoff of the hub left in the last 20 s. A turn-on that leaves lets go the shutoffs kept on the hub. Off: it refuses every command. Shutting the water off always works.
Allow changing the bypassbooleanNoOff by default. On: the Bypass list of the hub, softener and filter can be changed (bypass on: the water goes around the treatment). Off: refused.
Allow changing the protect modebooleanNoOff by default. On: the protect mode of the hub (Home, Away, Schedule) can be changed from Gladys; Away is the strictest. Off: refused. Changing the mode is not a shutoff: it stays behind this option, Away included.
Language of the feature namesselectNoThe language of the names given to the devices and their features.

Cómo instalar DROP (Chandler Systems) en Gladys​

  1. En Gladys, abre Integraciones: DROP (Chandler Systems) 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-drop: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-drop.

DROP (Chandler Systems) requiere Gladys >=5.3.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​

DROP (Chandler Systems) 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 🙂