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

Support for Xiaomi Vacuum-mop pro (STYTJ02YM viomi.vacuum.v8) #1161

Closed KrzysztofHajdamowicz closed 1 year ago

KrzysztofHajdamowicz commented 2 years ago

Looks like china version (styj02ym) is on supported devices list, but euro version (sty T j02ym) is missing. I'm currently hosting maintained version of @nqkdev code: https://github.com/KrzysztofHajdamowicz/home-assistant-vacuum-styj02ym and I want to merge this into upstream, so no more forks and installing 3rd-party addons.

Device information:

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

Additional context Probably it's very similar to China version (styj02ym), but exposes less attributes, like no consumables life remaining.

match85 commented 2 years ago

So that's why my european mop pro not working :/ It would be apprechiated to include these models.

Do you have any workaround to use an european model via python? (I'm not using home assistant).

KrzysztofHajdamowicz commented 2 years ago

So that's why my european mop pro not working :/ It would be apprechiated to include these models.

Do you have any workaround to use an european model via python? (I'm not using home assistant).

I cannot help you too much, I'm just a humble ducttape-wrapper for keeping original code working in Home Assistant. The code is here: https://github.com/KrzysztofHajdamowicz/home-assistant-vacuum-styj02ym, maybe you will figure out how to use pure Python :)

rytilahti commented 2 years ago

Have you looked into the shipped viomivacuum implementation to see what types of changes are needed? I'm happy to help with code reviews etc. to get the necessary changes to this library :-)

snp88 commented 2 years ago

@rytilahti @KrzysztofHajdamowicz Any news about implementing this ?

X1pheR commented 2 years ago

It would be great if the STYJ02YM would get native support by python-miio. 🤞🏼

X1pheR commented 2 years ago

I believe this will wait untill #1114 is done

th0m4sek commented 2 years ago

What non programing owners of this vacuum can do to help integrate it?