Page 6 of 12

Re: Python Plugin: Broadlink RM2

Posted: Monday 01 May 2017 12:17
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.

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 3:30
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? :- )

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 13:00
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.

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 15:00
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,

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 17:31
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.

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 20:53
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! :- )

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 21:18
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.

Re: Python Plugin: Broadlink RM2

Posted: Wednesday 03 May 2017 23:50
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. ;-)

Re: Python Plugin: Broadlink RM2

Posted: Thursday 04 May 2017 0:02
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?

Re: Python Plugin: Broadlink RM2

Posted: Thursday 04 May 2017 12:41
by zak45
should be on the Domoticz log.

Re: Python Plugin: Broadlink RM2

Posted: Thursday 04 May 2017 17:09
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.

Re: Python Plugin: Broadlink RM2

Posted: Thursday 04 May 2017 23:25
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!

Re: Python Plugin: Broadlink RM2

Posted: Friday 05 May 2017 12:28
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 !!

Re: Python Plugin: Broadlink RM2

Posted: Monday 15 May 2017 15:03
by ilpier
Hi,

this work with RM Pro and RM Mini3?Thx

Re: Python Plugin: Broadlink RM2

Posted: Monday 15 May 2017 17:30
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.

Re: Python Plugin: Broadlink RM2

Posted: Monday 15 May 2017 18:05
by ilpier
Thx Zak,can be possible to use two or more?


Inviato dal mio iPhone utilizzando Tapatalk Pro

Re: RE: Re: Python Plugin: Broadlink RM2

Posted: Monday 15 May 2017 18:18
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

Re: RE: Re: Python Plugin: Broadlink RM2

Posted: Monday 15 May 2017 19:32
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.

Re: Python Plugin: Broadlink RM2

Posted: Tuesday 16 May 2017 0:01
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

Re: Python Plugin: Broadlink RM2

Posted: Tuesday 16 May 2017 8:27
by StanHD
I have 2 x RM Pro working. Just add another hardware device for each one.