Python Plugin: Broadlink RM2

Python and python framework

Moderator: leecollings

Post Reply
flyguy729
Posts: 2
Joined: Monday 01 May 2017 11:08
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by flyguy729 »

jlites00 wrote:I did a fresh install of Domoticz 3.7, Python 3.5 & Broadlink modules on Raspberry Pi V3. It seems to be working now.

Any idea what the error message below is? I get it every time SAFE is hit despite the int file saved in the Broadlink folder.


Error
Filter:
X
2017-04-02 16:41:34.801 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:41:37.156 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:41:38.959 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:28.534 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:36.948 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:37.149 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:37.400 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:43:05.704 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:18.353 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:18.380 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:24.971 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:24.994 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:30.980 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:31.002 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:34.833 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:34.859 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:37.086 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:37.108 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:39.138 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:39.159 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:44:15.241 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:46:15.239 Error: (TEST101) Error Connecting to Broadlink device....


Is the LEARN process same as IR & RF 433?

Is there a way to auto-discover the Broadlink hub existing connected devices on Domoticz?

Last but not least, is the plugin compatible with Broadlink TC2 Switches?

Overall great learning curve as I've learned quite a bit. Thanks, ZAK45...
I'm having the same problem as you earlier. So the only way for you to fix that is to do a fresh install of everything?

Do you install 3.7 straight or do you install 3.5 release and upgrade it to 3.7?

If so, how do you install 3.7 beta without installing 3.5 first?

Also is your broadlink 0.3.0 or 0.4?

Thanks.
Caribou
Posts: 9
Joined: Thursday 20 April 2017 17:35
Target OS: Linux
Domoticz version:
Location: Bordeaux
Contact:

Re: Python Plugin: Broadlink RM2

Post by Caribou »

I'm sorry, I also have issues when I try to install this plugin:
Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/me/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload'.
Error: (Broadlink RM2) Module Import failed, exception: 'ImportError'
Error: (Broadlink RM2) Module Import failed: ' Name: broadlink'
Could you please help me to fix it? :- )
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 »

Caribou wrote:I'm sorry, I also have issues when I try to install this plugin:
Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/me/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload'.
Error: (Broadlink RM2) Module Import failed, exception: 'ImportError'
Error: (Broadlink RM2) Module Import failed: ' Name: broadlink'
Could you please help me to fix it? :- )
This mean the module 'broadlink' has not been installed.
See wiki and forum, all should be there even if still problem with pip3.
plaaggeest
Posts: 6
Joined: Thursday 27 April 2017 20:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by plaaggeest »

Hi Zak,

I think I messed up my python installations so much (lack of knowledge), I'll do a fresh install of my rasp /domoticz and then your plugin.

Can you add to the wiki, or explain here, what the best way is to install the correct version of the needed python as the requirement for your plugin/wiki tutorial?

Br,
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 »

plaaggeest wrote:Hi Zak,

I think I messed up my python installations so much (lack of knowledge), I'll do a fresh install of my rasp /domoticz and then your plugin.

Can you add to the wiki, or explain here, what the best way is to install the correct version of the needed python as the requirement for your plugin/wiki tutorial?

Br,
all is on wiki, hope so...
but not so much for linux as I do not have this OS.
Caribou
Posts: 9
Joined: Thursday 20 April 2017 17:35
Target OS: Linux
Domoticz version:
Location: Bordeaux
Contact:

Re: Python Plugin: Broadlink RM2

Post by Caribou »

zak45 wrote:This mean the module 'broadlink' has not been installed.
See wiki and forum, all should be there even if still problem with pip3.
Hi zak,
Actually the module was installed, but not in the right directories (because I use python3.5).
Now it's far better:
2017-05-03 20:49:17.352 (Broadlink RM2) Initialized version 2.0.0, author 'zak45'
But I still get an error message in the logs:
Error Connecting to Broadlink device
How to fix it?

Thanks for your kind help! :- )
jlites00
Posts: 22
Joined: Friday 31 March 2017 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by jlites00 »

flyguy729 wrote:
jlites00 wrote:I did a fresh install of Domoticz 3.7, Python 3.5 & Broadlink modules on Raspberry Pi V3. It seems to be working now.

Any idea what the error message below is? I get it every time SAFE is hit despite the int file saved in the Broadlink folder.


Error
Filter:
X
2017-04-02 16:41:34.801 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:41:37.156 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:41:38.959 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:28.534 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:36.948 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:37.149 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:42:37.400 Error: (TEST100) ini file not found: /home/pi/domoticz/plugins/Broadlink\BroadlinkRM2-8-1.ini
2017-04-02 16:43:05.704 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:18.353 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:18.380 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:18.380 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:24.971 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:24.994 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:24.994 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:30.980 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:31.002 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:31.002 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:34.833 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:34.859 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:34.859 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:37.086 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:37.108 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:37.108 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:43:39.138 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:43:39.159 Error: (TEST101) 'onCommand' failed 'gaierror'.
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 118 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function onCommand
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 326 in /home/pi/domoticz/plugins/Broadlink/plugin.py, function learn
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 455 in /usr/lib/python3.4/broadlink/__init__.py, function enter_learning
2017-04-02 16:43:39.159 Error: (TEST101) ----> Line 255 in /usr/lib/python3.4/broadlink/__init__.py, function send_packet
2017-04-02 16:44:15.241 Error: (TEST101) Error Connecting to Broadlink device....
2017-04-02 16:46:15.239 Error: (TEST101) Error Connecting to Broadlink device....


