Vacuum randomly aborts cleaning when using MQTT #2091
-
Are you already using Valetudo?Yes, for a long time Your questionsI am seeing a weird behavior with valetudo: Since I recently started using MQTT with Mosquitto the robot simply aborts the cleaning process at random times. I am pretty sure that it has to do with MQTT as the robot cleans the whole flat when I disconnect the cable of the MQTT server. I have already tried debugging MQTT, but I am unsure whether I did this correctly. I saw the part of the documentation about setting the environment variable to mqttjs*. I did this by adding this line to the beginning of Unfortunately this does not seem to work as I can not see any debug messages about MQTT in the valetudo debug tab (even though I set the log level to debug). I would be thankful for tips on how to further debug this problem. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
While I did not figure out how to debug MQTT I found the following workaround and was able to solve the problem: I used The reason why the robot aborted cleaning was simply an error in my program logic as the buttons I use to activate the robot also sent messages randomly without actually being pressed (e.g. because the battery state changed) |
Beta Was this translation helpful? Give feedback.
While I did not figure out how to debug MQTT I found the following workaround and was able to solve the problem:
I used
docker exec -it mosquitto mosquitto_sub -h localhost -t '#' -v
on the MQTT host to show all MQTT messages. At first I got a lot of gibberish and then found out that this probably was binary map data. I deactivated "Provide map data" in the valetudo MQTT options and then I was able to work with the output of mosquitto_sub.The reason why the robot aborted cleaning was simply an error in my program logic as the buttons I use to activate the robot also sent messages randomly without actually being pressed (e.g. because the battery state changed)