-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STYJ02YM Vacuum Integration #27268
Comments
Hey there @rytilahti, @syssi, mind taking a look at this issue as its been labeled with a integration ( |
i have same issue |
First step would be to ensure if it is working with miiocli or mirobo command-lne tool. Timeouts happen when there is no response from the acuum, so there is not much we can do there until that is solved. Is homeassistant in the same network as the vacuum? Do |
There is an issue open on the python-miio repository. |
Same issue. Here is a part of the result for miiocli -d device --ip 192.168.0.Y --token XXX info INFO:miio.cli:Debug mode active Any retry leads to the same issue. |
reset the vacuum to factory state (wifi ap mode), connect to ap and try to discover or get token by sending hello packet to the vacuum https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md (bottom) and try to inspect. technically vacuum can drop local miio api AFTER provisioning, but it should work in factory state, because mi home is using generic method miIO.config_router to setup cloud connection. |
I can't get correctly token like the way you show. It's show me another token if I reset the vacuum again and again.
|
token changes on each wifi reset, but your goal is to reset wifi (disconnect vacuum from cloud), get the token and check if you can talk to vacuum when it's not connected to cloud. it looks like it close local miio api after you connect it to wifi/cloud. |
I try like this:
|
don't do point 3, don't connect it to cloud (it will change token and probably disable local api). when you get token in point 2 use python miio or mirobo send raw command for example miiocli device --ip 192.168.8.1 --token 00112233445566778899aabbccddeeff info or mirobo --ip 192.168.8.1 --token 00112233445566778899aabbccddeeff raw-command miIO.info |
If dont do point 3, how can robo connect to my wifi? and when to connect robo to Mihome? |
just confirm local api is working and let us know. i will check how and where they disable it after cloud connection is done. |
hi everybody! I have a problem with Xiaomi STYJ02YM. Before an update I had 2 modes on this robot: vacuum and mop. After an update which I received recently I have 3 modes: Vacuum, Vacuum+Mop and Mop. If I choose only Mop mode I have an error: "water reservoir(tank) is not installed, please install water tank", but I already installed 2 in 1 water tank. And right now I can't use only Mop function on this vacuum, but previously everything was fine. |
Hi leotreble, mine 'mops only' well without the tank filter. |
@leotreble, regarding to your issue I've seen video on YT with same problem and one comment states that after update for "mopping only" mode you need separate tank which is not included to the vacuum. I expect this tank is only for the water (not dust) and can carry more water. If you want to use your normal tank which is for dust+water you may need to use "vacuum + mop" mode after this update. |
Hi all |
Hello @Kitem19 some people are working on it but nothing is sure at this time. There are some questions about the API being accessible without the Xiaomi cloud (local API). |
Thanks. |
I don't know about the S6. The S5 still a very good solution for now. |
Any updates on this? |
Basic support is available in the most recent python-miio release, some more features were added with rytilahti/python-miio#590 . The homeassistant integration needs to be updated to allow defining the model to use (as this uses a different protocol, and we cannot reliably detect this for non-cloud connected gen1 vacuums). |
Hi @rytilahti |
Home assistant integration use the python library made by @rytilahti . This library has been updated after the last release of HA. So we have to wait the next release of HA in order to use the last version of the python library. |
Thanks |
@Kitem19 yes, you got it right! The backend library has now support for that device, and using that requires changes in the homeassistant integration. @HydrelioxGitHub, bumping the version is not enough as this is a different implementation and will require modifications to the vacuum platform (i.e., adding ability to choose which implementation to use, much like with some other xiaomi_miio platforms). |
Hello all! I am also looking forward for update regarding update on this topic. |
Try to add the debug flag to your invocations, it will show you what is being received and maybe give a hint what could be the problem. That error message indicates that the device responded with something (unexpected, non-json response) instead of simply timing out what usually happens when the token is incorrect. |
I have added the debug flag and in addition I have also done a packet capture on the interface and grabbed the response back from the vacuum. I am not sure what to expect in the response but it looks like is its sending me back another token the same one I sent in as the magic packet as well as the tocken I sent it from the PC in the mirobo command. Maybe this means something to somebody here? packet capture response UDP Stream from 192.168.5.1 (vacuum) back to 192.168.5.2 (pc)21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff Output of command and debug belowmirobo -d --ip 192.168.5.1 --token 6771723256655964726277486F777A4E raw-command miIO.info INFO:miio.vacuum_cli:Debug mode active The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Maybe the info command is not working on that device? Something similar happens on rockrobo gen1 vacuums if they are not cloud connected, even when the other commands work. Do all other viomivacuum commands also cause the same error? |
Tried other commands but I get "no response from device" miiocli viomivacuum --ip 192.168.5.1 --token 323776595A70656876594D3xxxxCxxxx status |
I am getting the same issue with my vacuum. It is working through the android app, and using npm miio, it is only from Home Assistant that I am finding it not working Configuration.yaml
Error Any idea what is going on, or is there any more information that I can gather? |
The integration supports only rockrobo vacuums at the moment, there is a custom component linked previously in this issue that allows using viomi vacuums with homeassistant. The steps to properly integrate support for these is also contained in some of the previous comments. |
Thanks this explains a bit. I will read the comments and see what bits are relevant to viomi. |
https://github.com/nqkdev/home-assistant-vacuum-styj02ym |
Could the python-mioo be updated for HA > 0.113? Simply editing the manifest.json to reflect 5.0.3 did not work for me... I'm not sure what else to change. Currently this is breaking the Xiaomi Miio Gateway Alarm integration built into Home Assistant. Downgrading HA to <0.113 will fix the issue. [edit |
thanks. managed to get it working. it was surprisingly easy. I ended up not resetting my vacuum at all and left it on the wifi as is. Then installed the older version of the mi home app version v5.4.45 in bluestacks. Got the token and it worked first time. |
Does anyone has any problems with miio2 & STYJ02YM recently? Running HA 0.118.4 / latest hassos and shortly after turning on it's available and works fine then about hour later:
It's available thorugh Xiaomi app, connected to China server but that does not matter due to fact using LAN, also firmware is 3.5.3.0047 |
I have the same problem. Firm: 3.5.3.0047
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
STYJ02YM is still not supported by xiaomi_miio |
@syssi @rytilahti can you share if there is any progress with this integration? Can we help in anyway? |
@bkupidura I haven't heard about anyone working on this. I think the integration would now thanks to the configflow work by @starkillerOG simpler, the necessary steps are mentioned in #27268 (comment) If you want to help, you could try and see if it is enough to replace |
@rytilahti changing Maybe STYJ02YM is not supporting device info?
|
@bkupidura device is a direct base-class for all types of vacuums, are you definitely sure you initialized Is |
Ok, so looks like my vacuum was in some weird state. After allowing vacuum access to internet
But still, changing Ex.
And more... After "fixing" those, i got error around fanspeed.
But lookss like this is issue with
|
Could you please open a PR (or an issue with your findings) to python-miio repository? My plan for long has been to consolidate the API per device type (e.g., For the last error, you could use |
I created rytilahti/python-miio#1003 - probably during weekend i will have more time to investigate issue with python-miio. |
Not sure if late to the party, but I was able to get my vacuum (of this model, the CN v7) through this project by nqkdev (via this article). There's also this other by nergal, that I didn't try simply because I only found it later. I wonder if these (or help from their devs) could be leveraged to get it all working with the main HA Integration? |
There is already support on python-miio for vacuums from other vendors besides roborock (viomi, roidmi and dreame), but the library requires some refactoring to make it simpler to support those. Alas, so far none of the developers of the device-specific custom components have been in contact nor tried to actively push changes to python-miio, if any are needed at all. It's mainly the lack of manpower (and/or interest) why this hasn't happened already. I wrote earlier down some notes (rytilahti/python-miio#1114) that should make it simpler to integrate support for other vacuums when I (or anyone who wishes to do so, contributions are welcome!) find some time to work on it. Considering this issue has been closed for a while (and that it is about a new feature, i.e., a wish list item), I'll close this for comments. The discussion about feature requests (and custom components) should be continued on the community forums. If anyone (including the authors of custom components) wishes to contribute for the effort, feel free to contact me on the homeassistant discord :-) |
Home Assistant release with the issue:
0.99.3
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io
Integration:
https://www.home-assistant.io/integrations/vacuum.xiaomi_miio/
Description of problem:
I've tried to add my Xiaomi Mijia STYJ02YM lauched in the middle of august. But it seems that the integration can't reach the robot.
I've retreived the token using MiToolKit. I've checked the ip directely on the router.
There are 3 messages in the log (provided in the traceback).
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: