question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I followed the guide to flash my gen1 vacuum cleaner. I started by doing a factory reset and installing firmware v11_003468.fullos.pkg. I build the firmware by:

rockrobo/dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh \
     --firmware=rockrobo/firmware/v11_003468.fullos.pkg \
     --soundfile=rockrobo/firmware/english.pkg \
     --public-key=/root/.ssh/id_ed25519.pub \
     --valetudo-path=rockrobo/valetudo \
     --disable-firmware-updates \
     --replace-adbd 

and flashed it by: mirobo --ip 192.168.8.1 --token secret_token update-firmware output/v11_003468.fullos.pkg This works well and I can access the vacuum via the browser over 192.168.8.1 as expected, I can see the map and I set the wifi to connect it to my own network. The vacuum has IP address 192.168.0.31

Next I edit the Valutedo configuration file to setup mqtt for home assistant according to these instructions: https://github.com/Hypfer/Valetudo/wiki/Home-Assistant-Integration I edited /mnt/data/valetudo/config.json to:

{
  "spots": [],
  "areas": [],
  "mqtt": {
    "enabled": false,
    "identifier": "rockrobo",
    "topicPrefix": "valetudo",
    "autoconfPrefix": "homeassistant",
    "broker_url": "mqtt://my_username:my_password@my_broker_IP",
    "provideMapData": true,
    "caPath": ""
  },
  "dummycloud": {
    "spoofedIP": "203.0.113.1",
    "bindIP": "127.0.0.1"
  },
  "httpAuth": {
    "enabled": false,
    "username": "valetudo",
    "password": "valetudo"
  },
  "allowSSHKeyUpload": true,
  "map_upload_host": "http://127.0.0.1"
}


I use mqtt explorer to check the messages but nothing seems to come by. I want to integrate the map in hassio by using the addon ICantBelieveItsNotValetudo. I also cannot access the map via http://192.168.0.31/api/remote/map, I get Cannot GET /api/remote/map.

Furthermore I have the vacuum control integrated in home assistant via

vacuum:
  - platform: xiaomi_miio
    host: !secret xiaomi_ip
    token: !secret xiaomi_token

This integration works but I cannot seem to get the map working nor the MQTT messages. iptables -L shows:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
DROP       udp  --  anywhere             anywhere             udp dpt:6665
DROP       tcp  --  anywhere             anywhere             tcp dpt:6665

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             ot.io.mi.com         reject-with icmp-port-unreachable

Am I missing something here? Valetudo version: 0.4.0 Firmware version: 3.3.9 Firmware build: 003468

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jlo88commented, Sep 15, 2019

@bartekd123 @Hypfer Okay, I figured out the problem, my password ends on a question-mark. I’ve reproduced the problem with second mqtt broker and when I remove the question-mark at the end of password it works. Any ideas on how to get around this or should I remove the question-mark and reconfigure my other mqtt devices?

0reactions
jlo88commented, Sep 15, 2019

I hosted another mqtt broker via mosquito on a laptop and then the vacuum is able to connect to it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zwavejs2MQTT - devices with no neighbours, and gray on maps
I have just migrated all my Zwave off Vera to an Aeotec ZStick, HA, and Zwavejs2mqtt setup using websockets, not mqtt.
Read more >
MQTT channel does not publish values with MAP transform
Hello. I have Generic MQTT thing with different channels. One of them is “condition id”: id: 4b channelTypeUID: mqtt:number label: ...
Read more >
How to connect (almost) any MQTT Device to Cumulocity IoT
Dynamic MQTT Mapping - How to connect (almost) any MQTT Device to Cumulocity IoT. Watch later. Share. Copy link.
Read more >
MQTT and Google Maps
I would like to use this data to build a Google map that is updated ... Is they're any other way of achieving...
Read more >
MQTT Connector Configuration | ThingsBoard IoT Gateway
MQTT protocol support for ThingsBoard IoT Gateway. ... Changing the device profile using a Gateway is not provided. Mapping subsection for Example 1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found