As I am lazy, I acquired a robot and was terribly annoyed that there was no Polish. I did some research and googled it. Unfortunately, this model is new and there is nothing about it. However, I found some information about older models and it turned out that the tools for them also work with the Dreame L10. So I did the integration with HA, and in the process I found information about the possibility to swap language messages. This was described by mickabrig7 on github .
So I made a package with Polish messages.
In the same way you can make a polish for the older D9 and F9 models.
Perhaps even this package will fit them.
Polish for Dreame bot L10 pro by Xury.
Polish language installation instructions for Dreame bot L10 pro.
For the installation we need to know the token and DID (device id) of the bot.
The easiest way to get this is by installing the modded Mi Home app from kapiba.ru on your android phone.
First you need to uninstall the original one. No worries, all devices will still be there after installing the new app.
https://www.kapiba.ru/2017/11/mi-home.html
If we don't have a robot added then we add it.
To see the token and DID, hold your finger on the image of the hoover, then select "change name" from the bottom menu
The token can also be obtained in other ways e.g. with token_extractor.py
Now you will need a Linux computer with Python3 installed and some kind of webserver, where you need to put the en.tar.gz file
This file must be available for download. That is, by pasting the link into your browser, it should start downloading.
In the bash console, we install:
pip3 install python-miio
After the installation, copy the dreamevacuum.py file from the package to the directory where miio was installed.
In my case, the path to the miio module is /usr/local/lib/python3.7/dist-packages/miio/
There is also a __init__.py file in this directory, where we need to add one line:
from miio.dreamevacuum import DreameVacuum
It is best to add it under the following line:
from miio.dreamevacuum_entity import DreameVacuumMiot
After correct editing, we can test if python sees it by typing it in bash:
miiocli dreamevacuum --help
You should see a description of the function with, among other things, the "install_voice_pack" option we are interested in
We can possibly copy the finished __init__.py file from my package. But I recommend editing , because the version of python-miio you install may differ from mine and something may not work.
You also need to edit the file dreamevacuum.py
Look for the link http://192.168.22.111:1880/en.tar.gz and change it to your file path.
The other thing you need to change under yourself is:
"did":"<mydid>",
That is, between the quotes put your DID number obtained in the modded Mi Home e.g.:
"did": "123443210"
If we have everything ready, ie:
We have the token, the DID, the en.tar.gz file available under the webserver (by copying the link to the browser it should start downloading)
And correctly modified files dreamevacuum.py and __init__.py then we proceed to install the language pack:
In bash we type:
miiocli dreamevacuum --ip <robot IP> --token <your token> install_voice_pack
If everything is OK then after a while your robot will speak Polish. This is easy to check, for example by installing the water container. In the Mi Home app, the language will be available as French.
If you want to substitute another language, change the entry ƒ "FRƒ" in dreamevacuum.py (in the same line as we edited the link to the package) to the code of another language e.g.. on EN or RU.
So I made a package with Polish messages.
In the same way you can make a polish for the older D9 and F9 models.
Perhaps even this package will fit them.
Polish for Dreame bot L10 pro by Xury.
Polish language installation instructions for Dreame bot L10 pro.
For the installation we need to know the token and DID (device id) of the bot.
The easiest way to get this is by installing the modded Mi Home app from kapiba.ru on your android phone.
First you need to uninstall the original one. No worries, all devices will still be there after installing the new app.
https://www.kapiba.ru/2017/11/mi-home.html
If we don't have a robot added then we add it.
To see the token and DID, hold your finger on the image of the hoover, then select "change name" from the bottom menu
The token can also be obtained in other ways e.g. with token_extractor.py
Now you will need a Linux computer with Python3 installed and some kind of webserver, where you need to put the en.tar.gz file
This file must be available for download. That is, by pasting the link into your browser, it should start downloading.
In the bash console, we install:
pip3 install python-miio
After the installation, copy the dreamevacuum.py file from the package to the directory where miio was installed.
In my case, the path to the miio module is /usr/local/lib/python3.7/dist-packages/miio/
There is also a __init__.py file in this directory, where we need to add one line:
from miio.dreamevacuum import DreameVacuum
It is best to add it under the following line:
from miio.dreamevacuum_entity import DreameVacuumMiot
After correct editing, we can test if python sees it by typing it in bash:
miiocli dreamevacuum --help
You should see a description of the function with, among other things, the "install_voice_pack" option we are interested in
We can possibly copy the finished __init__.py file from my package. But I recommend editing , because the version of python-miio you install may differ from mine and something may not work.
You also need to edit the file dreamevacuum.py
Look for the link http://192.168.22.111:1880/en.tar.gz and change it to your file path.
The other thing you need to change under yourself is:
"did":"<mydid>",
That is, between the quotes put your DID number obtained in the modded Mi Home e.g.:
"did": "123443210"
If we have everything ready, ie:
We have the token, the DID, the en.tar.gz file available under the webserver (by copying the link to the browser it should start downloading)
And correctly modified files dreamevacuum.py and __init__.py then we proceed to install the language pack:
In bash we type:
miiocli dreamevacuum --ip <robot IP> --token <your token> install_voice_pack
If everything is OK then after a while your robot will speak Polish. This is easy to check, for example by installing the water container. In the Mi Home app, the language will be available as French.
If you want to substitute another language, change the entry ƒ "FRƒ" in dreamevacuum.py (in the same line as we edited the link to the package) to the code of another language e.g.. on EN or RU.