The sensor shows “none” and the Deebot control allows me to fire the location beeps and return the vacuum to the charger but none of the other functions work.
I tried running the following code also, but this appears to have no effect:
@Alejandro_Contento Its the SUCKS library which is used for the Ecovacs platform. It doesn’t currently support the OZMO range of devices. However, their is a fork which includes the necessary files to make the OZMOs work.
Unfortunately the maintainer of the SUCKS library appears to have gone AWOL and so the codebase can’t be updated. I’m trying to pester him into action. Otherwise, I’m going to try and see if I can get guy who did the fork to publish it to PyPi and then hompe that the Home Assistant devs will migrate to the new fork.
P.M. me if you are interested in how we can try and get the new code base into Home Assistant.
Replace “ecovacs” with “deebot” (to change integration name) and any reference to “sucks” with “ozmo” (to use the “renamed” sucks library modified by bmartin5692)
update configuration.yaml with same info required by ecovacs integration: https://www.home-assistant.io/components/ecovacs/ (don’t forget to change integration name with “ozmo” instead of ecovacs)
In this way, you can at least turn on/off the vacuum and get some useful info.
I’ll try to edit the vacuum.py script to use other functions!
@Ligio That sounds like a great solution, thanks for the details. Unfortunately, I’m not really grasping what needs to be done for steps 2 & 3. Could you share some code examples &/or give a bit more info?
Alternatively… could you turn your solution into a repo? We could then load that up into Home Assistant via HACS.
There’s just been some activity on the SUCKS repo and it appears that someone with Pull privileges has stepped forward with the potential to get the forked updates merged into sucks AND publish those changes to PyPi. So… we could see this being integrated into HA fairly soon.
Step 1 doesn’t appear to need any action and step 2 just isn’T clear to me as to what should be copied and where to. Eg: How do you add the dependency? Does it matter what the custom component is called? etc
As for step 3…
I think you might have to install the PyPi Ozmo project via pip.
Lines 54 onwards are for your Yi cam / Yi-Hack-v4 integration. The first 53 or so are the Ozmo ones.
There doesn’t appear to be any error specific to the Ozmo package. Could you try to isolate the ozmo setup without all the other stuff going on? It looks like there are a whole load of things being installed at once:
What better way than giving back the community something in the first post
I did the workaround by myself and at least I can now control the basic things of my D900.
For anyone who want’s to use this too, I’ve published the modified files as gist:
Save __init__.py, manifest.json and vacuum.py to config/custom_components/deebot
add deebot component to configuration.yaml (example in gist)
Not now. This code automatically pulls in the new ozmo library via Home Assistant. If I understand correctly, when done like this, anything on PyPi can be imported into HA semi-automatically. EG: if you tell HA what’s needed it can grab it from PyPi.