Is the LEARN process same as IR & RF 433?

Is there a way to auto-discover the Broadlink hub existing connected devices on Domoticz?

Last but not least, is the plugin compatible with Broadlink TC2 Switches?

Overall great learning curve as I've learned quite a bit. Thanks, ZAK45...
I'm having the same problem as you earlier. So the only way for you to fix that is to do a fresh install of everything?

Do you install 3.7 straight or do you install 3.5 release and upgrade it to 3.7?

If so, how do you install 3.7 beta without installing 3.5 first?

Also is your broadlink 0.3.0 or 0.4?

Thanks.
I installed the 3.5 release and upgraded to 3.7 beta, as for broadlink I'm running 0.3. Mine works now.
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 »

Glad to see that you have been able to install it.
For error :
Error Connecting to Broadlink device
usually, bad settings on the configuration page or network problem.

And just to share another info with you : release 3.0 with remote control (Kodi like) is here very soon. ;-)
Caribou
Posts: 9
Joined: Thursday 20 April 2017 17:35
Target OS: Linux
Domoticz version:
Location: Bordeaux
Contact:

Re: Python Plugin: Broadlink RM2

Post by Caribou »

Thanks for your quick answer zak and the good news about that release 3.0!
What kind of bad settings on the configuration page for example? Is there some logs to better focus that issue?
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 »

should be on the Domoticz log.
Caribou
Posts: 9
Joined: Thursday 20 April 2017 17:35
Target OS: Linux
Domoticz version:
Location: Bordeaux
Contact:

Re: Python Plugin: Broadlink RM2

Post by Caribou »

There was nothing usable in the logs… BUT I finally understood why I had that error:
in settings, the mac address have to not contain ":" between values, otherwise you will get that "Error Connecting to Broadlink device" message.
plaaggeest
Posts: 6
Joined: Thursday 27 April 2017 20:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by plaaggeest »

zak45 wrote:
plaaggeest wrote:Hi Zak,

I think I messed up my python installations so much (lack of knowledge), I'll do a fresh install of my rasp /domoticz and then your plugin.

Can you add to the wiki, or explain here, what the best way is to install the correct version of the needed python as the requirement for your plugin/wiki tutorial?

Br,
all is on wiki, hope so...
but not so much for linux as I do not have this OS.
Hi Zak,

Did the fresh install of raspbian and domoticz. Followed the tutorial.

Works like a charm!

Great plugin! Thank you!
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 »

plaaggeest wrote:Hi Zak,

Did the fresh install of raspbian and domoticz. Followed the tutorial.

Works like a charm!

Great plugin! Thank you!
Perfect.. and pretty sure you will like next release !!
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by ilpier »

Hi,

this work with RM Pro and RM Mini3?Thx
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 »

ilpier wrote:Hi,

this work with RM Pro and RM Mini3?Thx
RM Pro yes, ... Mini need to be tested, not have it.
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by ilpier »

Thx Zak,can be possible to use two or more?


Inviato dal mio iPhone utilizzando Tapatalk Pro
shoyboom
Posts: 12
Joined: Saturday 25 March 2017 16:42
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: Python Plugin: Broadlink RM2

Post by shoyboom »

zak45 wrote:
ilpier wrote:Hi,

this work with RM Pro and RM Mini3?Thx
RM Pro yes, ... Mini need to be tested, not have it.
It does with Mini 3

Sent from my ONEPLUS A3000 using Tapatalk
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: RE: Re: Python Plugin: Broadlink RM2

Post by zak45 »

shoyboom wrote:
zak45 wrote:
ilpier wrote:Hi,

this work with RM Pro and RM Mini3?Thx
RM Pro yes, ... Mini need to be tested, not have it.
It does with Mini 3

Sent from my ONEPLUS A3000 using Tapatalk
Perfect, thanks for confirmation.

And yes can use more than once.
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by ilpier »

zak45 wrote:
shoyboom wrote:
zak45 wrote: RM Pro yes, ... Mini need to be tested, not have it.
It does with Mini 3

Sent from my ONEPLUS A3000 using Tapatalk
Perfect, thanks for confirmation.

And yes can use more than once.
Thx to all!
For use two or more RM in domoticz?possible?


Inviato dal mio iPhone utilizzando Tapatalk Pro
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Python Plugin: Broadlink RM2

Post by StanHD »

I have 2 x RM Pro working. Just add another hardware device for each one.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest