Python Plugin: Broadlink RM2 V3

Python and python framework

Moderator: leecollings

zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

@Phantom
can you show the content of /usr/lib/python3.5 ?
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

Sure, here is it:

Code: Select all

pi@raspberrypi:/usr/lib/python3.5 $ ls
abc.py                           datetime.py         lib2to3                   __pycache__       symbol.py
aifc.py                          dbm                 lib-dynload               pyclbr.py         symtable.py
antigravity.py                   decimal.py          LICENSE.txt               py_compile.py     _sysconfigdata.py
argparse.py                      difflib.py          linecache.py              _pydecimal.py     sysconfig.py
ast.py                           dis.py              locale.py                 pydoc_data        tabnanny.py
asynchat.py                      distutils           logging                   pydoc.py          tarfile.py
asyncio                          doctest.py          lzma.py                   _pyio.py          telnetlib.py
asyncore.py                      dummy_threading.py  macpath.py                queue.py          tempfile.py
base64.py                        _dummy_thread.py    macurl2path.py            quopri.py         test
bdb.py                           email               mailbox.py                random.py         textwrap.py
binhex.py                        encodings           mailcap.py                reprlib.py        this.py
bisect.py                        enum.py             _markupbase.py            re.py             _threading_local.py
_bootlocale.py                   filecmp.py          mimetypes.py              rlcompleter.py    threading.py
broadlink                        fileinput.py        modulefinder.py           runpy.py          timeit.py
bz2.py                           fnmatch.py          multiprocessing           sched.py          tkinter
calendar.py                      formatter.py        netrc.py                  selectors.py      tokenize.py
cgi.py                           fractions.py        nntplib.py                shelve.py         token.py
cgitb.py                         ftplib.py           ntpath.py                 shlex.py          traceback.py
chunk.py                         functools.py        nturl2path.py             shutil.py         tracemalloc.py
cmd.py                           __future__.py       numbers.py                signal.py         trace.py
codecs.py                        genericpath.py      opcode.py                 _sitebuiltins.py  tty.py
codeop.py                        getopt.py           operator.py               sitecustomize.py  turtle.py
code.py                          getpass.py          optparse.py               site.py           types.py
collections                      gettext.py          os.py                     smtpd.py          typing.py
_collections_abc.py              glob.py             _osx_support.py           smtplib.py        unittest
colorsys.py                      gzip.py             pathlib.py                sndhdr.py         urllib
_compat_pickle.py                hashlib.py          pdb.py                    socket.py         uuid.py
compileall.py                    heapq.py            __phello__.foo.py         socketserver.py   uu.py
_compression.py                  hmac.py             pickle.py                 sqlite3           venv
concurrent                       html                pickletools.py            sre_compile.py    warnings.py
config-3.5m-arm-linux-gnueabihf  http                pipes.py                  sre_constants.py  wave.py
configparser.py                  idlelib             pkgutil.py                sre_parse.py      weakref.py
contextlib.py                    imaplib.py          plat-arm-linux-gnueabihf  ssl.py            _weakrefset.py
copy.py                          imghdr.py           platform.py               statistics.py     webbrowser.py
copyreg.py                       importlib           plistlib.py               stat.py           wsgiref
cProfile.py                      imp.py              poplib.py                 stringprep.py     xdrlib.py
crypto                           inspect.py          posixpath.py              string.py         xml
crypt.py                         io.py               pprint.py                 _strptime.py      xmlrpc
csv.py                           ipaddress.py        profile.py                struct.py         zipapp.py
ctypes                           json                pstats.py                 subprocess.py     zipfile.py
curses                           keyword.py          pty.py                    sunau.py
pi@raspberrypi:/usr/lib/python3.5 $
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

ok, looks all is there.. and do you have read the wiki and follow all instructions ?

http://www.domoticz.com/wiki/Using_Python_plugins
viewtopic.php?f=65&t=16116&p=119747
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

Thanks, the problem was that i installed it on python 3.4 and then updated to 3.5 when i got the device, so after doing all the step again the plugin starts now.

Code: Select all

2017-06-29 11:20:55.890 (Remote M3 mini) Initialized version 3.0.0, author 'zak45'
BUt now i get this message:

Code: Select all

2017-06-29 11:22:05.461 Error: (Remote M3 mini) Error Connecting to Broadlink device....
i dubbel checked the ip address and the mac and those are correct, i can control the device with the app.
Could it be because it is the "Broadlink RM Mini 3 Black Bean"?

Is there a way i can check something?
User avatar
rafal
Posts: 22
Joined: Sunday 13 March 2016 12:45
Target OS: Windows
Domoticz version: latest
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by rafal »

Hi


i did some test on virtual machine and...

under Windows10 64bit the best way to get BroadlinkRM2 with kodi is:

1) Domoticz V3.8xxxx
2) Install python 3.4.0 (3.5, 3.6.1. doesnt't work) https://www.python.org/downloads/release/python-340/ check "add python.exe.to path"
3) Install pyscrypto-2.6.1.win32-py3.4 with admin right https://www.dropbox.com/sh/htyghey9e402 ... 3H36a?dl=0
4)Install setup.exe. https://www.dropbox.com/sh/htyghey9e402 ... 3H36a?dl=0 with admin right

DONE!
Attachments
do.jpg
do.jpg (105.68 KiB) Viewed 4045 times
py.jpg
py.jpg (69.49 KiB) Viewed 4045 times
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

i'm becoming crazy.
Install same package and configuration of Rafal and now i have same problem of your previus post!

error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\andre\\AppData\\Local\\Temp\\pip_build_andre\\pycrypto\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\andre\AppData\Local\Temp\pip-swj86p1y-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\andre\AppData\Local\Temp\pip_build_andre\pycrypto
Storing debug log for failure in C:\Users\andre\pip\pip.log
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

And reinstall python 3.5.3 setup work but

2017-06-29 16:00:40.454 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.

:evil: :evil: :evil: :evil:
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Phantom wrote:Thanks, the problem was that i installed it on python 3.4 and then updated to 3.5 when i got the device, so after doing all the step again the plugin starts now.
Is there a way i can check something?
Just install another HW in Domoticz and do a discovery to see if the plugin retreive your device.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Andree wrote:i'm becoming crazy.
Install same package and configuration of Rafal and now i have same problem of your previus post!

error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\andre\\AppData\\Local\\Temp\\pip_build_andre\\pycrypto\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\andre\AppData\Local\Temp\pip-swj86p1y-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\andre\AppData\Local\Temp\pip_build_andre\pycrypto
Storing debug log for failure in C:\Users\andre\pip\pip.log
Error look likes related to pycrypto. You should found in dropbox necessary files to install, depend of python version.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Andree wrote:And reinstall python 3.5.3 setup work but

2017-06-29 16:00:40.454 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.

:evil: :evil: :evil: :evil:
Are you sure you have checked : install for all users ???
I would also reboot after all is done.
Caribou
Posts: 9
Joined: Thursday 20 April 2017 17:35
Target OS: Linux
Domoticz version:
Location: Bordeaux
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Caribou »

Hi zak45,

I have an issue with your Broadlink plugin, even with the v3 and previous version.
When this plugin is activated, my domoticz crashes randomly daily.
When this plugin is desactivated, my domoticz runs perfectly.

Here are some informations to help you to help me :)
My domoticz version:
Spoiler: show
Version: 3.8025
Build Hash: 37b51336
Compile Date: 2017-06-28 06:32:47
3 crash logs:
Spoiler: show
2017-06-27 16:33:45.717 XiaomiGateway: stopped
2017-06-27 16:33:45.746 (Broadlink RM2) Calling message handler 'onStop'.
2017-06-27 16:33:45.746 (Broadlink RM2) onStop called
2017-06-27 16:33:45.847 (Broadlink RM2) Exiting work loop...
2017-06-27 16:33:45.847 (Broadlink RM2) Stopped.
2017-06-27 16:33:45.868 Error: Domoticz received fatal signal 6 !...
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz() [0x5d36e8]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_Z14signal_handleri+0x50) [0x5d3790]
2017-06-27 16:33:45.875 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f9986dea390]
2017-06-27 16:33:45.875 Error: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f99860ae428]
2017-06-27 16:33:45.875 Error: /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f99860b002a]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x155) [0xb328f5]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN10__cxxabiv111__terminateEPFvvE+0x6) [0xae7886]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz() [0xae78b3]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz() [0xae7e42]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN5boost15throw_exceptionINS_10lock_errorEEEvRKT_+0x114) [0x5d0494]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN5boost5mutex4lockEv+0x46) [0x5f7a56]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins7CPlugin16IoThreadRequiredEv+0x1a) [0x8e278a]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins13CPluginSystem7Do_WorkEv+0x115) [0x8eb925]
2017-06-27 16:33:45.875 Error: /home/caribou/domoticz/domoticz() [0xa07c4a]
2017-06-27 16:33:45.875 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f9986de06ba]
2017-06-27 16:33:45.875 Error: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f99861803dd]
Spoiler: show
2017-06-28 04:04:38.122 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-28 04:05:08.183 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-28 04:05:38.240 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-28 04:06:08.350 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-28 04:06:08.351 Error: Domoticz received fatal signal 6 !...
2017-06-28 04:06:08.371 Error: /home/caribou/domoticz/domoticz() [0x5d36e8]
2017-06-28 04:06:08.371 Error: /home/caribou/domoticz/domoticz(_Z14signal_handleri+0x50) [0x5d3790]
2017-06-28 04:06:08.371 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f0d949fb390]
2017-06-28 04:06:08.371 Error: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f0d93cbf428]
2017-06-28 04:06:08.371 Error: /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f0d93cc102a]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(Py_FatalError+0x3f) [0x7f0d8f3bf6df]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_Py_CheckRecursiveCall+0x90) [0x7f0d8f38b190]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x57) [0x7f0d8f3528d7]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_PyObject_CallMethodId+0x124) [0x7f0d8f34e334]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x1e664d) [0x7f0d8f3bf64d]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(Py_FatalError+0x1a8) [0x7f0d8f3bf848]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_Py_CheckRecursiveCall+0x90) [0x7f0d8f38b190]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x94c) [0x7f0d8f38c47c]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f0d8f423c0c]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x62d9) [0x7f0d8f391e09]
2017-06-28 04:06:08.371 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f0d8f423c0c]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f0d8f423ce3]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2b95) [0x7f0d8f2abb95]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f0d8f3528ee]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x2d8b) [0x7f0d8f38e8bb]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f0d8f423c0c]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f0d8f423ce3]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2b95) [0x7f0d8f2abb95]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f0d8f3528ee]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x225a4c) [0x7f0d8f3fea4c]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f0d8f3528ee]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x7e279) [0x7f0d8f257279]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x83276) [0x7f0d8f25c276]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f0d8f3528ee]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x2d8b) [0x7f0d8f38e8bb]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f0d8f423c0c]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x62d9) [0x7f0d8f391e09]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f0d8f393509]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f0d8f393509]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f0d8f393509]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f0d8f423c0c]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f0d8f423ce3]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2a98) [0x7f0d8f2aba98]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f0d8f3528ee]
2017-06-28 04:06:08.372 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_CallObjectWithKeywords+0x47) [0x7f0d8f422897]
2017-06-28 04:06:08.372 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins7CPlugin8CallbackESsPv+0xb9) [0x8e17b9]
2017-06-28 04:06:08.372 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins13CCallbackBase8CallbackEP7_object+0x42) [0x8e9022]
2017-06-28 04:06:08.372 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins13CPluginSystem7Do_WorkEv+0x37c) [0x8ebb8c]
2017-06-28 04:06:08.372 Error: /home/caribou/domoticz/domoticz() [0xa07c4a]
2017-06-28 04:06:08.372 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f0d949f16ba]
2017-06-28 04:06:08.372 Error: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f0d93d913dd]
Spoiler: show
2017-06-29 02:48:38.178 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-29 02:49:08.319 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-29 02:49:38.369 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-29 02:50:08.441 (Broadlink RM2) Calling message handler 'onHeartbeat'.
2017-06-29 02:50:08.450 Error: Domoticz received fatal signal 6 !...
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz() [0x5d36e8]
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz(_Z14signal_handleri+0x50) [0x5d3790]
2017-06-29 02:50:08.455 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f9a7b0a7390]
2017-06-29 02:50:08.455 Error: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f9a7a36b428]
2017-06-29 02:50:08.455 Error: /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f9a7a36d02a]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(Py_FatalError+0x3f) [0x7f9a75a6b6df]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_Py_CheckRecursiveCall+0x90) [0x7f9a75a37190]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x57) [0x7f9a759fe8d7]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_PyObject_CallMethodId+0x124) [0x7f9a759fa334]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x1e664d) [0x7f9a75a6b64d]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(Py_FatalError+0x1a8) [0x7f9a75a6b848]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(_Py_CheckRecursiveCall+0x90) [0x7f9a75a37190]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x94c) [0x7f9a75a3847c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f9a75acfc0c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x62d9) [0x7f9a75a3de09]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f9a75acfc0c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f9a75acfce3]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2b95) [0x7f9a75957b95]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f9a759fe8ee]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x2d8b) [0x7f9a75a3a8bb]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f9a75acfc0c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f9a75acfce3]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2b95) [0x7f9a75957b95]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f9a759fe8ee]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x225a4c) [0x7f9a75aaaa4c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f9a759fe8ee]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x7e279) [0x7f9a75903279]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x83276) [0x7f9a75908276]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f9a759fe8ee]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x2d8b) [0x7f9a75a3a8bb]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f9a75acfc0c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x62d9) [0x7f9a75a3de09]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f9a75a3f509]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f9a75a3f509]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalFrameEx+0x79d9) [0x7f9a75a3f509]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0x24ac0c) [0x7f9a75acfc0c]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_EvalCodeEx+0x23) [0x7f9a75acfce3]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(+0xd2a98) [0x7f9a75957a98]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyObject_Call+0x6e) [0x7f9a759fe8ee]
2017-06-29 02:50:08.455 Error: /usr/lib/x86_64-linux-gnu/libpython3.5m.so(PyEval_CallObjectWithKeywords+0x47) [0x7f9a75ace897]
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins7CPlugin8CallbackESsPv+0xb9) [0x8e1759]
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins13CCallbackBase8CallbackEP7_object+0x42) [0x8e8fc2]
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz(_ZN7Plugins13CPluginSystem7Do_WorkEv+0x37c) [0x8ebb2c]
2017-06-29 02:50:08.455 Error: /home/caribou/domoticz/domoticz() [0xa07bea]
2017-06-29 02:50:08.455 Error: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7f9a7b09d6ba]
2017-06-29 02:50:08.455 Error: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f9a7a43d3dd]
Any idea to solve this issue? Except that it's working perfectly with my 433Mhz sockets :)
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

