rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.68k stars 552 forks source link

Found an unsupported model 'viomi.vacuum.v7' for class 'Vacuum'. #1313

Closed takthetank closed 2 years ago

takthetank commented 2 years ago

Hi I'm getting the following warning in Home Assistant:

Found an unsupported model 'viomi.vacuum.v7' for class 'Vacuum'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/

Device information:

rytilahti commented 2 years ago

This is coming from a custom component (as viomis are supported by ViomiVacuum class in this project), so you have to report it to its developer.

takthetank commented 2 years ago

I'm not sure it's the components fault, I only use this and it already has the latest version (almost, 0.5.9.1)

KrzysztofHajdamowicz/home-assistant-vacuum-styj02ym

rytilahti commented 2 years ago

That custom component is wrapping the vacuum class to provide support for something that isn't supported by this library directly. The simplest fix would probably be adjusting the _supported_models inside that component to add the models it supports.

takthetank commented 2 years ago

When I try to add the vacuum via the original integration (Xiaomi Miio), although it recognizes it from the cloud, image

when I press Submit I get hte following error, and it isn't listed in the Device Model dropdown: image

Is it not officially supported?

rytilahti commented 2 years ago

It is not currently supported, the integration homeassistant ships supports only roborock vacuums.

akshay7394 commented 1 year ago

@rytilahti sorry I'm pinging you about this literally more than a year later, I'm nowgetting this issue for the v10 vacuum. But, where would I be able to change the _ supported_models? And, am I correct in assuming that it's not officially supported but some existing commands may also work on v10?

rytilahti commented 1 year ago

The supported models is just used to let people know that they should create an issue to add their device as supported to allow programmatically obtaining the class implementing the support for that device. This is just a warning, so if it's working for you, great!

If it isn't working using the miiocli viomivacuum, it might be a bug as that v10 is also listed as supported (at least in the git version).

akshay7394 commented 1 year ago

The supported models is just used to let people know that they should create an issue to add their device as supported to allow programmatically obtaining the class implementing the support for that device. This is just a warning, so if it's working for you, great!

If it isn't working using the miiocli viomivacuum, it might be a bug as that v10 is also listed as supported (at least in the git version).

Oh okay! So I should just raise an issue to get v10 added to the integration? Because the miiocli method works fine for me