Valetudo - Xiaomi Vacuum Dustcloud alternative, Live Maps

If you just want to update and you can still log in through SSH follow:

Otherwise just create new SSH Keys and re-perform the firmware build / flash.
You just need to know your IP address of the Vacuum and your access token.
I had to perform this last night as I had lost my SSH key.

As per

Will do as a last resort.

Default User should be root correct? Is there any default password in installation?

root is correct. Your password is what ever you setup when creating your SSH Key.

Luckily to reupload new firmware you don’t need that information. You create a new Key while doing the firmware and then you upload it with the IP address and access token.

How did you get on @Klagio?

For those who don’t keep an eye on the Valetudo GitHub there have been a couple of releases over the past couple of days adding MQTT support.

2 Likes

I just rooted and flashed Valetudo, it’s great so far, but I cannot get the map sensor to work, it show up in Home assistant but gives me an error:

Error getting new camera image: Cannot connect to host 192.168.0.103unknown:80 ssl:None [Name does not resolve]

I just copied your sensor.yaml en configuration.yaml and changed the name in both files.
any ideas?

@n03xp3rt4tt4ll have you uploaded one of the newer packages with MQTT support as they deal with the Map in a different manner.

I have not upgraded to 0.3.0 yet my self as I have been too busy. But check out https://github.com/Hypfer/Valetudo/wiki/Home-Assistant-Integration it might help.

1 Like

So i updated to the newest version to use MQTT but how can I implement the map now?
Is it still the same way to create a sensor and a camera or is it easier now?

Hi 0rn0lf,
Did you figure it out?
I would like to know that too.
I have all the mqtt controls in HA, but no map.
I’ve tried the sensor and camera image but without success.

How do you get the controls to HA with MQTT?

Thanks

Valetudo has mqtt auto discovery. Just adapt valetudo.conf to Our mqtt broker and it’ll be discoverd by hass

I installed the Mosquitto broker AddOn with this config:

{
  "logins": [{"username": "local-user", "password": "mypw"}],
  "anonymous": false,
  "quiet_logs": true,
  "customize": {
    "active": false,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

Then I adapt the config.json file on the robot like this:

{
  "spots": [],
  "areas": [],
  "mqtt": {
    "enabled": false,
    "identifier": "rockrobo",
    "topicPrefix": "valetudo",
    "autoconfPrefix": "homeassistant",
    "broker_url": "mqtt://local-user:[email protected]",
    "mapSettings": {
      "drawPath": true,
      "drawCharger": true,
      "drawRobot": true,
      "border": 2,
      "scale": 4
    }
  },
  "dummycloud": {
    "spoofedIP": "203.0.113.1",
    "bindIP": "127.0.0.1"
  },
  "map_upload_host": "http://127.0.0.1"
}

But the vaccum entity doesn’t appear in HA. Is there something that I’ve missed?

Thank you

What does mosquitto_sub -t valetudo/# throw out ?

Where do I have to type it in? In ssh on the robot?
Sorry for my stupid question…

On your hass machine where u run mosquitto

I used the Hass.io AddOn SSH server and type in the command. I get this:

Error: Address not available

No sorry, when i try to open the page in a browser, it says:

ipaddress/api/remote/map not found

Of course i can see the the map on the main page. But I cannot call it via the api

The PNG-Map (Which was also used with MQTT) was depreciated with the 0.3.1 Update, as it forced the robot to crash repeatedly.

You will have to use the https://github.com/Hypfer/ICantBelieveItsNotValetudo to create the map on another client.

  • This is a simple companion service for valetudo which does all the heavy lifting. Since both CPU and Memory are limited on the robot, PNG generation for third-party components has been moved here.

There are plans to create a lovelace card, whichs renders the map using the same logic which was used before, but run on your home assistant instance.

But this will take some time. Maybe somebody here could help Hypfer and create that lovelace card?

1 Like

Well it depends which version @0rn0lf is running.im.rinning version 0.30 and still use mqtt and never had problems with memory leak or something

OK, now I see. I’m running the latest version so the map isnt available anymore.

But how do I get it to work again. On hassio I cant install ‘ICantBelieveItsNotValetudo’ so I guess I need the docker container. But I’m unsure how to configure it correct. Can someone help me?