- Install
python-miio
(docs) - Get the Xiaomi-Cloud-Map-Extractor add-on for Home Assistant (follow instructions below)
$ git clone https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor.git map-extractor
$ cd map-extractor/custom_components
$ git init .
$ git remote add origin https://gist.github.com/b05333830cc616b70869a324350691ad.git
$ git fetch
$ git checkout origin/master -b dev
At this point, open map-dl.py
and edit the configuration section with the mi home credentials and the vacuum details
$ python map-dl.py
The map will be saved as map_data.gz
.
Use roboMapViewer to open the map.
Hello while trying to implement, I encountered some errors that I was able to work around as follows:
from xiaomi_cloud_map_extractor.common.xiaomi_cloud_connector import XiaomiCloudConnector
pip install requests
pip install pycryptodome
for Crypto.Cipher referenceNow the name of the map is already pulled from the server. However, when processing or saving it, the error
TypeError: XiaomiCloudConnector.get_raw_map_data() takes 2 positional arguments but 3 were given
occurs. Do you know what the problem could be?