@caribou
woow... looks like python problem...
You're in Linux so ...Do you have installed the python-dev as explain on this forum ???
I would try another plugin just to see what's happened.. and maybe open a bug !!!
I would not be able to provide any help in this case... sorry.
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

zak45 wrote:
Phantom wrote:Thanks, the problem was that i installed it on python 3.4 and then updated to 3.5 when i got the device, so after doing all the step again the plugin starts now.
Is there a way i can check something?
Just install another HW in Domoticz and do a discovery to see if the plugin retreive your device.
Tried it, sadly the same result.
Spoiler: show
2017-06-29 19:57:35.202 (Remote RM3 mini) Initialized version 3.0.0, author 'zak45'
2017-06-29 19:57:35.257 (Remote RM3 mini) Debug log level set to: 'true'.
2017-06-29 19:57:35.257 (Remote RM3 mini) Creating device 'Command'.
2017-06-29 19:57:35.260 (Remote RM3 mini) Creating device 'Remote'.
2017-06-29 19:57:35.261 (Remote RM3 mini) Creating device 'Import'.
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Name':'Remote RM3 mini'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode3':'no'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Port':'0'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Key':'BroadlinkRM2'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode4':'yes'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode2':'/home/pi/broadlink/ini'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Version':'3.0.0'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Author':'zak45'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode6':'Debug'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Address':'192.168.150.143'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'HardwareID':'9'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode5':'9000'
2017-06-29 19:57:35.264 (Remote RM3 mini) 'Mode1':'34ea34b302a5'
2017-06-29 19:57:35.264 (Remote RM3 mini) Device count: 3
2017-06-29 19:57:35.264 (Remote RM3 mini) Device: 1 - ID: 126, Name: 'Remote RM3 mini - Command', nValue: 0, sValue: ''
2017-06-29 19:57:35.264 (Remote RM3 mini) Device ID: '126'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Command'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device nValue: 0
2017-06-29 19:57:35.265 (Remote RM3 mini) Device sValue: ''
2017-06-29 19:57:35.265 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 19:57:35.265 (Remote RM3 mini) Device: 254 - ID: 127, Name: 'Remote RM3 mini - Remote', nValue: 0, sValue: ''
2017-06-29 19:57:35.265 (Remote RM3 mini) Device ID: '127'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Remote'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device nValue: 0
2017-06-29 19:57:35.265 (Remote RM3 mini) Device sValue: ''
2017-06-29 19:57:35.265 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 19:57:35.265 (Remote RM3 mini) Device: 255 - ID: 128, Name: 'Remote RM3 mini - Import', nValue: 0, sValue: ''
2017-06-29 19:57:35.265 (Remote RM3 mini) Device ID: '128'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Import'
2017-06-29 19:57:35.265 (Remote RM3 mini) Device nValue: 0
2017-06-29 19:57:35.265 (Remote RM3 mini) Device sValue: ''
2017-06-29 19:57:35.265 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 19:57:35.265 (Remote RM3 mini - Import) Updating device from 0:'' to have values 0:'Off'.
2017-06-29 19:57:35.271 Python: Changed: ID: 128 Name: Remote RM3 mini - Import, Type: 244, subType: 62, switchType: 18, s_value: Off, n_value: 0, n_value_string: Off, last_update_string: 2017-06-29 19:57:35
2017-06-29 19:57:35.271 Python: Number of user_variables: 0
2017-06-29 19:57:35.277 (Remote RM3 mini) Update 0:'Off' (Remote RM3 mini - Import)
2017-06-29 19:57:35.277 (Remote RM3 mini) Connecting to: 192.168.150.143:34ea34b302a5
2017-06-29 19:57:35.289 Error: (Remote RM3 mini) Error Connecting to Broadlink device....
2017-06-29 19:57:35.289 (Remote RM3 mini - Command) Updating device from 0:'' to have values 0:'Off'.
2017-06-29 19:57:35.295 Python: Changed: ID: 126 Name: Remote RM3 mini - Command, Type: 244, subType: 62, switchType: 18, s_value: Off, n_value: 0, n_value_string: Off, last_update_string: 2017-06-29 19:57:35
2017-06-29 19:57:35.295 Python: Number of user_variables: 0
2017-06-29 19:57:35.301 (Remote RM3 mini) Update 0:'Off' (Remote RM3 mini - Command)
2017-06-29 19:57:35.301 (Remote RM3 mini) Device Number begin to : 1
2017-06-29 19:57:35.301 (Remote RM3 mini) No ini file :/home/pi/broadlink/ini/remote/plugin_remote_9.ini
2017-06-29 19:57:35.301 (Remote RM3 mini) Custom Commands for Remote not managed
2017-06-29 19:57:35.301 (Remote RM3 mini) Heartbeat interval set to: 30.
2017-06-29 19:57:44.716 (Remote RM3 mini) Calling message handler 'onHeartbeat'.
2017-06-29 19:57:53.654 Hardware Monitor: Fetching data (System sensors)
2017-06-29 19:57:53.669 Python: Changed: ID: 98 Name: Memory Usage, Type: 243, subType: 6, switchType: 0, s_value: 8.97, n_value: 0, n_value_string: 8.97, last_update_string: 2017-06-29 19:57:53
Spoiler: show
2017-06-29 20:05:09.713 (Remote RM3 mini) Initialized version 3.0.0, author 'zak45'
2017-06-29 20:05:09.719 (Remote RM3 mini) Debug log level set to: 'true'.
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Name':'Remote RM3 mini'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Mode3':'no'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Port':'0'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Key':'BroadlinkRM2'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Mode4':'yes'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Mode2':'/home/pi/broadlink/ini'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Version':'3.0.0'
2017-06-29 20:05:09.719 (Remote RM3 mini) 'Author':'zak45'
2017-06-29 20:05:09.720 (Remote RM3 mini) 'Mode6':'Debug'
2017-06-29 20:05:09.720 (Remote RM3 mini) 'Address':'127.0.0.1'
2017-06-29 20:05:09.720 (Remote RM3 mini) 'HardwareID':'9'
2017-06-29 20:05:09.720 (Remote RM3 mini) 'Mode5':'9000'
2017-06-29 20:05:09.720 (Remote RM3 mini) 'Mode1':'000000000000'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device count: 3
2017-06-29 20:05:09.720 (Remote RM3 mini) Device: 1 - ID: 126, Name: 'Remote RM3 mini - Command', nValue: 0, sValue: 'Off'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device ID: '126'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Command'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device nValue: 0
2017-06-29 20:05:09.720 (Remote RM3 mini) Device sValue: 'Off'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 20:05:09.720 (Remote RM3 mini) Device: 254 - ID: 127, Name: 'Remote RM3 mini - Remote', nValue: 0, sValue: ''
2017-06-29 20:05:09.720 (Remote RM3 mini) Device ID: '127'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Remote'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device nValue: 0
2017-06-29 20:05:09.720 (Remote RM3 mini) Device sValue: ''
2017-06-29 20:05:09.720 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 20:05:09.720 (Remote RM3 mini) Device: 255 - ID: 128, Name: 'Remote RM3 mini - Import', nValue: 0, sValue: 'Off'
2017-06-29 20:05:09.720 (Remote RM3 mini) Device ID: '128'
2017-06-29 20:05:09.721 (Remote RM3 mini) Device Name: 'Remote RM3 mini - Import'
2017-06-29 20:05:09.721 (Remote RM3 mini) Device nValue: 0
2017-06-29 20:05:09.721 (Remote RM3 mini) Device sValue: 'Off'
2017-06-29 20:05:09.721 (Remote RM3 mini) Device LastLevel: 0
2017-06-29 20:05:09.721 (Remote RM3 mini) Connecting to: 127.0.0.1:000000000000
2017-06-29 20:05:09.733 Error: (Remote RM3 mini) Error Connecting to Broadlink device....
2017-06-29 20:05:09.733 (Remote RM3 mini) Device Number begin to : 1
2017-06-29 20:05:09.738 (Remote RM3 mini) No ini file :/home/pi/broadlink/ini/remote/plugin_remote_9.ini
2017-06-29 20:05:09.738 (Remote RM3 mini) Custom Commands for Remote not managed
2017-06-29 20:05:09.738 (Remote RM3 mini) Heartbeat interval set to: 30.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

