-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaomi Vacuum Robot Unavailable #11048
Comments
Me too, I switched from Hass.io to Hassbian, both with version 0.59 and after the switch the air purifier isn’t available any longer, the log shows:
The configuration.yaml was not changed, it is:
|
I'm trying to replicate the same issue as you guys have, but I don't get any issues with the vacuum itself, only the already documented error in log, which does not impact functionality of vacuum.
I'm on VirtEnv, 0.59.2, Python 3.5.3, same upgrade path as @meetyourlaser Ultimately I'd reset and reconnect the device and re-grab the token from the app to make sure its not token issue. |
I checked and did not have asyncio installed at all, so I installed it. But still no luck, then I upgraded to 0.59.2 again. I also re-extracted the token and it did not change. So I have the exact same versions installed as you. But funny now I remember that I got the same errors as you @ferdydek but nevertheless everything worked. But now the |
No asyncio here neither—Do I need it? I’ve also re-extracted the token, and there was no change. python-miio==0.3.2 |
Now I reset the air purifier and extracted the new token. Didn't do the trick for me, but now I get more errors again, the previous one and the one that did not influence functionality.
|
With the old SD Card it works, there I'm running Hass.io version 0.59.1 |
I'm having the same issue as LordTofu, with the same messages in the log however I am using the Xiaomi Philips bulb. Edit: Was working without issue on 58.0, stopped working when upgrading to 59.2 |
I don't see anything in the changes made in #10839 latest release that could break the config you guys have. We have basically the same setup, so lets compare Xiaomi versions. For me in working setup: MiHome 5.0.10, Mi Robot Vacuum firmware: 3.3.9_003077. Can you please compare yours. @rytilahti do you think its the same as rytilahti/python-miio#92 ? |
I get the same error on my hassbian installation after update to 0.59.2
|
No the token did not change and the IP is static and still the same. Nothing on the router was changed. But now with Hass.io it works. Maybe the different python versions are the problem, Hass.io runs with 3.6 and Hassbian with 3.5? |
@andersmbgt @Niklaskemi same person ? :D |
@LordTofu I have:
|
Yes for the Hassbian installation it's 3.5.3. But I don't know how to access python within the docker container... |
I have the same problem after update 0.59.2. My old version was 0.58.1 and was works perfect. My ip is fixed. |
@LordTofu @meetyourlaser @drivers1 |
@ferdydek I’m using Hassbian. |
Same issue with my Airpurifier Pro. I installed the python-miio in rpi3(not in Venv) and tested the below.
|
But it's the same python-miio version as in Hass.io and there it works... :/ |
I’m using Hassbian too. |
@af950833 please format the code! :) Also, can you again try mirobo command with I'm still trying to figure out what is in 0.59.2 that is not in 0.58.x ... because for me it still works and for you guys it doesn't. Guess we need to wait for @rytilahti . |
same problem with hassbian 0.59 and python-miio 0.3.2 |
Same issue here. Currently home so can do some tests...
|
@ferdydek |
Now for sure, the problem is related to the version of python, I went to check the relevant code to se |
@roiff so what version do we need? |
@LordTofu |
Everyone uses raspberry pie, and the system is a X64 stretch system? |
@roiff |
your python version? |
@ferdydek Because I am not a native speaker, I can't understand what you mean. (Format code? hastebin?)
I also tried to downgrade to 0.58.0 (I am using Hassbain). |
@rytilahti Well for a bugfix it can be downgraded (like was done with pychromecast), but since its basically fixed we just need to wait for the new release, right? |
I installed construct v2.8.17 and python-miio v0.3.2, then replaced the 2 lines has fixed the issue for me with the Philips bulbs and Philips EyeCare. |
WARNING (MainThread) [homeassistant.components.light] Platform xiaomi_miio not ready yet. Retrying in 30 seconds. Any Help? Thanks construct.core.ChecksumError: wrong checksum, read b'ffffffffffffffffffffffffffffffff', computed b'8a2127c94e29f88e734263f8cacc2cd4' |
pip3 install construct==2.8.17 Replace:
in /srv/homeassistant/lib/python3.5/site-packages/miio/protocol.py with:
|
I am having the same issue in Home Assistant 60.1, still shown as Unavailable and I can see timeouts when trying to connect to it all over the logs. When will the fix that is shown in this thread be added to HA? I cannot make this fix easily myself as I have mine running in a Docker container. |
@roiff you da man!!! This is on mirobot firmware v.3.3.8_003094 |
According to #11232 the fix (for broken connectivity with construct 2.8.17) will be in 0.61. |
I've just updated to 0.61.0.dev0 to try this fix but it hasn't worked - I haven't tried the manual fixes suggested yet. Has anyone had luck with only the python-miio version update? Or will I likely have to make the protocol.py change? |
I'm running construct 2.8.17 and python-miio 0.3.3 for some time without problems. |
Just following up on this - my issue ended up being a changed API key. I extracted it the same way from iOS. No idea what has caused this, hopefully it's not a regular occurance with the app... No other changes for it to be working well with the 0.61.0 release. |
I updated to 0.61.1, but the issue persists for me. I still have the same messages in my log. As reported earlier, the vacuum cleaner still respones to actual commands. Is there anybody else having these messages still? I might try to check my API key again as @mynameisdaniel32 reported. |
@TribuneX This issue is for situation where the vacuum does NOT work from HA anymore and seeds the construct related errors. |
pip3 install construct==2.8.17 Replace:
in /srv/homeassistant/lib/python3.5/site-packages/miio/protocol.py with:
There should be a commas at the end of this line. (Tested: fix |
Works for me again as Docker image with v0.63 on my Synology NAS |
@meetyourlaser can you please test on latest build and close the issue. Thanks! |
Works in Home Assistant 0.63.3! |
Sadly, this issue still occurs on 0.65.4 :( |
No luck with 0.65.6 too... |
@DeanNotDin @linuxlurak |
Thanks for asking and being interested in this problem! my logs tell me:
My robovac is not available: mirobo finds my robovac. |
Can you enable debug logging (by adding in
and restarting HA ? What installation type is this? VirtEnv? Hassio? Can you log in to the OS and run |
installed hass with pip3 on my ubuntu machine (details below). log is already set to debug. System: pip3 freeze:
|
"mirobo --ip 192.168.10.7 --token [cut out ] -dd info" gives me:
tried to downgrade to construct==2.8.16, still not available. "devtype" non existent in ../miio/protocol.py... |
I have the same I have lower version than you on |
Yes, there is only one environment (same for root as for user "homeassistant", tested with logged in user an pip3 freeze which gives the same packages). I upgraded every packages installed to see if it resolves the problem, that's probably why I have a lot of other versions. I removed all packages installed by pip3: Some packages were missing that I had to reinstall. Home Assistant won't install those packages automatically it seems. Installed packages were:
I did the same (uninstall & install routine as above) with hass 0.65.0 and now have installed the same packages on my system. @ferdydek could you post your pip3 requirements list? then I install the same packages on my system. log spits out the same messages:
mirobo discovers my robovac ("mirobo ... info"):
but "mirobo... start" won't start:
|
Glad its solved, anyway you would be much better off if you would create py virtual environment for each service you run there (https://home-assistant.io/docs/installation/virtualenv/). Saves a lot of time in case of troubleshooting. |
I'm locking discussion in this issue as the original problem has been solved already, and this is a bug tracker and not a forum :-) Those who are affected by this are either:
|
Home Assistant release (
hass --version
):0.59.2
Python release (
python3 --version
):Python 3.5.3
Component/platform:
vacuum, xiaomi_miio
Description of problem:
After upgrading to 0.59.2 from 0.58.1 the Xiaomi vacuum robot is unavailable.
Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info:
The text was updated successfully, but these errors were encountered: