Python plugin: Xiaomi Mi Robot Vacuum Topic is solved

Python and python framework

Moderator: leecollings

avgays
Posts: 14
Joined: Monday 30 January 2017 12:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by avgays »

tjabas wrote: Friday 28 February 2020 14:40 2020-02-28 14:15:37.545 Error: roborock hardware (19) thread seems to have ended unexpectedly

but the vaccum seems to be connected anyway, is there a way to disable these error masseges?
it fill my log all the time.
try to set lower "Update interval" - in my case - 15s
if I remember correctly there are some limitations in domotics plugin framework for timeout
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by tjabas »

ok, ill try 15s, mina was set to 60s.

well see how it works.
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by tjabas »

today i received a firmware update for my vacuum, it seems that i can ad zones, is it possible to get domoticz to recognise the zones and be able to send the vacuum to selected zone?
ohnsorge
Posts: 2
Joined: Tuesday 08 December 2015 0:10
Target OS: -
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by ohnsorge »

Hi.
This is my log

Code: Select all

sudo ./miio_server.py 192.168.10.32 374b473361794f4b66566c5745794944 --host 127.0.0.1 --port 22222
Traceback (most recent call last):
  File "./miio_server.py", line 18, in <module>
    from miio import Vacuum, DeviceException
  File "/usr/local/lib/python3.7/dist-packages/miio/__init__.py", line 2, in <module>
    from miio.airconditioningcompanion import (
  File "/usr/local/lib/python3.7/dist-packages/miio/airconditioningcompanion.py", line 8, in <module>
    from .device import Device, DeviceException
  File "/usr/local/lib/python3.7/dist-packages/miio/device.py", line 14, in <module>
    from .protocol import Message
  File "/usr/local/lib/python3.7/dist-packages/miio/protocol.py", line 206, in <module>
    Const(0x2131, Int16ub),
  File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 1930, in __init__
    super(Const, self).__init__(subcon)
  File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 288, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field
When I try send

Code: Select all

 mirobo --ip 192.168.10.32 --token 374b473361794f4b66566c5745794944 start
Starting cleaning: ['ok']
everything works.
What can be wrong?
Stimpy68
Posts: 40
Joined: Wednesday 09 May 2018 16:37
Target OS: Linux
Domoticz version:
Location: The Hague, The Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by Stimpy68 »

Same problem here:

Code: Select all

domoticz@domoticz:/domoticz/plugins/xiaomi-mirobot$ sudo ./miio_server.py xxx.xxx.xxx.xxx KEY --host 127.0.0.1 --port 22222
Traceback (most recent call last):
  File "./miio_server.py", line 17, in <module>
    from miio import Vacuum, DeviceException
  File "/usr/local/lib/python3.7/dist-packages/miio/__init__.py", line 2, in <module>
    from miio.airconditioningcompanion import (
  File "/usr/local/lib/python3.7/dist-packages/miio/airconditioningcompanion.py", line 8, in <module>
    from .device import Device, DeviceException
  File "/usr/local/lib/python3.7/dist-packages/miio/device.py", line 14, in <module>
    from .protocol import Message
  File "/usr/local/lib/python3.7/dist-packages/miio/protocol.py", line 206, in <module>
    Const(0x2131, Int16ub),
  File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 1930, in __init__
    super(Const, self).__init__(subcon)
  File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 288, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field
User avatar
bueno79
Posts: 83
Joined: Wednesday 08 March 2017 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by bueno79 »

hi,

I get subcon should be a Construc field. TO fix this I pass python-miio 0.5.1 instead of 0.3.1.

so now miio-server.sh can run, I can add the roborock in Domoticz and see switch. But I get this in domoticz logs :

Code: Select all

2020-03-31 17:01:31.504 Error: (xiaomi-mi-robot-vacuum) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/xiaomi-mirobot/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-03-31 17:01:31.504 Error: (Sylvain) Module Import failed, exception: 'AttributeError'
2020-03-31 17:01:31.505 Error: (Sylvain) Error Line details not available.
If I try to run test.py I get :

Code: Select all

test: python modules path: ./.env/lib/python3.5/site-packages
test: python modules path: ./.env/lib/python3.7/site-packages
test: trying connect to 127.0.0.1:22222
test: sent request to server [status]
test: reading response...
test: got server reply {'exception': 'python-miio: No response from the device', 'cmd': 'status'}
rensbr
Posts: 61
Joined: Friday 27 July 2018 19:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by rensbr »

ohnsorge wrote: Tuesday 03 March 2020 12:15 Hi.
This is my log
bueno79 wrote: Tuesday 31 March 2020 17:14 so now miio-server.sh can run, I can add the roborock in Domoticz and see switch. But I get this in domoticz logs :

Code: Select all

2020-03-31 17:01:31.504 Error: (xiaomi-mi-robot-vacuum) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/xiaomi-mirobot/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-03-31 17:01:31.504 Error: (Sylvain) Module Import failed, exception: 'AttributeError'
2020-03-31 17:01:31.505 Error: (Sylvain) Error Line details not available.
Yes, same problem here. I had a working system and since a week this error occurs.

I have used a workarround for this problem, created a new startup script, based on a previous post:

Code: Select all

sudo nano /etc/systemd/system/[email protected]
Add the script from Andyf66:
Andyf66 wrote: Tuesday 19 June 2018 15:44

Code: Select all

[Unit]
Description=Xiaomi Mi Robovac service - %i
After=network.target

[Service]
PrivateTmp=true
Type=service
EnvironmentFile=/etc/systemd/user/%i
ExecStart=/home/pi/domoticz/plugins/xiaomi-mirobot/miio_server.py $RUN_OPTS

[Install]
WantedBy=multi-user.target

Code: Select all

sudo chmod 644 /etc/systemd/system/[email protected]
cd /etc/systemd/user/
sudo nano xiaomi-downstairs-vac
Add the following:
Andyf66 wrote: Tuesday 19 June 2018 15:44

Code: Select all

RUN_OPTS=192.168.200.240 4764677338476464578459486a6a4e6f --host 127.0.0.1 --port 22222
Add to startup:

Code: Select all

sudo systemctl daemon-reload
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
And check if this works:

Code: Select all

systemctl status [email protected]
Now the plugin will work again.
Stimpy68
Posts: 40
Joined: Wednesday 09 May 2018 16:37
Target OS: Linux
Domoticz version:
Location: The Hague, The Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by Stimpy68 »

rensbr wrote: Tuesday 31 March 2020 21:07
Tried it, still the same error:

Code: Select all

[email protected] - Xiaomi Mi Robovac service - xiaomi-downstairs-vac
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-04-04 16:04:48 CEST; 7s ago
  Process: 31975 ExecStart=/domoticz/plugins/xiaomi-mirobot/miio_server.py $RUN_OPTS (code=exited, status=1/FAILURE)
 Main PID: 31975 (code=exited, status=1/FAILURE)

Apr 04 16:04:48 domoticz miio_server.py[31975]:     from miio.chuangmi_ir import ChuangmiIr
Apr 04 16:04:48 domoticz miio_server.py[31975]:   File "/usr/local/lib/python3.7/dist-packages/miio/chuangmi_ir.py", line 190, in <module>
Apr 04 16:04:48 domoticz miio_server.py[31975]:     Const(0xA567, Int16ul),
Apr 04 16:04:48 domoticz miio_server.py[31975]:   File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 1930, in __init__
Apr 04 16:04:48 domoticz miio_server.py[31975]:     super(Const, self).__init__(subcon)
Apr 04 16:04:48 domoticz miio_server.py[31975]:   File "/usr/local/lib/python3.7/dist-packages/construct/core.py", line 288, in __init__
Apr 04 16:04:48 domoticz miio_server.py[31975]:     raise TypeError("subcon should be a Construct field")
Apr 04 16:04:48 domoticz miio_server.py[31975]: TypeError: subcon should be a Construct field
Apr 04 16:04:48 domoticz systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Apr 04 16:04:48 domoticz systemd[1]: [email protected]: Failed with result 'exit-code'.
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by TheCondor »

I'm on latest domoticz stable, python 3.7 on debian buster (raspberry), all is working. I followed in opposite way the instruction so:
1) stop miio-server
3) remove miio-server from autostart
4) pip3 uninstall -r pip_req.txt
5) delete the .env folder inside the plugin folder

and

6) start following the instructions on github page but with this custom requiments which is working for me:

Code: Select all

android-backup==0.1.0
asn1crypto==0.23.0
attrs==17.2.0
cffi==1.11.2
click==6.7
construct==2.9.31
cryptography==2.1.3
enum-compat==0.0.2
gevent==1.4.0
greenlet==0.4.15
idna==2.6
msgpack-python==0.4.8
netifaces==0.10.6
pretty-cron==1.0.2
pycparser==2.18
pycrypto==2.6.1
python-miio==0.4.4
pytz==2017.3
six==1.11.0
typing==3.6.2
zeroconf==0.19.1


later python-miio crashed because construct package or other, this version include the zone_cleaned command.
Stimpy68
Posts: 40
Joined: Wednesday 09 May 2018 16:37
Target OS: Linux
Domoticz version:
Location: The Hague, The Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by Stimpy68 »

Yes! That did the trick! It's working again :D

UPDATE, spoke too soon, reloading the plugin gives me this error

Code: Select all

 2020-04-13 17:36:32.424 Error: (xiaomi-mi-robot-vacuum) failed to load 'plugin.py', Python Path used was '/domoticz/plugins/xiaomi-mirobot/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-04-13 17:36:32.424 Error: (Dusty) Module Import failed, exception: 'AttributeError'
2020-04-13 17:36:32.424 Error: (Dusty) Error Line details not available. 
Only a reboot fixes that: https://github.com/mrin/domoticz-mirobo ... /issues/28
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by HFman »

Have the plugin stable working with the S5 MAX just followed the github for more then 2 weeks. (no updates in token sofar..)
Only noticed that the suction power setting doesn't work / update.

rootcase seems to be that the fanlevel of the S5 max =

105 "gentle"
101 "silent"
102 "balanced"
103 "turbo"
104 "max"

updating this in de code now and have this working again.

Did any one already figure the mopping mode out ?
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by tjabas »

Same Here, everything else works exept the fan levels.
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by HFman »

Short status update :

Updated the Fan module for S5 Max :
Fan.PNG
Fan.PNG (14.49 KiB) Viewed 3357 times
Added Error (can reconize 26 different error's)
Error.PNG
Error.PNG (12.33 KiB) Viewed 3357 times
And implimented the Mopping :
Mop.PNG
Mop.PNG (13.39 KiB) Viewed 3357 times

Still to do (50% ready) :

- add water container detector
- add mop detector

After this still will have a look on cleaning a room.
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
bueno79
Posts: 83
Joined: Wednesday 08 March 2017 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by bueno79 »

still broken in 2020.2 :(
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by JanvdW »

I have installed the plugin on my RPI4 with Domoticz 2020.2 (build 12067), everything seems to be there, but I don't get it working.

When I run 'sudo ./test.py' I get:

Code: Select all

test: python modules path: ././.env/lib/python3.7/site-packages
test: trying connect to 127.0.0.1:22222
test: sent request to server [status]
test: reading response...
./test.py:28: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  unpacker = Unpacker(encoding='utf-8')
test: got server reply {'exception': 'python-miio: ', 'cmd': 'status'}
Then I stopped the service and manually started the script with 'sudo ./miio_server.py <ip address> token> --host 127.0.0.1 --port 22222' and got:

Code: Select all

server: Starting server on 127.0.0.1 22222
server: connected ('127.0.0.1', 46402)
./miio_server.py:67: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  unpacker = Unpacker(encoding='utf-8')
server: got socket msg: ['status']
Got error when receiving: timed out
Retrying with incremented id, retries left: 3
Got error when receiving: timed out
Retrying with incremented id, retries left: 2
server: got socket msg: ['status']
Got error when receiving: timed out
Retrying with incremented id, retries left: 1
Got error when receiving: timed out
In the Domoticz log (with 'debug = true') I get:

Code: Select all

2020-05-25 21:01:30.827 (Robot stofzuiger) Pushing 'ReadEvent' on to queue
2020-05-25 21:01:30.832 (Robot stofzuiger) Processing 'ReadEvent' message
2020-05-25 21:01:30.832 (Robot stofzuiger) Received 36 bytes of data
2020-05-25 21:01:30.832 (Robot stofzuiger) 82 a9 65 78 63 65 70 74 69 6f 6e ad 70 79 74 68 6f 6e 2d 6d ©exceptionͰython-m
2020-05-25 21:01:30.832 (Robot stofzuiger) 69 69 6f 3a 20 a3 63 6d 64 a6 73 74 61 74 75 73 .. .. .. .. iio:.ãmdƳtatus
2020-05-25 21:01:30.832 (Robot stofzuiger) Pushing 'onMessageCallback' on to queue
2020-05-25 21:01:30.832 (Robot stofzuiger) Processing 'onMessageCallback' message
2020-05-25 21:01:30.832 (Robot stofzuiger) Calling message handler 'onMessage'.
2020-05-25 21:01:30.833 (Robot stofzuiger) Got: {'exception': 'python-miio: ', 'cmd': 'status'}
2020-05-25 21:01:34.774 (Robot stofzuiger) Pushing 'onHeartbeatCallback' on to queue
2020-05-25 21:01:34.791 (Robot stofzuiger) Processing 'onHeartbeatCallback' message
2020-05-25 21:01:34.791 (Robot stofzuiger) Calling message handler 'onHeartbeat'.
2020-05-25 21:01:34.792 (Robot stofzuiger) Pushing 'WriteDirective' on to queue
2020-05-25 21:01:34.792 (Robot stofzuiger) Processing 'WriteDirective' message
2020-05-25 21:01:34.792 (Robot stofzuiger) Sending 8 bytes of data
2020-05-25 21:01:34.792 (Robot stofzuiger) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. Ѧstatus
Any ideas what's wrong?
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by JanvdW »

JanvdW wrote: Monday 25 May 2020 21:19 I have installed the plugin on my RPI4 with Domoticz 2020.2 (build 12067), everything seems to be there, but I don't get it working.

When I run 'sudo ./test.py' I get:

Code: Select all

test: python modules path: ././.env/lib/python3.7/site-packages
test: trying connect to 127.0.0.1:22222
test: sent request to server [status]
test: reading response...
./test.py:28: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  unpacker = Unpacker(encoding='utf-8')
test: got server reply {'exception': 'python-miio: ', 'cmd': 'status'}
Then I stopped the service and manually started the script with 'sudo ./miio_server.py <ip address> token> --host 127.0.0.1 --port 22222' and got:

Code: Select all

server: Starting server on 127.0.0.1 22222
server: connected ('127.0.0.1', 46402)
./miio_server.py:67: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  unpacker = Unpacker(encoding='utf-8')
server: got socket msg: ['status']
Got error when receiving: timed out
Retrying with incremented id, retries left: 3
Got error when receiving: timed out
Retrying with incremented id, retries left: 2
server: got socket msg: ['status']
Got error when receiving: timed out
Retrying with incremented id, retries left: 1
Got error when receiving: timed out
In the Domoticz log (with 'debug = true') I get:

Code: Select all

2020-05-25 21:01:30.827 (Robot stofzuiger) Pushing 'ReadEvent' on to queue
2020-05-25 21:01:30.832 (Robot stofzuiger) Processing 'ReadEvent' message
2020-05-25 21:01:30.832 (Robot stofzuiger) Received 36 bytes of data
2020-05-25 21:01:30.832 (Robot stofzuiger) 82 a9 65 78 63 65 70 74 69 6f 6e ad 70 79 74 68 6f 6e 2d 6d ©exceptionͰython-m
2020-05-25 21:01:30.832 (Robot stofzuiger) 69 69 6f 3a 20 a3 63 6d 64 a6 73 74 61 74 75 73 .. .. .. .. iio:.ãmdƳtatus
2020-05-25 21:01:30.832 (Robot stofzuiger) Pushing 'onMessageCallback' on to queue
2020-05-25 21:01:30.832 (Robot stofzuiger) Processing 'onMessageCallback' message
2020-05-25 21:01:30.832 (Robot stofzuiger) Calling message handler 'onMessage'.
2020-05-25 21:01:30.833 (Robot stofzuiger) Got: {'exception': 'python-miio: ', 'cmd': 'status'}
2020-05-25 21:01:34.774 (Robot stofzuiger) Pushing 'onHeartbeatCallback' on to queue
2020-05-25 21:01:34.791 (Robot stofzuiger) Processing 'onHeartbeatCallback' message
2020-05-25 21:01:34.791 (Robot stofzuiger) Calling message handler 'onHeartbeat'.
2020-05-25 21:01:34.792 (Robot stofzuiger) Pushing 'WriteDirective' on to queue
2020-05-25 21:01:34.792 (Robot stofzuiger) Processing 'WriteDirective' message
2020-05-25 21:01:34.792 (Robot stofzuiger) Sending 8 bytes of data
2020-05-25 21:01:34.792 (Robot stofzuiger) 91 a6 73 74 61 74 75 73 .. .. .. .. .. .. .. .. .. .. .. .. Ѧstatus
Any ideas what's wrong?
Does no one has an idea how to fix this issue?
hoeby
Posts: 528
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by hoeby »

Does somebody have this plugin working om pi 3b+, with buster and domoticz 2020.2?

Are there things to watch for, or is it a straight forward install?
I have the plugin running on pi 3b+, with stretch and 4.10717
Works without issues, but need to go to buster. Therefor i want to do a clean domoticz install and not upgrade the OS
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
hoeby
Posts: 528
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by hoeby »

hoeby wrote: Thursday 11 June 2020 18:25 Does somebody have this plugin working om pi 3b+, with buster and domoticz 2020.2?
Hihi, yes i have :lol:

What did i do, for people wo are having problems.
Remember, i have a fresh install. Nothing else (yet) is on the SD of the PI

- Place Pi OS Buster on Pi (i am using the 27-05-2020 version)
- Startup and login. I changed, SSH port, put on fixed IP and changed password. But these changes have nothing to do with the vacuum install.
- update system package (sudo apt update)
- update all installed packages (sudo apt full-upgrade)
- take a break untill full-upgrade is done
- installed domoticz (curl -L https://install.domoticz.com | bash)
- did every step from the plugin github untill you get to this point, then stop

Code: Select all

# and then:
pip3 install -r pip_req.txt 
# or pip3 install gevent msgpack-python python-miio==0.3.1
Then i first did an edit on the pip_req.txt file
Put all great settings in it, which TheConder posted a few posts back. Thanks TheConder for the hard work

Code: Select all

android-backup==0.1.0
asn1crypto==0.23.0
attrs==17.2.0
cffi==1.11.2
click==6.7
construct==2.9.31
cryptography==2.1.3
enum-compat==0.0.2
gevent==1.4.0
greenlet==0.4.15
idna==2.6
msgpack-python==0.4.8
netifaces==0.10.6
pretty-cron==1.0.2
pycparser==2.18
pycrypto==2.6.1
python-miio==0.4.4
pytz==2017.3
six==1.11.0
typing==3.6.2
zeroconf==0.19.1
Then i go further with the stept on the plugin github.
But run the pip3 install -r pip_req.txt command, not the pip3 install gevent msgpack-python python-miio==0.3.1

Code: Select all

# and then:
pip3 install -r pip_req.txt 
# or pip3 install gevent msgpack-python python-miio==0.3.1
After that the sudo ./test.py worked fine. After the test worked, i rebooted and added the vacuum to domoticz.
Tested it and it works beautifull

Watch for it, that you run the pip3 install -r pip_req.txt and not the pip3 install gevent msgpack-python python-miio==0.3.1
In the pip_req.txt there will be a lot more packages installed. When you run that other line, all those package are missing and you need to debug yourself and add them step by step. Tried that yesterday, but is was a pain in the .... :oops:
Again and again tried it, but everytime a different error.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
hoeby
Posts: 528
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by hoeby »

JanvdW wrote: Monday 08 June 2020 23:58 Does no one has an idea how to fix this issue?
Could you check if msgpack is correctly installed?
The error looks to have some connection with that.

Go to the .env environment to check.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Kangooroo42
Posts: 8
Joined: Wednesday 23 October 2019 8:41
Target OS: Windows
Domoticz version:
Contact:

Re: Python plugin: Xiaomi Mi Robot Vacuum

Post by Kangooroo42 »

Hello
Can someone confirm it work with Roborock S6 ??
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest