Hypfer / Valetudo

Cloud replacement for vacuum robots enabling local-only operation
https://valetudo.cloud
Apache License 2.0
6.38k stars 388 forks source link

Problems after upgrading to 0.3.0 #166

Closed dh-harald closed 5 years ago

dh-harald commented 5 years ago

Hi,

I'm using Valetudo for a while without issues, but unfortunately after upgrading to 0.3.0 I've got several issues. Currently my issues:

Hypfer commented 5 years ago

The robot is not connecting to the cloud interface of valetudo. Something about the traffic redirection in /etc/hosts and /etc/rc.local

dh-harald commented 5 years ago

On the web page, it looks good, the status is changing, for example cleaning, idle, returning to home, that part is working. Status/battery stuffs are fine in Xiaomi app as well. Just not appear in mqtt Originally, I've used the original /etc/hosts (not your upstream from the git repo), but after I start using yours, the only difference is, that the robot can't upload the map to the xiaomi cloud, so I can't check the map in the app either... But still no statuses/map in mqtt.

Hypfer commented 5 years ago

Currently, the status page uses the local interface so thats why that works.

dh-harald commented 5 years ago

/etc/rc.local & /etc/hosts are exactly the same like from your upstream repository... rc.local runs fine, because I could see the iptables rules

Hypfer commented 5 years ago

Try rebooting if you haven't done so already. If you reroute on a running system the new rules do not apply.

I think it's network related.

dh-harald commented 5 years ago

I've rebooted my device, and now it looks working... I don't know, what's the difference... Thanks for help

Hypfer commented 5 years ago

I assume it's because the connection has already been established or something like that.

xoxys commented 5 years ago

@Hypfer can we add a notice to the wiki that the map only works AFTER you added the device to a wifi? I needed many hours to figure out that (for an unknown reasons) the map will not work while I am connected through the default network.

Hypfer commented 5 years ago

@xoxys I didn't know that it does but that makes sense since we're now using the cloud interface and that obviously requires the robot to be provisioned (wifi configured).

Will you add it to the wiki?

xoxys commented 5 years ago

@hypfer sure :) thanks for clarification

Hypfer commented 5 years ago

@xoxys So.. the webinterface itself did work in AP mode for 0.3.1?

There apparently were some issues with that: https://github.com/Hypfer/Valetudo/issues/181#issuecomment-485423221

xoxys commented 5 years ago

@Hypfer Did not test it with 0.3.1 but with 0.3.0 it works. I am using firmware 3.3.9_001810 for gen2. For me, no problems other than the missing map in AP mode.