Skip to content

Valetudo MQTT disconnecting every 2 minutes #2058

@szymucha94

Description

@szymucha94

What is happening?

In short: my backup solution pauses HAOS VM at 1:30 every Monday causing mqtt disconnect from the vacuum robot after which connections last only for 2 minutes until robot is rebooted.
I stayed on one of the 2022 valetudo versions and decided to update to 2024.2 last week. This issue is only visible since yesterday (when the mosquitto broker was paused) - on old versions mqtt was always perfectly stable.
Using HA 2023.11.2. Robot is Mijia 1C. Attaching screenshots - please let me know what kinds of other logs you need.
Robot is not seen disconnecting from wifi, so this seems like MQTT issue. This is also seen on two identical mijia 1c robots (both running same valetudo versions, both under servers that backup VMs in the same way)

Broken or not as expected?

Broken

What should be happening?

MQTT should reconnect and stay connected with no need to reboot the robot.

How to reproduce

  1. Forcibly pause Mosquitto and let the robot disconnect for a moment
  2. Resume mosquitto, wait for the valetudo to connect
  3. Watch how it reconnects every 2 minutes

Is this Valetudo-related?

Certainly Valetudo-related

Please enter the Valetudo version you're using

2024.2

Please enter the vendor and model of robot you're using

Mijia 1C

Please enter the robot's firmware version you're using

1122

Additional context

Issue is seen on two identical robots. This issue did not happen on old (2022) valetudo versions.

Context reflection

No, it's only the Valetudo version that changed.

Screenshots

mosquitto_logs
mqtt availability
mqtt
timeline_ha
val_logs
wifi

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions