No mqtt and map
See original GitHub issueI 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:
- Created 4 years ago
- Comments:12 (3 by maintainers)
@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?
I hosted another mqtt broker via mosquito on a laptop and then the vacuum is able to connect to it…