I just bought the (Xiaomi) Dream F9 Vaccum, and integrated it in the Mi Home App, but I can’t add it to my Home Assistant.(Unable to discover the device error)
I tried the Xiaomi_miio integration, thinking the API may be the same than the supported vacuums, but impossible to get it working.
Have someone successfully integrated this device ?
Thanks
Install HACS
Version 1.9.0 released 9 hours ago
The manual installation doesn’t work’s for me.
Install xiaomi_vacuum via HACS
also the manual installation doesn’t work for me.
Install vacuum-card via HACS
find dreamevacuum.py under “/custom_components/xiaomi_vacuum/miio/” and replace it with the file here.
Add following code (see Step 1) to the configfile configuration.yaml:
#Dreame F9 Vaccum Robot
vacuum:
- platform: xiaomi_vacuum #no need to change this
host: <IP>
token: "<Token>"
name: <Name>
Restart Homeassistant
Configuration > General > Server Management > Restart
Add the Vaccuum Card
Home Assistant Overview page, click the three dots at the top right of the screen and select ‘Edit Dashboard’. Then click the blue ‘+ Add Card’ and scroll down to “custom: Vaccum Card”
First of all, thank you very much for your work. I manage to fully add my Drame f9 to HA. However, I tried to use the service vacuum.send_command to tell the robot to go to spot. But it didn’t work for me. Did you guys manage to have it work?
I didn’t look into extending the send_command service. I did spend sometime looking to support spot cleaning but the miot spec didn’t suggest it and I haven’t seen the option in the Xiaomi app to sniff the commands.
Potentially we could find a way to simulate with a small zone based around the spot coords.
I have an error in the integration after these steps. Any idea on it? Thanks!
xiaomi_vacuum: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 407, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 516, in async_device_update
await task
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/xiaomi_vacuum/vacuum.py”, line 405, in update
self._current_water_level = state.water_level
AttributeError: ‘DreameStatus’ object has no attribute ‘water_level’
Unfortunatly, it seems that @Hyyd1e 's tips is no longer working : the dreamevacuum.py he gave is out of date, but even if you take all the folder on github, it doesnt work for dreame D9. GitHub - Concentricc/xiaomi_vacuum (by the way there is another bug on the master repo, ou just have to add a version in manifest.json, but still doesn’t work for D9)