@Phantom
according your log...
you have used the same Hardware (ID 9) and changed parameters...

please, create another HW using the plugin and click on the discover device to see if it found something.
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

I deleted the old one and made a new one, that is why it has the same nr.

i checked the logging when running the discover and this is what i found:

Code: Select all

2017-06-29 22:59:33.608 User: Admin initiated a switch command (126/RM3 Mini - Discover/On)
2017-06-29 22:59:33.627 (RM3 Mini) Calling message handler 'onCommand'.
2017-06-29 22:59:33.628 (RM3 Mini) onCommand called for Unit 1: Parameter 'On', Level: 0 , Connected : False
2017-06-29 22:59:33.628 (RM3 Mini) All plugin system is on pause for 5s...
2017-06-29 22:59:36.615 Hardware Monitor: Fetching data (System sensors)
2017-06-29 22:59:38.635 (RM3 Mini) Found 1 broadlink devices
2017-06-29 22:59:38.647 Error: (RM3 Mini) 'onCommand' failed 'TypeError':'sequence item 0: expected str instance, bytes found'.
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 210 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 397 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function Discover
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 203 in /usr/lib/python3.5/broadlink/__init__.py, function auth
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 258 in /usr/lib/python3.5/broadlink/__init__.py, function send_packet
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 162 in /usr/lib/python3.5/broadlink/__init__.py, function encrypt_pyaes
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Phantom wrote:I deleted the old one and made a new one, that is why it has the same nr.
----> Line 397 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function Discover
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 203 in /usr/lib/python3.5/broadlink/__init__.py, function auth
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 258 in /usr/lib/python3.5/broadlink/__init__.py, function send_packet
2017-06-29 22:59:38.647 Error: (RM3 Mini) ----> Line 162 in /usr/lib/python3.5/broadlink/__init__.py, function encrypt_pyaes[/code]
Ok, looks like the broadlink module had some problem. If you have used one on the dropbox, please forget it.
Uninstall broadlink, and re-install it using pip3 install broadlink plus all extra step for linux
User avatar
rafal
Posts: 22
Joined: Sunday 13 March 2016 12:45
Target OS: Windows
Domoticz version: latest
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by rafal »

Andree wrote:i'm becoming crazy.
Install same package and configuration of Rafal and now i have same problem of your previus post!

error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\andre\\AppData\\Local\\Temp\\pip_build_andre\\pycrypto\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\andre\AppData\Local\Temp\pip-swj86p1y-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\andre\AppData\Local\Temp\pip_build_andre\pycrypto
Storing debug log for failure in C:\Users\andre\pip\pip.log

Hi

Uninstall ALL version of python, then restart windows and with admin right install python 3.4.0 then with admin right pycrypto and setup. If dosen't work try do the same configuration on different windows or machine
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

@caribou
looks like same problem as you :
viewtopic.php?f=6&t=17905
User avatar
rafal
Posts: 22
Joined: Sunday 13 March 2016 12:45
Target OS: Windows
Domoticz version: latest
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by rafal »

zak45

Thank You for Broadlink plugin for windows and Your hard work! :)
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

rafal wrote:zak45

Thank You for Broadlink plugin for windows and Your hard work! :)
Thanks a lot Rafal... really appreciate :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest