Python Plugin: Broadlink RM2

Python and python framework

Moderator: leecollings

Dominick98
Posts: 1
Joined: Tuesday 19 December 2017 8:57
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by Dominick98 »

Your devices whether smartphones or pc and also laptop computers. Instagram APK you regulate hen's motion through your voice and this application.
anjimene
Posts: 5
Joined: Saturday 13 January 2018 18:20
Target OS: Windows
Domoticz version: 3.8153
Contact:

Re: Python Plugin: Broadlink RM2

Post by anjimene »

Hello, first of all I say I'm a newbie in this domoticz and I have little knowledge of computer programming.
I installed the software and configured the broadlink, apparently fine. But I can not get them to connect, I get the following log:

Code: Select all

2018-01-13 18:25:38.626 (Broadlink RM2) Initialized version 1.0.0, author 'zak45'
2018-01-13 18:25:38.630 (Broadlink RM2) Debug log level set to: 'true'.
2018-01-13 18:25:38.630 (Broadlink RM2) 'HardwareID':'10'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Mode2':'C:\Domoticz\plugins\Broadlink'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Key':'BroadlinkRM2'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Address':'192.168.1.3'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Author':'zak45'
2018-01-13 18:25:38.630 (Broadlink RM2) 'HomeFolder':'C:\Domoticz\plugins\Broadlink\'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Mode1':'34ea34b50f90'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Name':'Broadlink RM2'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Version':'1.0.0'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Mode3':'yes'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Port':'0'
2018-01-13 18:25:38.630 (Broadlink RM2) 'Mode6':'Debug'
2018-01-13 18:25:38.631 (Broadlink RM2) Device count: 2
2018-01-13 18:25:38.631 (Broadlink RM2) Device: 1 - ID: 22, Name: 'Broadlink RM2 - Command', nValue: 0, sValue: 'Off'
2018-01-13 18:25:38.631 (Broadlink RM2) Device ID: '22'
2018-01-13 18:25:38.631 (Broadlink RM2) Device Name: 'Broadlink RM2 - Command'
2018-01-13 18:25:38.631 (Broadlink RM2) Device nValue: 0
2018-01-13 18:25:38.631 (Broadlink RM2) Device sValue: 'Off'
2018-01-13 18:25:38.631 (Broadlink RM2) Device LastLevel: 0
2018-01-13 18:25:38.631 (Broadlink RM2) Device: 2 - ID: 23, Name: 'Broadlink RM2 - Temp', nValue: 0, sValue: ''
2018-01-13 18:25:38.631 (Broadlink RM2) Device ID: '23'
2018-01-13 18:25:38.631 (Broadlink RM2) Device Name: 'Broadlink RM2 - Temp'
2018-01-13 18:25:38.631 (Broadlink RM2) Device nValue: 0
2018-01-13 18:25:38.631 (Broadlink RM2) Device sValue: ''
2018-01-13 18:25:38.631 (Broadlink RM2) Device LastLevel: 0
2018-01-13 18:25:38.631 (Broadlink RM2) Connecting to: 192.168.1.3:34ea34b50f90
2018-01-13 18:25:38.634 Error: (Broadlink RM2) Error Connecting to Broadlink device....
Please, can somebody help me? I have read this post and others but I can not find the solution.

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

Re: Python Plugin: Broadlink RM2

Post by zak45 »

@anjimene
looks like you're using old plugin version.
Install the last one (v3) and let's try.
anjimene
Posts: 5
Joined: Saturday 13 January 2018 18:20
Target OS: Windows
Domoticz version: 3.8153
Contact:

Re: Python Plugin: Broadlink RM2

Post by anjimene »

zak45 wrote:@anjimene
looks like you're using old plugin version.
Install the last one (v3) and let's try.
Thanks a lot, I will try tomorrow.

Enviado desde mi SM-A300FU mediante Tapatalk

anjimene
Posts: 5
Joined: Saturday 13 January 2018 18:20
Target OS: Windows
Domoticz version: 3.8153
Contact:

Re: Python Plugin: Broadlink RM2

Post by anjimene »

zak45 wrote: Saturday 13 January 2018 22:35 @anjimene
looks like you're using old plugin version.
Install the last one (v3) and let's try.
I have installed the last one (v3) but the problem keeps going
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2

Post by zak45 »

anjimene wrote: Sunday 14 January 2018 10:15 I have installed the last one (v3) but the problem keeps going
Fine.. if you're sure of the IP address, maybe you have a FW ?? if yes, try to disable it for testing.
anjimene
Posts: 5
Joined: Saturday 13 January 2018 18:20
Target OS: Windows
Domoticz version: 3.8153
Contact:

Re: Python Plugin: Broadlink RM2

Post by anjimene »

Thanks zak45,

I have tried it before because seems a problem with the net, but that is not the problem. Do you have any other idea?
anjimene
Posts: 5
Joined: Saturday 13 January 2018 18:20
Target OS: Windows
Domoticz version: 3.8153
Contact:

Re: Python Plugin: Broadlink RM2

Post by anjimene »

I was wrong with the IP direction :oops: , I put all values by default for IP address and mac and I have discovered my device :lol:
I am happy now.

Thanks a lot @zak45 for your help.
davidrq78
Posts: 5
Joined: Sunday 26 November 2017 12:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by davidrq78 »

Guys plz help what should i do ? I cant start webserver :(
Image
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2

Post by zak45 »

davidrq78 wrote: Friday 09 February 2018 22:01 Guys plz help what should i do ? I cant start webserver :(
126 Command invoked cannot execute /dev/null Permission problem or command is not an executable

you need to set +x to your plugin_http.sh
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by Xztraz »

also get this when trying to start webserver.

scripts given +x permission. (owner pi)
changed .sh file to nohup python3 /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 &
ini location in plugin map(fills with dirs owned by root)

Code: Select all

Feb 11 16:35:18 raspberrypi domoticz: User: Admin initiated a switch command (874/BroadlinkRM3 - Import/Set Level)
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) onCommand called for Unit 255: Parameter 'Set Level', Level: 10 , Connected : True
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) 127
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/plugins/Broadlink/ini/
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) None
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) Update 0:'Off' (BroadlinkRM3 - Import)
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) Not able to start Web server
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2

Post by zak45 »

Xztraz wrote: Sunday 11 February 2018 16:39 Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) onCommand called for Unit 255: Parameter 'Set Level', Level: 10 , Connected : True
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) 127
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/plugins/Broadlink/ini/
Feb 11 16:35:18 raspberrypi domoticz: (BroadlinkRM3) None
https://linuxconfig.org/how-to-fix-bash ... eturn-code
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by Xztraz »

Tried starting the whats in the .sh script. it runs the script atleast. arguments mising att it assumes c: but path in .sh seems fine. so whats wrong?

pi ~ $ python3 /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 &
[1] 2667
pi ~ $ Traceback (most recent call last):
File "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.py", line 319, in <module>
os.chdir(PATH)
FileNotFoundError: [Errno 2] No such file or directory: 'c:/BroadlinkRM2'
^C
[1]+ Exit 1 python3 /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3



i see that files and such created by script is owned by root. might this mess something up?
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by lplugo »

Hello,

I've installed the newest version of standalon and beta on raspberry pi3 and want to setup my broadlink rm3 pro but it's not in the HW list.
I followed the guide of the installation of the brodadlink plugin but....

The log file show this:
Domoticz - Broadlink log:

2018-02-10 17:28:49.665 Error: PluginList: Parsing '/home/pi/domoticz/plugins/BroadlinkRM2/', 'Error document empty.' at line 0 column 0 in XML ''.

I found an xml file on https://pypi.python.org/pypi/broadlink ( https://pypi.python.org/pypi?:action=do ... ersion=0.6)
and put this xml file into the Pi/domoticz/plugins/BroadlinkRM2 folder but the error message is same.

Do you have any idea?

Thank you!
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by lplugo »

lplugo wrote: Monday 12 February 2018 15:51 Hello,

I've installed the newest version of standalon and beta on raspberry pi3 and want to setup my broadlink rm3 pro but it's not in the HW list.
I followed the guide of the installation of the brodadlink plugin but....

The log file show this:
Domoticz - Broadlink log:

2018-02-10 17:28:49.665 Error: PluginList: Parsing '/home/pi/domoticz/plugins/BroadlinkRM2/', 'Error document empty.' at line 0 column 0 in XML ''.

I found an xml file on https://pypi.python.org/pypi/broadlink ( https://pypi.python.org/pypi?:action=do ... ersion=0.6)
and put this xml file into the Pi/domoticz/plugins/BroadlinkRM2 folder but the error message is same.

Do you have any idea?

Thank you!
I installed it on another Pi but the problem is the same. No Broadlink device in Hardware list.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2

Post by zak45 »

lplugo wrote: Wednesday 14 February 2018 12:46 I installed it on another Pi but the problem is the same. No Broadlink device in Hardware list.
try with other plugin to validate your installation.
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by lplugo »

zak45 wrote: Wednesday 14 February 2018 18:32
lplugo wrote: Wednesday 14 February 2018 12:46 I installed it on another Pi but the problem is the same. No Broadlink device in Hardware list.
try with other plugin to validate your installation.
I passed the problem but have another error:
2018-02-17 16:26:50.825 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed, exception: 'ImportError'
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed: ' Name: broadlink'
2018-02-17 16:26:50.825 Error: (Broad) Error Line details not available.
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by lplugo »

lplugo wrote: Saturday 17 February 2018 16:27
zak45 wrote: Wednesday 14 February 2018 18:32
lplugo wrote: Wednesday 14 February 2018 12:46 I installed it on another Pi but the problem is the same. No Broadlink device in Hardware list.
try with other plugin to validate your installation.
I passed the problem but have another error:
2018-02-17 16:26:50.825 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed, exception: 'ImportError'
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed: ' Name: broadlink'
2018-02-17 16:26:50.825 Error: (Broad) Error Line details not available.
I solved previous but now have a new error:
2018-02-17 19:06:42.089 Error: (disc) 'onCommand' failed 'AttributeError':'module 'broadlink' has no attribute 'discover''.
2018-02-17 19:06:42.089 Error: (disc) ----> Line 278 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2018-02-17 19:06:42.089 Error: (disc) ----> Line 568 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function Discover

Error Connecting to Broadlink device....192.1xxxxxxxxxx

and ini file not found: inibroadl:/BroadlinkRM2/BroadlinkRM2-3-254.ini
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by lplugo »

lplugo wrote: Saturday 17 February 2018 19:12
lplugo wrote: Saturday 17 February 2018 16:27
zak45 wrote: Wednesday 14 February 2018 18:32
try with other plugin to validate your installation.
I passed the problem but have another error:
2018-02-17 16:26:50.825 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed, exception: 'ImportError'
2018-02-17 16:26:50.825 Error: (Broad) Module Import failed: ' Name: broadlink'
2018-02-17 16:26:50.825 Error: (Broad) Error Line details not available.
I solved previous but now have a new error:
2018-02-17 19:06:42.089 Error: (disc) 'onCommand' failed 'AttributeError':'module 'broadlink' has no attribute 'discover''.
2018-02-17 19:06:42.089 Error: (disc) ----> Line 278 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2018-02-17 19:06:42.089 Error: (disc) ----> Line 568 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function Discover

Error Connecting to Broadlink device....192.1xxxxxxxxxx

and ini file not found: inibroadl:/BroadlinkRM2/BroadlinkRM2-3-254.ini
Any idea how to connect to the Broadlink RM+ device?
davidrq78
Posts: 5
Joined: Sunday 26 November 2017 12:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by davidrq78 »

blacksn0w wrote: Monday 27 November 2017 10:31
davidrq78 wrote: Monday 27 November 2017 10:16
zak45 wrote: Sunday 26 November 2017 23:48 do not forget to give +x
What do you mean ? Where should i give +x?
Execute permissions.
chmod +x plugin_http.py
Dude im super newbie i need a step by step instructions. Plz help :roll:
ill should go to :
cd /home/pi/domoticz/plugins/BroadlinkRM2
and than type sudo chmod +x plugin_http.py ? Or what?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest