nergal / homeassistant-vacuum-viomi

Integration of a Xiaomi Viomi vacuum to a Home Assistant
MIT License
54 stars 14 forks source link

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

Open Tontze opened 1 year ago

Tontze commented 1 year ago

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 commented 1 year ago

Also, im not sure if this correct repo :]

Turntable67 commented 1 year ago

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

Ivan-Firefly commented 1 year ago

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)

scetu commented 1 year ago

Having same issue, viomi.vacuum.v8

filipejsf commented 1 year ago

Has anyone found a way around this problem?

scetu commented 1 year ago

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 commented 1 year ago

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'

filipejsf commented 1 year ago

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.

Tontze commented 1 year ago

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

barrowghoul commented 1 year ago

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

ficwiktor commented 1 year ago

Same problem, any updates?

zen commented 1 year ago

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

scetu commented 1 year ago

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