Xiaomi Roborock S5 via MQTT

Hello everyone

I decided to take care of my vacuum cleaner and I flashed my vacuum cleaner with Valetudo.

Everything works fine, I can completely control the vacuum cleaner without cloud, the project allows in the settings to communicate via MQTT but there, I am stuck on the configuration…

The documentation: https://valetudo.cloud/pages/integrations/mqtt.html
The UI part:

I try to make an analogy with Home Assistant but since I don’t really understand the subtleties of this protocol, I must be missing something…
If an expert passes by to help me communicate via MQTT…

I activated the MQTT broker via Docker but already, there is a problem, Gladys tells me that it is not launched, impossible to connect.

For the MQTT broker in Docker, I am connected alternately.

2020-11-13T14:32:45+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://localhost
2020-11-13T14:32:45+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
2020-11-13T14:32:45+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
2020-11-13T14:32:45+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
2020-11-13T14:32:46+0100 <warn> connect.js:60 (MqttClient.<anonymous>) Disconnected from MQTT server
2020-11-13T14:32:51+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://localhost
2020-11-13T14:32:51+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
2020-11-13T14:32:51+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
2020-11-13T14:32:51+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
2020-11-13T14:32:52+0100 <warn> connect.js:60 (MqttClient.<anonymous>) Disconnected from MQTT server
2020-11-13T14:32:57+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://localhost
2020-11-13T14:32:57+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
2020-11-13T14:32:57+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
2020-11-13T14:32:57+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
2020-11-13T14:32:58+0100 <warn> connect.js:60 (MqttClient.<anonymous>) Disconnected from MQTT server
2020-11-13T14:33:03+0100 <info> connect.js:38 (MqttClient.<anonymous>) Connected to MQTT server mqtt://localhost
2020-11-13T14:33:03+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic gladys/master/#
2020-11-13T14:33:03+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic stat/+/+
2020-11-13T14:33:03+0100 <info> subscribe.js:12 (MqttHandler.subscribe) Subscribing to MQTT topic tele/+/+
2020-11-13T14:33:04+0100 <warn> connect.js:60 (MqttClient.<anonymous>) Disconnected from MQTT server

Normal behavior?

Oh, so much decoration/recycling in such a short time, no that doesn’t seem normal. Do you have a standard installation of Gladys?

This behavior has disappeared, I don’t know why… :stuck_out_tongue:
When installing the broker, Gladys indicated an installation error to check in the logs. I had looked and found no issues, I went back to Gladys and it seemed fine except for the disconnections/reconnections.

And otherwise, any idea how to configure all this under MQTT?