Saltar al contenido principal

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

Integración Ecovacs para Gladys Assistant

Control Ecovacs Deebot robot vacuums and GOAT mowers: start, dock, battery, errors.

info

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

Control your Ecovacs Deebot robot vacuums and Ecovacs GOAT lawn mowers from Gladys: start and stop the job, send the robot back to its dock, set the suction power, follow the battery, the errors and the wear of the parts.

The integration goes through the Ecovacs cloud, with the account of the Ecovacs Home app: Ecovacs offers no local connection. Gladys needs Internet access, and the robot must show up in the app.

Before you start​

  1. Install the Ecovacs Home app and add your robots to it.
  2. Note the email and password of the account, and the country chosen when the account was created.
  3. Account created with Google, Apple or Facebook sign-in: it has no password. Set one in the app (Profile, account settings).

Configuration​

  1. Open the Configuration tab of the integration.
  2. Fill in the email, the password and the country of the account.
  3. Pick the refresh interval (1 minute by default).
  4. Save, then click Test the connection: the message lists the robots found.
  5. Open the Discover tab and add your robots.

Device verification​

Ecovacs may ask to confirm Gladys as a new device (the message says so, the cloud answers code 1013 "Please update to the latest version"):

  1. Click Send the verification code: Ecovacs mails a code to the account (look in the spam folder too).
  2. Enter it in Confirm the device and click: the robots are listed.

Gladys keeps the same device id for the account, even after a restart.

The password is never sent in clear text: only its MD5 fingerprint goes to Ecovacs, as the app does.

What you get​

FeatureVacuumMowerDetail
State✔✔Stopped, running, paused, error, returning to dock, charging, docked
Cleaning / Mowing✔✔1 starts (or resumes after a pause), 0 stops
Return to dock / station✔✔1 sends the robot back
Suction power✔Quiet, Standard, Max, Max+ (depending on the model)
Battery, Charging✔✔In %
Last error✔✔English text with its code, see the table below
Main brush, Side brush, Filter✔Remaining life in %, read every 30 minutes
Blades, Camera lens brush✔Remaining life in %, read every 30 minutes

A cloud badge shows on the robot card when it answers, unreachable when it no longer does (switched off, out of Wi-Fi).

Actions​

  • Test the connection: signs in and lists the robots found.
  • Send the verification code / Confirm the device: device verification, when Ecovacs asks for it (see above).
  • Locate a robot: the robot plays its "I'm here" sound.

Scenes (Gladys 5.1 or later)​

The integration adds its own cards to the scene editor, under Integrations. Every trigger can be narrowed to one robot; left empty, it matches them all. Common variable: {{triggerEvent.data.name}} (robot name).

Triggers:

  • Cleaning or mowing started: the robot starts working (not when it resumes after a pause).
  • Cleaning or mowing finished: the robot stopped working (done, stopped or on its way back).
  • Robot back on its dock: the robot is on its dock or station, charging.
  • Robot error: the robot reported a new error. Variables {{triggerEvent.data.code}} and {{triggerEvent.data.message}}. Perfect for a "robot stuck" notification.
  • Consumable worn out: a brush, filter or blade went down to 10 % of its life or less. Can be narrowed by consumable; variables {{triggerEvent.data.consumable_name}} and {{triggerEvent.data.percent}}.

Actions (output sent or located: true when the robot took the order, to gate the rest of the scene):

  • Start a robot (resumes when paused), Pause a robot, Stop a robot, Send a robot back to its dock, Locate a robot.

Dashboard widget​

Add the Ecovacs robot widget to a dashboard and pick the robot in its settings. It shows:

  • the battery, live;
  • the state, the last error, the suction power, the wear of the consumables (orange under 10 %) and the connection;
  • four buttons: Start (or Resume, or Pause while working), Stop, Dock and Locate.

The widget uses the last reading of the robot: displaying it costs no request to the Ecovacs cloud.

Common error codes​

CodeMeaning
101Battery low
102Robot stuck in a loop
103Wheel problem
104Cliff sensor problem
105Robot stuck
106Side brush worn out
107Dust bin full
108Side brush blocked
109Main brush blocked
110Dust bin missing
111Bumper problem
112Laser sensor problem
113Main brush worn out
115Battery problem
118Filter blocked
119Fan problem
120Water tank problem
204Wheel stuck
312Replace the dust bag
1007Mop plate loose

Supported robots​

  • Recent Deebots (JSON protocol): OZMO 920/950, T8, T9, T10, T20, T30, X1, X2, N8, N10… The new-generation (_V2) and older commands are detected automatically.
  • GOAT mowers: support to be confirmed, feedback welcome.
  • Not supported: the very old Deebots (first 600/900 series, XMPP protocol). "Test the connection" names them.

Troubleshooting​

  • "Ecovacs refused the email or password": check them in the app, and above all the country of the account. After such a refusal the integration stops retrying on its own (so as not to lock the account): fix the configuration or click Test the connection.
  • "Ecovacs asks to confirm Gladys as a new device": follow Device verification. The integration does not retry on its own until then.
  • "Ecovacs refused the verification code": the code is wrong or too old; ask for a new one.
  • "The Ecovacs cloud cannot be reached": check the Internet access of Gladys. The integration retries every 5 minutes.
  • The robot is unreachable: it is switched off or out of Wi-Fi; check it answers in the Ecovacs Home app.
  • The integration logs (Gladys UI or docker logs) never contain the password or the tokens.

Parámetros de configuración​

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

ParámetroTipoObligatorioDescripción
Getting startedsectionNoYour robots (Deebot vacuums, GOAT mowers) are reached through the Ecovacs cloud, with the account of the Ecovacs Home app: add the robots in the app first, then enter the same email, password and country here. Accounts created with Google, Apple or Facebook sign-in need a password: set one in the app (Profile, account settings). On the first connection, Ecovacs may ask to confirm Gladys as a new device: "Send the verification code" mails you a code, enter it in "Confirm the device".
EmailstringSíThe email of your Ecovacs Home account.
PasswordsecretSíThe password of your Ecovacs Home account. Only its MD5 fingerprint is sent to Ecovacs, as the app does.
Country of the accountselectSíThe country chosen when the account was created: it decides which Ecovacs servers hold it.
Refresh intervalselectNoHow often each robot is asked for its state through the cloud.

Cómo instalar Ecovacs en Gladys​

  1. En Gladys, abre Integraciones: Ecovacs 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/prohand/gladys-ecovacs:1.3.0), 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/prohand/gladys-ecovacs.

Ecovacs 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​

Ecovacs 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 prohand, 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 🙂