Page 1 of 1

Installing Plugin won't work

Posted: Wednesday 16 June 2021 17:11
by robinvd
Hello,

Im trying to add my Qlima AC to Domoticz, there is a Plugin that should can do that. I tried multiple times & multiple ways to install the plugin. I did the following:

Code: Select all

login to Raspberry
cd domoticz/plugins
git clone https://github.com/mac-zhou/midea-msmart.git
cd midea-msmart
git clone https://github.com/awalsum/Qlima.git
sudo reboot
the files are present on the filesystem, and I changed the rights with

Code: Select all

chmod +x plugin.py
What am I doing wrong? In the Hardware list there is no Midea or Qlima device.

I'm using Version: 2021.1, on a raspberry PI Model 3B

Re: Installing Plugin won't work

Posted: Wednesday 16 June 2021 18:09
by pipiche
make sure that you have python-dev installed

Re: Installing Plugin won't work

Posted: Wednesday 16 June 2021 19:42
by waltervl
Also follow the troubleshooting instructions for Python plugins https://www.domoticz.com/wiki/Using_Pyt ... leshooting

Is it the first plugin you are trying to install?

I have the same plugin working so I can confirm it works.

Re: Installing Plugin won't work

Posted: Wednesday 16 June 2021 21:00
by robinvd
I now can add the AC via Hardware, but it's not showing up at Devices. The Log is saying this:

Code: Select all

2021-06-16 19:57:15.396 Airco hardware started.
2021-06-16 19:57:15.350 Status: Airco: (Airco) Stop directive received.
2021-06-16 19:57:15.350 Status: Airco: (Airco) Stopping threads.
2021-06-16 19:57:15.350 Status: Airco: (Airco) Exiting work loop.
2021-06-16 19:57:15.350 Status: Airco: (Airco) Stopping python interpreter.
2021-06-16 19:57:15.396 Status: Airco: (Airco) Stopped.
2021-06-16 19:57:15.396 Status: Airco: (Airco) Entering work loop.
2021-06-16 19:57:15.396 Status: Airco: (Airco) Started.
2021-06-16 19:57:15.731 Error: Airco: (Qlima) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Qlima/:/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'.
2021-06-16 19:57:15.731 Error: Airco: (Airco) Module Import failed, exception: 'ModuleNotFoundError'
2021-06-16 19:57:15.731 Error: Airco: (Airco) Module Import failed: ' Name: Crypto.Util.Padding'
2021-06-16 19:57:15.731 Error: Airco: (Airco) Error Line details not available.
2021-06-16 19:57:16.365 Airco hardware started.
2021-06-16 19:57:16.305 Status: Airco: (Airco) Stop directive received.
2021-06-16 19:57:16.305 Status: Airco: (Airco) Stopping threads.
2021-06-16 19:57:16.305 Status: Airco: (Airco) Exiting work loop.
2021-06-16 19:57:16.305 Status: Airco: (Airco) Stopping python interpreter.
2021-06-16 19:57:16.364 Status: Airco: (Airco) Stopped.
2021-06-16 19:57:16.365 Status: Airco: (Airco) Entering work loop.
2021-06-16 19:57:16.365 Status: Airco: (Airco) Started.
2021-06-16 19:57:16.612 Error: Airco: (Qlima) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Qlima/:/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'.
2021-06-16 19:57:16.613 Error: Airco: (Airco) Module Import failed, exception: 'ModuleNotFoundError'
2021-06-16 19:57:16.613 Error: Airco: (Airco) Module Import failed: ' Name: Crypto.Util.Padding'
2021-06-16 19:57:16.613 Error: Airco: (Airco) Error Line details not available.

Re: Installing Plugin won't work

Posted: Wednesday 16 June 2021 21:30
by Thorgal789
Try with

Code: Select all

pip3 install pycryptodome

Re: Installing Plugin won't work

Posted: Thursday 17 June 2021 23:30
by robinvd
First thank you for helping me.
I tried it, but still it doesn't work. Now the log file is showing this:

Code: Select all

