homeassistant-vacuum-viomi icon indicating copy to clipboard operation
homeassistant-vacuum-viomi copied to clipboard

cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum' (/usr/local/lib/python3.10/site-packages/miio/vacuum.py

Open Tontze opened this issue 2 years ago • 13 comments

I dont have ROCKROBO_S7_MAXV, i usually need to do double reboot to get rid of this warning and get integration working.

2022-11-26 07:32:51.480 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_miio: Unable to import component: cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum' (/usr/local/lib/python3.10/site-packages/miio/vacuum.py) 2022-11-26 07:32:51.573 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of xiaomi_viomi. Setup failed for dependencies: xiaomi_miio 2022-11-26 07:32:51.579 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration xiaomi_viomi: (DependencyError(...), 'Could not setup dependencies: xiaomi_miio')

Tontze avatar Nov 26 '22 05:11 Tontze

Also, im not sure if this correct repo :]

Tontze avatar Nov 26 '22 07:11 Tontze

Same here, becasue xiaomi_viomi has a dependency on xiaomi_miio (python-miio==0.5.9)

Turntable67 avatar Dec 08 '22 10:12 Turntable67

Same here, becasue xiaomi_viomi has a dependency on xiaomi_miio (python-miio==0.5.9)

Same issue. Tried to install miio integration - also error - no such model (I have viomi.vacuum.v7)

Ivan-Firefly avatar Dec 09 '22 21:12 Ivan-Firefly

Having same issue, viomi.vacuum.v8

scetu avatar Dec 18 '22 17:12 scetu

Has anyone found a way around this problem?

filipejsf avatar Dec 19 '22 08:12 filipejsf

In another issue they are suggesting change manually dependency, but it does not work for me.

It is due to a dependency mismatch. Change "python-miio==0.5.9" to "python-miio>=0.5.9" in manifest.json and it will work again.

scetu avatar Dec 19 '22 09:12 scetu

I am able to setup integration via GUI, but when I restart HA later, it won't load again with error Setup failed for xiaomi_miio: Unable to import component: cannot import name 'ROCKROBO_S7_MAXV' from 'miio.vacuum'

scetu avatar Dec 19 '22 10:12 scetu

In another issue they are suggesting change manually dependency, but it does not work for me.

It is due to a dependency mismatch. Change "python-miio==0.5.9" to "python-miio>=0.5.9" in manifest.json and it will work again.

Thanks for the quick replies guys! This change on manifest.json solved the problem! I could finally get the entity back! Thanks for the tip.

filipejsf avatar Dec 19 '22 12:12 filipejsf

Hm, im still getting this error once in a while ..

Tontze avatar Dec 22 '22 15:12 Tontze

having the same issue, modified manifest.json but didn´t work. Any other suggestion?

barrowghoul avatar Jan 24 '23 20:01 barrowghoul

Same problem, any updates?

ficwiktor avatar Feb 01 '23 17:02 ficwiktor

This custom extension needs more love ;) Looks like it's not maintained :(

zen avatar May 07 '23 00:05 zen

@zen I have switched to https://github.com/al-one/hass-xiaomi-miot and never looked back... works flawlessly.

scetu avatar May 07 '23 05:05 scetu