rytilahti / python-miio

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

Unsupported model dreame.vacuum.r2209 #1839

Open it-triq opened 10 months ago

it-triq commented 10 months ago

If you are receiving a warning indicating an unsupported model (Found an unsupported model '<model>' for class '<class>'.), this means that the implementation does not list your model as supported.

If it is working fine for you nevertheless, feel free to open an issue or create a PR to add the model to the _supported_models (example) for that class.

Before submitting, use the search to see if there is an existing issue for the device model, thanks!

Device information:

Use miiocli device --ip <ip address> --token <token>.

MaciekIzdebski commented 5 months ago

Hi,

You can just add in dreamevacuum_miot.py:

DREAME_X10_MOP = "dreame.vacuum.r2209" - first few lines of file

and then another modification in MIOT_MAPPING:

DREAME_X10_MOP: _DREAME_TROUVER_FINDER_MAPPING,

or I can provide my file (but be aware I am not good at python). I've added dust collection, sensors state and room cleaning command.

rytilahti commented 4 months ago

@MaciekIzdebski feel free to create a PR, and I can look over it and get it merged! :+1: