congatudo / Congatudo

Cloud replacement for Conga vacuum robots enabling local-only operation
https://congatudo.cloud
Apache License 2.0
72 stars 22 forks source link

Congatudo does not find segments if there are maps pending to be saved #79

Open ciltocruz opened 1 year ago

ciltocruz commented 1 year ago

Hello.

Sometimes, when the conga automatically goes out to do a cleanup and, for whatever reason, it detects that the map could have changed (when it's not the case, but there were things in the way anyway and it went crazy)

So in the application what I show you in image 1 appears. The issue is that as long as I do not assign YES or NO to the newly detected map, the remaining automations no longer work. This is the error that the log spits out:

[ERROR] MQTT: Error while handling MapSegmentationCapability/clean/set {
  payload: '{   "segment_ids": [ "12" ],   "iterations": 1 }',
  error: Error: Segment ID does not exist, or map was not loaded: 12
      at PropertyMqttHandle.setter (/snapshot/app/backend/lib/mqtt/capabilities/MapSegmentationCapabilityMqttHandle.js:48:35)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}

I'd say it's more than the "map hasn't loaded". Does anyone know if there is a way to prevent this from happening? Thank you!

To Reproduce

Cause your conga to detect a map change. Next, clean up a segment. I do it with home assistant + MQTT sending the segment id to be cleaned.

Screenshots

image

Vacuum Model

Conga 4090

Congatudo Version

2023.05

Expected behavior

That, despite detecting a map change, it does not remain as if the map had not loaded and respects "the previous one".

ciltocruz commented 1 year ago

More news. Today I noticed that the Conga did not go out to clean.

Again it was in this state.

I attach a picture of the whole screen so that you can see how "the map" loses all sense, it is half-finished, without segments, colors or anything.

image

How do I have to solve it?

  1. I don't want to save the supposed new map. 2a) Reloading the page sometimes is sufficient. 2b) if the reloading does not work, a reset of the docker, does
JimmyJimbolo commented 1 year ago

Hello. It happens the same to me. I have done a full cleanup to generate a new map, but it has no segments.

Now I can't even register the Conga with the Cecotec application.

How can I leave the Conga in the initial state to connect with the Cecotec application and create a new map with segments?

JimmyJimbolo commented 1 year ago

I would like at least to be able to use the vacuum cleaner again with its original application.

Juanpalacios08 commented 1 year ago

I would like at least to be able to use the vacuum cleaner again with its original application.

You have to undo all the changes you made to your conga in order to use congatudo.

JimmyJimbolo commented 1 year ago

I would like at least to be able to use the vacuum cleaner again with its original application.

You have to undo all the changes you made to your conga in order to use congatudo.

Hello.

If I'm not mistaken, the only thing I did was access the Conga via USB/ADB and add the access to the Home Assistant in the hosts file:

$ echo " cecotec.das.3irobotix.net cecotec.download.3irobotix.net cecotec.log.3irobotix.net cecotec.ota.3irobotix.net eu.das.3irobotics.net eu.log.3irobotics. net eu.ota.3irobotics.net cecotec-das.3irobotix.net cecotec-log.3irobotix.net cecotec-upgrade.3irobotix.net cecotec-download.3irobotix.net" >> /etc/hosts

If I manage to delete that line (let's see how), will I get control back?


Hola.

Si no estoy equivocado lo unico que hice fue acceder al Conga via USB/ADB y añadir el acceso al Home Assistant en el fichero hosts:

$ echo " cecotec.das.3irobotix.net cecotec.download.3irobotix.net cecotec.log.3irobotix.net cecotec.ota.3irobotix.net eu.das.3irobotics.net eu.log.3irobotics.net eu.ota.3irobotics.net cecotec-das.3irobotix.net cecotec-log.3irobotix.net cecotec-upgrade.3irobotix.net cecotec-download.3irobotix.net" >> /etc/hosts

Si consigo borrar esa linea (a ver si descubro como), ¿recuperare el control?

Juanpalacios08 commented 1 year ago

You need to remove this line from your /etc/hosts:

" cecotec.das.3irobotix.net cecotec.download.3irobotix.net cecotec.log.3irobotix.net cecotec.ota.3irobotix.net eu.das.3irobotics.net eu.log.3irobotics.net eu.ota.3irobotics.net cecotec-das.3irobotix.net cecotec-log.3irobotix.net cecotec-upgrade.3irobotix.net cecotec-download.3irobotix.net"
JimmyJimbolo commented 1 year ago

Muchas gracias Juan.

Mis conocimientos de linux son limitados. Si la explicacion de como editar el hosts desde la consola es sencilla, ¿me la podrias dar?

Si no lo busco, que tampoco me importa.

Juanpalacios08 commented 1 year ago

Creo que en el grupo de telegram hay algún tutorial al respecto, si no en la wiki me parece que hay algo también. Si no lo ves allí, vente aquí y vemos si te puedo poner algunos pasos.

JimmyJimbolo commented 1 year ago

Ok. Lo busco. Prefiero currar un poco antes de andar preguntando.

Gracias.

JimmyJimbolo commented 12 months ago

No hay nada como leer.

He editado el host con el comando 'vim' de linux y he quitado la ip de mi HA de la ultima linea del fichero. Ya puedo volver a emparejarlo con la app de Cecotec.

Imagino que antes o despues volveré a Congatudo, pero cuando me documente mejor.

Gracias por la ayuda Juan.