2021-06-17 22:28:19.156 AC Woonkamer hardware started.
2021-06-17 22:28:19.112 Status: AC Woonkamer: (AC Woonkamer) Stop directive received.
2021-06-17 22:28:19.112 Status: AC Woonkamer: (AC Woonkamer) Stopping threads.
2021-06-17 22:28:19.112 Status: AC Woonkamer: (AC Woonkamer) Exiting work loop.
2021-06-17 22:28:19.113 Status: AC Woonkamer: (AC Woonkamer) Stopping python interpreter.
2021-06-17 22:28:19.155 Status: AC Woonkamer: (AC Woonkamer) Stopped.
2021-06-17 22:28:19.156 Status: AC Woonkamer: (AC Woonkamer) Entering work loop.
2021-06-17 22:28:19.156 Status: AC Woonkamer: (AC Woonkamer) Started.
2021-06-17 22:28:19.334 Error: AC Woonkamer: (Qlima) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Qlima/:/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'.
2021-06-17 22:28:19.334 Error: AC Woonkamer: (AC Woonkamer) Module Import failed, exception: 'ModuleNotFoundError'
2021-06-17 22:28:19.334 Error: AC Woonkamer: (AC Woonkamer) Module Import failed: ' Name: msmart'
2021-06-17 22:28:19.334 Error: AC Woonkamer: (AC Woonkamer) Error Line details not available.

Re: Installing Plugin won't work

Posted: Thursday 17 June 2021 23:49
by waltervl
There should be an msmart folder with Python files in your Qlima plugin folder.

Re: Installing Plugin won't work

Posted: Friday 18 June 2021 0:32
by robinvd
Hello, it now works and the device is shown in de devices menu. I now have another problem I think.. My Qlima SC5248 is not supported says the Midea-discover command.. Thanks for the help, if there is a way I can get it to work..it would be nice.

Re: Installing Plugin won't work

Posted: Friday 18 June 2021 11:23
by waltervl
It supports the SK102 Wifi Stick and not the SK-103.....

Re: Installing Plugin won't work

Posted: Friday 18 June 2021 11:49
by robinvd
Do you know if I can change the wifi stick on the airco? it's just a usb dongle.. but will it work?

Re: Installing Plugin won't work

Posted: Friday 18 June 2021 11:58
by waltervl
It should work see https://domoticz.com/forum/viewtopic.ph ... a&start=80
But they are hard to get I believe.

Re: Installing Plugin won't work

Posted: Friday 19 May 2023 14:50
by antoniojgc
¿Cual era el problema que tenias?
A mi me pasa lo mismo y aun no lo he podido solucionar

Re: Installing Plugin won't work

Posted: Friday 19 May 2023 17:09
by waltervl
antoniojgc wrote: Friday 19 May 2023 14:50 ¿Cual era el problema que tenias?
A mi me pasa lo mismo y aun no lo he podido solucionar
English please....

Re: Installing Plugin won't work

Posted: Friday 19 May 2023 19:00
by antoniojgc
What was the problem you had?
The same thing happens to me and I haven't been able to solve it yet.

Re: Installing Plugin won't work

Posted: Friday 19 May 2023 22:15
by waltervl
What same problem do you have? The crypto module not found?

Re: Installing Plugin won't work

Posted: Saturday 20 May 2023 15:38
by antoniojgc
I have installed the qlima plugin, but it doesn't show me any devices in the device list. It gives me the error:
2023-05-19 18:57:33354 Error: aire: (Qlima) failed to load 'plugin*py', Python Path used was '/home/pi/domoticz/plugins/Qlima/:/usr/lib/python39*zip:/usr/lib/python3*9:/usr/lib/python3*9/lib-dynload:/usr/local/lib/python3*9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3*9/dist-packages'.
2023-05-19 18:57:33356 Error: aire: Traceback (most recent call last):
2023-05-19 18:57:33356 Error: aire: File "/home/pi/domoticz/plugins/Qlima/plugin*py", line 42, in <module>
2023-05-19 18:57:33356 Error: aire: from msmart*device import air_conditioning_device as ac
2023-05-19 18:57:33356 Error: aire: ImportError: cannot import name 'air_conditioning_device' from 'msmart*device' (/home/pi/domoticz/plugins/Qlima/msmart/device/__init__*py)

Re: Installing Plugin won't work

Posted: Saturday 20 May 2023 15:39
by antoniojgc
Note: I have changed some points, because it would not let me send the post with the original text.

Re: Installing Plugin won't work

Posted: Saturday 20 May 2023 15:51
by waltervl
Seems that python msmart module has been changed and is not compatible with the plugin code anymore. Did you check the GitHub repository of the plugin? Perhaps there are similar issues...

Re: Installing Plugin won't work

Posted: Monday 22 May 2023 8:56
by waltervl
There are also various version of this plugin, check topic viewtopic.php?p=293590