Python Plugin: Broadlink RM2 V3

Python and python framework

Moderator: leecollings

Post Reply
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 »

@srill
Does it work with e-control ?
srill
Posts: 6
Joined: Tuesday 29 August 2017 15:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by srill »

zak45 wrote: Tuesday 29 August 2017 22:32 @srill
Does it work with e-control ?
Yes no problem with e-control
sennheiser
Posts: 11
Joined: Wednesday 16 August 2017 10:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by sennheiser »

@zak45

Thank you so much for this informations and your help.

I knew the plugin command iSamsung but not this one. I will look at it.
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 »

srill wrote: Wednesday 30 August 2017 9:16
zak45 wrote: Tuesday 29 August 2017 22:32 @srill
Does it work with e-control ?
Yes no problem with e-control
Let's try the import feature.
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Sjonnie2017 »

Hi All,

Small problem with the import feature here :(

I got the plugin working and copied the 3 json files over to the folder import as shown below:

Code: Select all

pi@RPi3:~/domoticz/plugins/BroadlinkRM2/import $ ls -al
total 140
drwxr-xr-x 2 pi pi  4096 Sep 11 19:15 .
drwxr-xr-x 4 pi pi  4096 Sep 11 19:10 ..
-rwxr-xr-x 1 pi pi 28355 Jan  1  1970 jsonButton
-rwxr-xr-x 1 pi pi 99402 Jan  1  1970 jsonIrCode
-rwxr-xr-x 1 pi pi  1057 Jan  1  1970 jsonSubIr
pi@RPi3:~/domoticz/plugins/BroadlinkRM2/import $ 
I tried the Generate option on the switch and the Import option but the simulate.txt or accompanying ini files are not created. I changed permissions on the files but that did not help.

Any tips or help greatly appreciated!

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
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 »

@Sjonnie2017
the import folder need to be :
<<Folder to store ini files>>/import

if this is the case, put plugin in debug mode and show us the Domoticz log when you push 'generate'
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Sjonnie2017 »

zak45 wrote:@Sjonnie2017
the import folder need to be :
<<Folder to store ini files>>/import

if this is the case, put plugin in debug mode and show us the Domoticz log when you push 'generate'
Hi Zak,

Tx for your reply! I will give it a try tomorrow and let you know.

Greetz,

Sjonnie

Verstuurd vanaf mijn YOGA Tablet 2-1050F met Tapatalk

ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
kluczus
Posts: 24
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by kluczus »

Hi,
This is my first post so I want to say hello :-)
I was thinking about Broadlink RM2 in my setup and have a question.
I want something like this:
- push a button on harmony remote control,
- broadlink will recive a code from remote, send data to domoticz,
- domoticz will send data to broadlink to switch on a 433MHz sockets and after a few second will turn on, lets presume, tv by infrared.

Is it possible to do this with this plugin ? :-)
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!
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 »

kluczus wrote: Tuesday 12 September 2017 14:49 - push a button on harmony remote control,
- broadlink will recive a code from remote, send data to domoticz,
- domoticz will send data to broadlink to switch on a 433MHz sockets and after a few second will turn on, lets presume, tv by infrared.
in fact, this is not related to the plugin...
but Broadlink is similar to your harmony remote control (more or less), this device do not listen continiously, only during learn process.

EDIT:
- broadlink will recive a code from remote, send data to domoticz,

For one of my project ...this has been solved by using an ESP8266 + IR receiver
Last edited by zak45 on Tuesday 12 September 2017 17:51, edited 1 time in total.
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Sjonnie2017 »

zak45 wrote: Monday 11 September 2017 20:37 @Sjonnie2017
the import folder need to be :
<<Folder to store ini files>>/import

if this is the case, put plugin in debug mode and show us the Domoticz log when you push 'generate'
Hi Zak,

Changed folder location and the import worked.

Now I have some 150 switches to choose from (4 simple remotes :o ). Every button has it's own switch in Domoticz. Not every description is clear but that's a Broadlink problem, not your plugins.

This will do for my intended scenario :) Tx!

Greetz,

Sjonnie

EDIT: Unfortunately none of the buttons/switches work. The eControl app functions properly. I will try the learn function and let you know.

EDIT2: I forgot to mention that I get an error every 5 minutes:

Code: Select all

2017-09-12 19:20:12.987 Error: (Broadlink) Error Connecting to Broadlink device....
Needless to say the device is online and functioning ;)
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
kluczus
Posts: 24
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by kluczus »

[/quote]

EDIT:
- broadlink will recive a code from remote, send data to domoticz,

For one of my project ...this has been solved by using an ESP8266 + IR receiver
[/quote]

Thank you for the idea :-) I will connect ir receiver to raspberry .
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!
reza
Posts: 112
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by reza »

i have this error :

Code: Select all

pi@raspberrypi:~ $ pip3 install broadlink
Downloading/unpacking broadlink
  Downloading broadlink-0.5.tar.gz
  Running setup.py (path:/tmp/pip-build-kjrvrc6j/broadlink/setup.py) egg_info for package broadlink

Downloading/unpacking pycrypto==2.6.1 (from broadlink)
  Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded
  Running setup.py (path:/tmp/pip-build-kjrvrc6j/pycrypto/setup.py) egg_info for package pycrypto

Installing collected packages: broadlink, pycrypto
  Running setup.py install for broadlink

    error: could not create '/usr/local/lib/python3.4/dist-packages/broadlink': Permission denied
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-kjrvrc6j/broadlink/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kv8mu0ga-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib

creating build/lib/broadlink

copying broadlink/__init__.py -> build/lib/broadlink

running egg_info

writing broadlink.egg-info/PKG-INFO

writing dependency_links to broadlink.egg-info/dependency_links.txt

writing top-level names to broadlink.egg-info/top_level.txt

writing requirements to broadlink.egg-info/requires.txt

warning: manifest_maker: standard file '-c' not found



reading manifest file 'broadlink.egg-info/SOURCES.txt'

writing manifest file 'broadlink.egg-info/SOURCES.txt'

running install_lib

creating /usr/local/lib/python3.4/dist-packages/broadlink

error: could not create '/usr/local/lib/python3.4/dist-packages/broadlink': Permission denied

----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-kjrvrc6j/broadlink/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kv8mu0ga-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-kjrvrc6j/broadlink
Storing debug log for failure in /home/pi/.pip/pip.log

kluczus
Posts: 24
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by kluczus »

You dont have permissions. Run command with sudo

Code: Select all

sudo pip3 install broadlink
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!
TigroEHOT
Posts: 14
Joined: Wednesday 03 August 2016 12:14
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by TigroEHOT »

Hello!
Guys, I really need help. I've installed new stretch, domotics and broadlink plugin. But no matter what I do it doen't work for me. I followed the wiki directly, step by step, but still I get this in the log.

Code: Select all

2017-09-13 20:59:35.769 (BroadlinkRM2) Initialized version 3.0.0, author 'zak45'
2017-09-13 20:59:35.775 (BroadlinkRM2) Debug log level set to: 'true'.
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode1':'000000000000'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode2':'/home/pi/domoticz/plugins/BroadlinkRM2'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Port':'0'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Name':'BroadlinkRM2'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'HardwareID':'17'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode4':'yes'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Address':'127.0.0.1'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Key':'BroadlinkRM2'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Author':'zak45'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode3':'yes'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode5':'9000'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Mode6':'Debug'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'Version':'3.0.0'
2017-09-13 20:59:35.776 (BroadlinkRM2) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2017-09-13 20:59:35.776 (BroadlinkRM2) Device count: 4
2017-09-13 20:59:35.777 (BroadlinkRM2) Device: 1 - ID: 252, Name: 'BroadlinkRM2 - Discover', nValue: 0, sValue: 'Off'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device ID: '252'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Discover'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device nValue: 0
2017-09-13 20:59:35.777 (BroadlinkRM2) Device sValue: 'Off'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 20:59:35.777 (BroadlinkRM2) Device: 2 - ID: 253, Name: 'BroadlinkRM2 - Temp', nValue: 0, sValue: ''
2017-09-13 20:59:35.777 (BroadlinkRM2) Device ID: '253'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Temp'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device nValue: 0
2017-09-13 20:59:35.777 (BroadlinkRM2) Device sValue: ''
2017-09-13 20:59:35.777 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 20:59:35.777 (BroadlinkRM2) Device: 254 - ID: 254, Name: 'BroadlinkRM2 - Remote', nValue: 0, sValue: ''
2017-09-13 20:59:35.777 (BroadlinkRM2) Device ID: '254'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Remote'
2017-09-13 20:59:35.777 (BroadlinkRM2) Device nValue: 0
2017-09-13 20:59:35.777 (BroadlinkRM2) Device sValue: ''
2017-09-13 20:59:35.778 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 20:59:35.778 (BroadlinkRM2) Device: 255 - ID: 259, Name: 'BroadlinkRM2 - Import', nValue: 0, sValue: 'Off'
2017-09-13 20:59:35.778 (BroadlinkRM2) Device ID: '259'
2017-09-13 20:59:35.778 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Import'
2017-09-13 20:59:35.778 (BroadlinkRM2) Device nValue: 0
2017-09-13 20:59:35.778 (BroadlinkRM2) Device sValue: 'Off'
2017-09-13 20:59:35.778 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 20:59:35.778 (BroadlinkRM2) Connecting to: 127.0.0.1:000000000000
2017-09-13 20:59:35.791 Error: (BroadlinkRM2) Error Connecting to Broadlink device....
2017-09-13 20:59:35.791 (BroadlinkRM2) Device Number begin to : 2
2017-09-13 20:59:35.797 (BroadlinkRM2) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_17.ini
2017-09-13 20:59:35.797 (BroadlinkRM2) Custom Commands for Remote not managed
2017-09-13 20:59:35.798 (BroadlinkRM2) Heartbeat interval set to: 30.
2017-09-13 20:59:45.313 (BroadlinkRM2) Calling message handler 'onHeartbeat'.
Next, if I click on the discovery device it doesn't come on, in the log I see:

