I have a Rowenta X95 Vacuum Robot that is showing correctly in the Tuya app, In HA with the Tuya integration it shows status “unknown” no matter what it does. Start, Pause and Dock commands are working, but no attributes can be made available for the devices. Weird enough it has an entity: select.x_plore_95_mode that show the correct status but for the life of me I can’t make it visible in the Vacuum Card. No Battery Status either.
I installed also Local Tuya through HACS and I played a bit with all the Attributes from Tuya IOT and there it shows always the status “Cleaning” no matter what it does. A lot of attributes are visible but it is unusable as a Vacuum since with Tuya Local I couldn’t do any Start, Stop, Dock commands. Any ideas?
Thank you!
Regarding the “Unknown” status reported permanently with tuya compatible vacuum cleaners, the problem comes from the fact that your device does not correctly report its status in the form expected by Home Assistant (incomplete “status” json entry).
I encountered the same problem with a compatible device from the Lefant brand (M201) and I made some modifications to the “vacuum.py” script of the tuya integration in order to determine the status based on the information reported.
Not all cases are fully covered but are perfectly suitable for everyday use.
You can find the modified scripts here (the latest version of HA having made changes, I updated the script so that it works) :
Support for Tuya compatible robot vacuum cleaners incorrectly reporting their status in Home Assistant (always “Unknown”).
Just replace the original script content in HA and restart HA for it to work (original file located here “/usr/src/homeassistant/homeassistant/components/tuya/vacuum.py”)
I don’t guarantee that it works in your case but I think it should work.
In my case, I’m using HA in docker version so I just mounted my modified file instead of the original file so I don’t need to replace the file after updating HA.