Code: Select all

2017-09-13 21:01:44.885 User: Admin initiated a switch command (252/BroadlinkRM2 - Discover/On)
2017-09-13 21:01:44.891 (BroadlinkRM2) Calling message handler 'onCommand'.
2017-09-13 21:01:44.891 (BroadlinkRM2) onCommand called for Unit 1: Parameter 'On', Level: 0 , Connected : False
2017-09-13 21:01:44.891 (BroadlinkRM2) All plugin system is on pause for 5s...
2017-09-13 21:01:49.897 (BroadlinkRM2) Found 1 broadlink devices
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) 'onCommand' failed 'TypeError':'sequence item 0: expected str instance, bytes found'.
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) ----> Line 210 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) ----> Line 397 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function Discover
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) ----> Line 203 in /usr/lib/python3.5/broadlink/__init__.py, function auth
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) ----> Line 258 in /usr/lib/python3.5/broadlink/__init__.py, function send_packet
2017-09-13 21:01:49.909 Error: (BroadlinkRM2) ----> Line 162 in /usr/lib/python3.5/broadlink/__init__.py, function encrypt_pyaes
2017-09-13 21:01:49.960 (BroadlinkRM2) Calling message handler 'onHeartbeat'.
I know, I've asked a couple of times, but I have no idea what is wrong. The install procedure goes smoothly, all the directories are created, libs copied...
Please help! :?


P.S. If I fill in the IP and mac of the broadlink I get this:

Code: Select all

2017-09-13 21:08:51.625 (BroadlinkRM2) Initialized version 3.0.0, author 'zak45'
2017-09-13 21:08:51.629 (BroadlinkRM2) Debug log level set to: 'true'.
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode1':'b4430de436fe'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode2':'/home/pi/domoticz/plugins/BroadlinkRM2'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Port':'0'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Name':'BroadlinkRM2'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'HardwareID':'17'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode4':'yes'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Address':'192.168.0.39'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Key':'BroadlinkRM2'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Author':'zak45'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode3':'yes'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode5':'9000'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Mode6':'Debug'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'Version':'3.0.0'
2017-09-13 21:08:51.629 (BroadlinkRM2) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device count: 4
2017-09-13 21:08:51.629 (BroadlinkRM2) Device: 1 - ID: 252, Name: 'BroadlinkRM2 - Discover', nValue: 0, sValue: 'Off'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device ID: '252'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Discover'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device nValue: 0
2017-09-13 21:08:51.629 (BroadlinkRM2) Device sValue: 'Off'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 21:08:51.629 (BroadlinkRM2) Device: 2 - ID: 253, Name: 'BroadlinkRM2 - Temp', nValue: 0, sValue: ''
2017-09-13 21:08:51.629 (BroadlinkRM2) Device ID: '253'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Temp'
2017-09-13 21:08:51.629 (BroadlinkRM2) Device nValue: 0
2017-09-13 21:08:51.629 (BroadlinkRM2) Device sValue: ''
2017-09-13 21:08:51.629 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 21:08:51.630 (BroadlinkRM2) Device: 254 - ID: 254, Name: 'BroadlinkRM2 - Remote', nValue: 0, sValue: ''
2017-09-13 21:08:51.630 (BroadlinkRM2) Device ID: '254'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Remote'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device nValue: 0
2017-09-13 21:08:51.630 (BroadlinkRM2) Device sValue: ''
2017-09-13 21:08:51.630 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 21:08:51.630 (BroadlinkRM2) Device: 255 - ID: 259, Name: 'BroadlinkRM2 - Import', nValue: 0, sValue: 'Off'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device ID: '259'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device Name: 'BroadlinkRM2 - Import'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device nValue: 0
2017-09-13 21:08:51.630 (BroadlinkRM2) Device sValue: 'Off'
2017-09-13 21:08:51.630 (BroadlinkRM2) Device LastLevel: 0
2017-09-13 21:08:51.630 (BroadlinkRM2) Connecting to: 192.168.0.39:b4430de436fe
2017-09-13 21:08:51.636 Error: (BroadlinkRM2) Error Connecting to Broadlink device....
2017-09-13 21:08:51.636 (BroadlinkRM2) Device Number begin to : 2
2017-09-13 21:08:51.640 (BroadlinkRM2) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_17.ini
2017-09-13 21:08:51.640 (BroadlinkRM2) Custom Commands for Remote not managed
2017-09-13 21:08:51.640 (BroadlinkRM2) Heartbeat interval set to: 30.
2017-09-13 21:09:02.756 (BroadlinkRM2) Calling message handler 'onHeartbeat'.
Looks like it messes up the mac and port number...
bigmak
Posts: 18
Joined: Friday 08 September 2017 17:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10693
Location: Russia
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by bigmak »

Dear forum,

I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.

System:
Raspberry Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash: e9d01f6, Date: 2017-09-13 09:54:08
Linux raspberrypi 4.9.24-v7+
GNU bash, version 4.3.30(1)-release

Problem
When I do ./updatebeta, I can see a lot off paths of Domoticz.
But Domoticz doesn't see folder $ ~domoticz/plugins/BroadlinkRM2. As result - no any "Broadlink" in Hardware.


It is looks like:

Code: Select all

.....
plugins/
plugins/examples/
plugins/examples/DenonMarantz.py
plugins/examples/BaseTemplate.py
plugins/examples/HTTP Listener.py
plugins/examples/Kodi.py
plugins/examples/HTTP.py
plugins/examples/UDP Discovery.py
plugins/examples/Dlink DSP-W215.py
plugins/examples/RAVEn.py
plugins/AwoxSMP/
plugins/AwoxSMP/lib/
plugins/AwoxSMP/lib/__init__.py
plugins/AwoxSMP/lib/pySmartPlugSmpB16.py
plugins/AwoxSMP/plugin.py
Restarting Domoticz... (please standby...)
But I put all files (as described in wiki) in folder:

Code: Select all

pi@raspberrypi ~/domoticz/plugins $ ls -al
итого 20
drwxr-xr-x 5 pi pi 4096 сен  9 09:26 .
drwxr-xr-x 7 pi pi 4096 сен 14 16:20 ..
drwxr-xr-x 3 pi pi 4096 сен  9 09:26 AwoxSMP
drwxr-xr-x 2 pi pi 4096 сен 14 09:00 BroadlinkRM2
drwxr-xr-x 2 pi pi 4096 сен  9 09:26 examples

Code: Select all

pi@raspberrypi ~/domoticz/plugins/BroadlinkRM2 $ ls -al
итого 56
drwxr-xr-x 2 pi pi  4096 сен 14 09:00 .
drwxr-xr-x 5 pi pi  4096 сен  9 09:26 ..
-rwxr-xr-x 1 pi pi 11504 сен 14 13:14 plugin_http.py
-rwxr-xr-x 1 pi pi    81 сен 13 11:11 plugin_http.sh
-rwxr-xr-x 1 pi pi 26803 сен 12 22:08 plugin.py
-rwxr-xr-x 1 pi pi  1501 сен 12 22:08 plugin_send.py
I think that the problem somewhere in Python.

Code: Select all

pi@raspberrypi ~ $ python -V
Python 2.7.9

pi@raspberrypi ~ $ python3 -V
Python 3.5.4

pi@raspberrypi ~ $ which python
/usr/bin/python

pi@raspberrypi ~ $ which python3
/usr/local/bin/python3

pi@raspberrypi ~ $ which python3.4
/usr/bin/python3.4

pi@raspberrypi ~ $ which python3.5
/usr/local/bin/python3.5

pi@raspberrypi ~ $ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
I didn't see any 3.5 version here. Maybe problems here?

Code: Select all

lrwxrwxrwx  1 root root          9 сен 12 23:16 python -> python2.7
lrwxrwxrwx  1 root root          9 мар 28  2015 python2 -> python2.7
-rwxr-xr-x  1 root root    3201580 сен 18  2016 python2.7
lrwxrwxrwx  1 root root         36 сен 18  2016 python2.7-config -> arm-linux-gnueabihf-python2.7-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python2-config -> python2.7-config
lrwxrwxrwx  1 root root          9 дек  6  2014 python3 -> python3.4
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4
lrwxrwxrwx  1 root root         36 окт 19  2014 python3.4-config -> arm-linux-gnueabihf-python3.4-config
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4m
lrwxrwxrwx  1 root root         37 окт 19  2014 python3.4m-config -> arm-linux-gnueabihf-python3.4m-config
lrwxrwxrwx  1 root root         16 дек  6  2014 python3-config -> python3.4-config
lrwxrwxrwx  1 root root         10 дек  6  2014 python3m -> python3.4m
lrwxrwxrwx  1 root root         17 дек  6  2014 python3m-config -> python3.4m-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python-config -> python2.7-config
I did many times:

Code: Select all

 cd Python-3.5.4
 ./configure --enable-shared
 make
 sudo make install
Installing Crypto

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install Crypto
Requirement already satisfied: Crypto in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: Naked in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: shellescape in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: requests in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Installing Broadlink

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install broadlink
Requirement already satisfied: broadlink in /usr/local/lib/python3.5/site-packages/broadlink-0.5-py3.5.egg
Requirement already satisfied: pyaes==1.6.0 in /usr/local/lib/python3.5/site-packages (from broadlink)
Installing pyaes

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install pyaes
Requirement already satisfied: pyaes in /usr/local/lib/python3.5/site-packages
I don't know correct this or not:

Code: Select all

pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/crypto /usr/lib/python3.5/
pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/broadlink /usr/lib/python3.5/
Restart Domoticz

Code: Select all

EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
Ooook. Lets install libpython3.x.
But latest version already installed...

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install python3-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия python3-dev.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.
even like this:

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install libpython3.4
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия libpython3.4.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.

Code: Select all

pi@raspberrypi ~/domoticz $ dpkg -l | grep libpython3.4
ii  libpython3.4:armhf                    3.4.2-1                                   armhf        Shared Python runtime library (version 3.4)
ii  libpython3.4-dev:armhf                3.4.2-1                                   armhf        Header files and a static library for Python (v3.4)
ii  libpython3.4-minimal:armhf            3.4.2-1                                   armhf        Minimal subset of the Python language (version 3.4)
ii  libpython3.4-stdlib:armhf             3.4.2-1                                   armhf        Interactive high-level object-oriented language (standard library, version 3.4)
Restart Raspberry and Domoticz...

Problems still here (after reboot):
Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
And no "BroadlinkRM2" in Hardware.

Can you help me?
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 »

bigmak wrote: Thursday 14 September 2017 16:10
Spoiler: show
Dear forum,

I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.

System:
Raspbertty Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash: e9d01f6, Date: 2017-09-13 09:54:08
Linux raspberrypi 4.9.24-v7+
GNU bash, version 4.3.30(1)-release

Problem
When I do ./updatebeta, I can see a lot off paths of Domoticz.
But Domoticz doesn't see folder $ ~domoticz/plugins/BroadlinkRM2. As result - no any "Broadlink" in Hardware.


It is looks like:

Code: Select all

.....
plugins/
plugins/examples/
plugins/examples/DenonMarantz.py
plugins/examples/BaseTemplate.py
plugins/examples/HTTP Listener.py
plugins/examples/Kodi.py
plugins/examples/HTTP.py
plugins/examples/UDP Discovery.py
plugins/examples/Dlink DSP-W215.py
plugins/examples/RAVEn.py
plugins/AwoxSMP/
plugins/AwoxSMP/lib/
plugins/AwoxSMP/lib/__init__.py
plugins/AwoxSMP/lib/pySmartPlugSmpB16.py
plugins/AwoxSMP/plugin.py
Restarting Domoticz... (please standby...)
But I put all files (as described in wiki) in folder:

Code: Select all

pi@raspberrypi ~/domoticz/plugins $ ls -al
итого 20
drwxr-xr-x 5 pi pi 4096 сен  9 09:26 .
drwxr-xr-x 7 pi pi 4096 сен 14 16:20 ..
drwxr-xr-x 3 pi pi 4096 сен  9 09:26 AwoxSMP
drwxr-xr-x 2 pi pi 4096 сен 14 09:00 BroadlinkRM2
drwxr-xr-x 2 pi pi 4096 сен  9 09:26 examples

Code: Select all

pi@raspberrypi ~/domoticz/plugins/BroadlinkRM2 $ ls -al
итого 56
drwxr-xr-x 2 pi pi  4096 сен 14 09:00 .
drwxr-xr-x 5 pi pi  4096 сен  9 09:26 ..
-rwxr-xr-x 1 pi pi 11504 сен 14 13:14 plugin_http.py
-rwxr-xr-x 1 pi pi    81 сен 13 11:11 plugin_http.sh
-rwxr-xr-x 1 pi pi 26803 сен 12 22:08 plugin.py
-rwxr-xr-x 1 pi pi  1501 сен 12 22:08 plugin_send.py
I think that the problem somewhere in Python.

Code: Select all

pi@raspberrypi ~ $ python -V
Python 2.7.9

pi@raspberrypi ~ $ python3 -V
Python 3.5.4

pi@raspberrypi ~ $ which python
/usr/bin/python

pi@raspberrypi ~ $ which python3
/usr/local/bin/python3

pi@raspberrypi ~ $ which python3.4
/usr/bin/python3.4

pi@raspberrypi ~ $ which python3.5
/usr/local/bin/python3.5

pi@raspberrypi ~ $ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
I didn't see any 3.5 version here. Maybe problems here?

Code: Select all

lrwxrwxrwx  1 root root          9 сен 12 23:16 python -> python2.7
lrwxrwxrwx  1 root root          9 мар 28  2015 python2 -> python2.7
-rwxr-xr-x  1 root root    3201580 сен 18  2016 python2.7
lrwxrwxrwx  1 root root         36 сен 18  2016 python2.7-config -> arm-linux-gnueabihf-python2.7-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python2-config -> python2.7-config
lrwxrwxrwx  1 root root          9 дек  6  2014 python3 -> python3.4
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4
lrwxrwxrwx  1 root root         36 окт 19  2014 python3.4-config -> arm-linux-gnueabihf-python3.4-config
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4m
lrwxrwxrwx  1 root root         37 окт 19  2014 python3.4m-config -> arm-linux-gnueabihf-python3.4m-config
lrwxrwxrwx  1 root root         16 дек  6  2014 python3-config -> python3.4-config
lrwxrwxrwx  1 root root         10 дек  6  2014 python3m -> python3.4m
lrwxrwxrwx  1 root root         17 дек  6  2014 python3m-config -> python3.4m-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python-config -> python2.7-config
I did many times:

Code: Select all

 cd Python-3.5.4
 ./configure --enable-shared
 make
 sudo make install
Installing Crypto

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install Crypto
Requirement already satisfied: Crypto in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: Naked in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: shellescape in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: requests in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Installing Broadlink

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install broadlink
Requirement already satisfied: broadlink in /usr/local/lib/python3.5/site-packages/broadlink-0.5-py3.5.egg
Requirement already satisfied: pyaes==1.6.0 in /usr/local/lib/python3.5/site-packages (from broadlink)
Installing pyaes

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install pyaes
Requirement already satisfied: pyaes in /usr/local/lib/python3.5/site-packages
I don't know correct this or not:

Code: Select all

pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/crypto /usr/lib/python3.5/
pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/broadlink /usr/lib/python3.5/
Restart Domoticz

Code: Select all

EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
Ooook. Lets install libpython3.x.
But latest version already installed...

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install python3-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия python3-dev.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.
even like this:

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install libpython3.4
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия libpython3.4.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.

Code: Select all

pi@raspberrypi ~/domoticz $ dpkg -l | grep libpython3.4
ii  libpython3.4:armhf                    3.4.2-1                                   armhf        Shared Python runtime library (version 3.4)
ii  libpython3.4-dev:armhf                3.4.2-1                                   armhf        Header files and a static library for Python (v3.4)
ii  libpython3.4-minimal:armhf            3.4.2-1                                   armhf        Minimal subset of the Python language (version 3.4)
ii  libpython3.4-stdlib:armhf             3.4.2-1                                   armhf        Interactive high-level object-oriented language (standard library, version 3.4)
Restart Raspberry and Domoticz...

Problems still here (after reboot):
Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
And no "BroadlinkRM2" in Hardware.

Can you help me?
Did you also tried it with the stable version?
In the recent beta version the python plugin is disabled and that gives the error that you have right now i think.
bigmak
Posts: 18
Joined: Friday 08 September 2017 17:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10693
Location: Russia
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by bigmak »

Phantom wrote: Thursday 14 September 2017 16:15
bigmak wrote: Thursday 14 September 2017 16:10
Spoiler: show
Dear forum,

I am trying to install Broadlink Rm3, but something going wrong.
I understand that there are a lot of variables in installing Broadlink, and it will be hard for you to help me. But I will try to explain.

System:
Raspbertty Pi 2
Domoticz V3.8394 (c)2012-2017 GizMoCuz
Build Hash: e9d01f6, Date: 2017-09-13 09:54:08
Linux raspberrypi 4.9.24-v7+
GNU bash, version 4.3.30(1)-release

Problem
When I do ./updatebeta, I can see a lot off paths of Domoticz.
But Domoticz doesn't see folder $ ~domoticz/plugins/BroadlinkRM2. As result - no any "Broadlink" in Hardware.


It is looks like:

Code: Select all

.....
plugins/
plugins/examples/
plugins/examples/DenonMarantz.py
plugins/examples/BaseTemplate.py
plugins/examples/HTTP Listener.py
plugins/examples/Kodi.py
plugins/examples/HTTP.py
plugins/examples/UDP Discovery.py
plugins/examples/Dlink DSP-W215.py
plugins/examples/RAVEn.py
plugins/AwoxSMP/
plugins/AwoxSMP/lib/
plugins/AwoxSMP/lib/__init__.py
plugins/AwoxSMP/lib/pySmartPlugSmpB16.py
plugins/AwoxSMP/plugin.py
Restarting Domoticz... (please standby...)
But I put all files (as described in wiki) in folder:

Code: Select all

pi@raspberrypi ~/domoticz/plugins $ ls -al
итого 20
drwxr-xr-x 5 pi pi 4096 сен  9 09:26 .
drwxr-xr-x 7 pi pi 4096 сен 14 16:20 ..
drwxr-xr-x 3 pi pi 4096 сен  9 09:26 AwoxSMP
drwxr-xr-x 2 pi pi 4096 сен 14 09:00 BroadlinkRM2
drwxr-xr-x 2 pi pi 4096 сен  9 09:26 examples

Code: Select all

pi@raspberrypi ~/domoticz/plugins/BroadlinkRM2 $ ls -al
итого 56
drwxr-xr-x 2 pi pi  4096 сен 14 09:00 .
drwxr-xr-x 5 pi pi  4096 сен  9 09:26 ..
-rwxr-xr-x 1 pi pi 11504 сен 14 13:14 plugin_http.py
-rwxr-xr-x 1 pi pi    81 сен 13 11:11 plugin_http.sh
-rwxr-xr-x 1 pi pi 26803 сен 12 22:08 plugin.py
-rwxr-xr-x 1 pi pi  1501 сен 12 22:08 plugin_send.py
I think that the problem somewhere in Python.

Code: Select all

pi@raspberrypi ~ $ python -V
Python 2.7.9

pi@raspberrypi ~ $ python3 -V
Python 3.5.4

pi@raspberrypi ~ $ which python
/usr/bin/python

pi@raspberrypi ~ $ which python3
/usr/local/bin/python3

pi@raspberrypi ~ $ which python3.4
/usr/bin/python3.4

pi@raspberrypi ~ $ which python3.5
/usr/local/bin/python3.5

pi@raspberrypi ~ $ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
I didn't see any 3.5 version here. Maybe problems here?

Code: Select all

lrwxrwxrwx  1 root root          9 сен 12 23:16 python -> python2.7
lrwxrwxrwx  1 root root          9 мар 28  2015 python2 -> python2.7
-rwxr-xr-x  1 root root    3201580 сен 18  2016 python2.7
lrwxrwxrwx  1 root root         36 сен 18  2016 python2.7-config -> arm-linux-gnueabihf-python2.7-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python2-config -> python2.7-config
lrwxrwxrwx  1 root root          9 дек  6  2014 python3 -> python3.4
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4
lrwxrwxrwx  1 root root         36 окт 19  2014 python3.4-config -> arm-linux-gnueabihf-python3.4-config
-rwxr-xr-x  2 root root    3816928 окт 19  2014 python3.4m
lrwxrwxrwx  1 root root         37 окт 19  2014 python3.4m-config -> arm-linux-gnueabihf-python3.4m-config
lrwxrwxrwx  1 root root         16 дек  6  2014 python3-config -> python3.4-config
lrwxrwxrwx  1 root root         10 дек  6  2014 python3m -> python3.4m
lrwxrwxrwx  1 root root         17 дек  6  2014 python3m-config -> python3.4m-config
lrwxrwxrwx  1 root root         16 мар 28  2015 python-config -> python2.7-config
I did many times:

Code: Select all

 cd Python-3.5.4
 ./configure --enable-shared
 make
 sudo make install
Installing Crypto

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install Crypto
Requirement already satisfied: Crypto in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: Naked in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: shellescape in /usr/local/lib/python3.5/site-packages (from Crypto)
Requirement already satisfied: requests in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.5/site-packages (from Naked->Crypto)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.5/site-packages (from requests->Naked->Crypto)
Installing Broadlink

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install broadlink
Requirement already satisfied: broadlink in /usr/local/lib/python3.5/site-packages/broadlink-0.5-py3.5.egg
Requirement already satisfied: pyaes==1.6.0 in /usr/local/lib/python3.5/site-packages (from broadlink)
Installing pyaes

Code: Select all

pi@raspberrypi ~ $ sudo pip3 install pyaes
Requirement already satisfied: pyaes in /usr/local/lib/python3.5/site-packages
I don't know correct this or not:

Code: Select all

pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/crypto /usr/lib/python3.5/
pi@raspberrypi $ sudo cp -r /usr/local/lib/python3.5/site-packages/broadlink /usr/lib/python3.5/
Restart Domoticz

Code: Select all

EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
Ooook. Lets install libpython3.x.
But latest version already installed...

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install python3-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия python3-dev.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.
even like this:

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install libpython3.4
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Уже установлена самая новая версия libpython3.4.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.

Code: Select all

pi@raspberrypi ~/domoticz $ dpkg -l | grep libpython3.4
ii  libpython3.4:armhf                    3.4.2-1                                   armhf        Shared Python runtime library (version 3.4)
ii  libpython3.4-dev:armhf                3.4.2-1                                   armhf        Header files and a static library for Python (v3.4)
ii  libpython3.4-minimal:armhf            3.4.2-1                                   armhf        Minimal subset of the Python language (version 3.4)
ii  libpython3.4-stdlib:armhf             3.4.2-1                                   armhf        Interactive high-level object-oriented language (standard library, version 3.4)
Restart Raspberry and Domoticz...

Problems still here (after reboot):
Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
And no "BroadlinkRM2" in Hardware.

Can you help me?
Did you also tried it with the stable version?
In the recent beta version the python plugin is disabled and that gives the error that you have right now i think.
You are right. Thank you. I can see "BroadlinkRM2 with Kodi Remote" in hardware on stable version.
Now I need to restore all my scripts... i deleted it during downgrade....))))
bigmak
Posts: 18
Joined: Friday 08 September 2017 17:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10693
Location: Russia
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by bigmak »

And i get new errors:

Code: Select all

2017-09-14 20:36:00.592 Error: BroadlinkRM3 hardware (5) thread seems to have ended unexpectedly
2017-09-14 20:36:02.799 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-09-14 20:36:02.799 Error: (BroadlinkRM3) Module Import failed, exception: 'ImportError'
2017-09-14 20:36:02.799 Error: (BroadlinkRM3) Module Import failed: ' Name: broadlink'
As I thought - problems with Python.
What should I do?
x15pa3ck15x
Posts: 3
Joined: Monday 14 August 2017 14:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Slovakia
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by x15pa3ck15x »

Hello, I´ve installed broadlink plugin, with some one button switch, but when I send command ON, device is going to on, but in domoticz stay OFF status.
Domoticz on RPI PI3
RFXCOM, BROADLINK RM PRO, Z-WAVE stick gen5, XIAOMI GATEWAY, HARMONY HUB
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 »

x15pa3ck15x wrote: Friday 15 September 2017 2:27 Hello, I´ve installed broadlink plugin, with some one button switch, but when I send command ON, device is going to on, but in domoticz stay OFF status.
Hi, Broadlink plugin is one way communication only. No status came back from devices. if you want to set the push button to some other value just change settings on it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest