Page 23 of 27
Re: Python Plugin : Broadlink
Posted: Friday 18 February 2022 0:05
by Valiran
Is you speak browser side, it's allowed.
I don't know how to check raspberry side.
Re: Python Plugin : Broadlink
Posted: Saturday 19 February 2022 22:59
by Valiran
Ok, it still doesn't work, BUT looking at the code of the page, I managed to find the "sendCode?key=...." sentence.
Other thing that doesn't work for me is editing ini file. It doesn't save the modifications. Well infact it says it's saved but when I reopen it it's not modified. Had to scp-edit the ini ><
Re: Python Plugin : Broadlink
Posted: Sunday 20 February 2022 12:53
by zak45
Not really Pi specialist, maybe check the rights ( chmod 777 ) ?
Re: Python Plugin : Broadlink
Posted: Monday 21 February 2022 16:52
by zak45
kollemt wrote: ↑Thursday 10 February 2022 0:50
I installed Domoticz version 2021.1. No problems.
When back to my production Domoticz version 2022.1. Again the same problems.
Looks indeed that the problem was introduced with a later Domoticz version:
2020.2 build 2021-03-11 OK
2021.1 build 2021-04-17 OK
2021.1 build 2021-12-23 NOT OK
2022.1 build 2022-01-31 NOT OK
Cn you do a test with the last beta ???
on my side, looks like no more problem :
Version: 2022.1 (build 14223)
Build Hash: 3e5942bb9
Compile Date: 2022-02-21 08:36:39
dzVents Version: 3.1.8
Python Version: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:34:34) [MSC v.1928 32 bit (Intel)]
Uptime: 3 Hours, 43 Minutes, 0 Seconds
Re: Python Plugin : Broadlink
Posted: Monday 21 February 2022 17:16
by kollemt
Tried to download the raspberry pi unix version.
Got an error.
Will try it later
Re: Python Plugin : Broadlink
Posted: Tuesday 22 February 2022 19:18
by kollemt
Upgraded to the 14223 version and indeed the problem is solved.
Thanks
Re: Python Plugin : Broadlink
Posted: Monday 28 February 2022 14:46
by gorstj
I can't download form the link either - page never loads
https://synnas.publicvm.com:4430/s/Czn9r8G8QwrZ7ji
Re: Python Plugin : Broadlink
Posted: Saturday 05 March 2022 21:15
by DAVIZINHO
Hello again.
Some can configure this plugin for 0x649b hardware device??
Re: Python Plugin : Broadlink
Posted: Wednesday 09 March 2022 13:08
by Flappie
Hi,
I did a clean install of Domoticz and tried to add this plugin:
pi@domoticz:~/domoticz/plugins/broadlink $ sudo python setup.py
File "setup.py", line 229
print("\r>> Bytes downloaded -->" + state + str(leng) + state, end='', flush=True)
^
SyntaxError: invalid syntax
Any ideas?
Re: Python Plugin : Broadlink
Posted: Wednesday 09 March 2022 13:27
by zak45
Flappie wrote: ↑Wednesday 09 March 2022 13:08
Hi,
I did a clean install of Domoticz and tried to add this plugin:
pi@domoticz:~/domoticz/plugins/broadlink $ sudo python setup.py
File "setup.py", line 229
print("\r>> Bytes downloaded -->" + state + str(leng) + state, end='', flush=True)
^
SyntaxError: invalid syntax
Any ideas?
be sure that your default python is > 3.x
Re: Python Plugin : Broadlink
Posted: Wednesday 09 March 2022 15:55
by Flappie
zak45 wrote: ↑Wednesday 09 March 2022 13:27
Flappie wrote: ↑Wednesday 09 March 2022 13:08
Hi,
I did a clean install of Domoticz and tried to add this plugin:
pi@domoticz:~/domoticz/plugins/broadlink $ sudo python setup.py
File "setup.py", line 229
print("\r>> Bytes downloaded -->" + state + str(leng) + state, end='', flush=True)
^
SyntaxError: invalid syntax
Any ideas?
be sure that your default python is > 3.x
That fixed it. Setup ends with:
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported irgen
Successfully imported broadlink
Error : Directory ini do not exist, verify error... exiting
is that normal?
Re: Python Plugin : Broadlink
Posted: Wednesday 09 March 2022 17:39
by zak45
Verify rights... maybe do chmod 777 to the Broadlink folder (recursive)
Re: Python Plugin : Broadlink
Posted: Tuesday 22 March 2022 17:50
by bernardstef
Flappie wrote: ↑Wednesday 09 March 2022 15:55
zak45 wrote: ↑Wednesday 09 March 2022 13:27
Flappie wrote: ↑Wednesday 09 March 2022 13:08
Hi,
I did a clean install of Domoticz and tried to add this plugin:
pi@domoticz:~/domoticz/plugins/broadlink $ sudo python setup.py
File "setup.py", line 229
print("\r>> Bytes downloaded -->" + state + str(leng) + state, end='', flush=True)
^
SyntaxError: invalid syntax
Any ideas?
be sure that your default python is > 3.x
That fixed it. Setup ends with:
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported irgen
Successfully imported broadlink
Error : Directory ini do not exist, verify error... exiting
is that normal?
Hi !
Same issue ... I'm an old user of the 1st plugin version !
Chmod 777 recursive didn't fixed it for me.. I'm digging on it ..
EDIT : created the missing directory myself and the plugin starts !
There should be : 'ini', 'lng', 'log', 'scr', 'web'
Re: Python Plugin : Broadlink
Posted: Tuesday 22 March 2022 23:33
by zak45
bernardstef wrote: ↑Tuesday 22 March 2022 17:50
Same issue ... I'm an old user of the 1st plugin version !
Hope you will enjoy this new one !

Re: Python Plugin : Broadlink
Posted: Wednesday 23 March 2022 15:08
by nono212
Hello guys
I am trying to make work rhis plugin on my docker but witthout success
I have this error
2022-03-23 13:58:14.148 Error: Broadlink: (Broadlink) failed to load 'plugin.py', Python Path used was '/config/plugins/Broadlink/:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/local/lib/python3.8/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.8/dist-packages'.
2022-03-23 13:58:14.148 Error: Broadlink: Module Import failed, exception: 'AttributeError'
2022-03-23 13:58:14.148 Error: Broadlink: Error Line details not available.
2022-03-23 13:58:14.148 Error: Broadlink: Exception traceback:
2022-03-23 13:58:14.148 Error: Broadlink: ----> Line 134 in '/config/plugins/Broadlink/plugin.py'
on line 134 I see there is :
brodevices = broadlink.get_devices()
do you have any idea ?
Re: Python Plugin : Broadlink
Posted: Monday 09 May 2022 9:41
by phklrz
Hello,
when installing plugin on Ubuntu 20.04 with 'sudo python setup.py', I get the following error:
put *.py files executable (+x) OK
chmod: impossible to access 'scr/*.sh': No such file or directory
ERROR to start subprocess
1
sudo chmod +x scr/*.sh
b''
ERROR to put +x to *.sh files
(python --version -> Python 3.8.10)
Any idea?
Re: Python Plugin : Broadlink
Posted: Monday 09 May 2022 19:11
by zak45
dombr.sh is missing from the download area... this has been corrected.
just download it or restart setup.py.
Re: Python Plugin : Broadlink
Posted: Monday 09 May 2022 21:53
by pfloryann
hi, i want to use 2 broadlink(rm pro and rm 3 mini). The rm pro working with plugin Broadlink with kodi remote, but when i add Rm 3 mini... The plugin displays it but show the commands from Rm Pro and doesn't save the new rm 3 mini command. So doesn't work. Someoane managed to integrate multiple broadlink? Thank you!
Re: Python Plugin : Broadlink
Posted: Monday 09 May 2022 23:16
by zak45
No problem to have more than one device.
you need to create two hardware in domoticz.
Re: Python Plugin : Broadlink
Posted: Tuesday 10 May 2022 20:52
by rfvdboom
Hello,
I had the broadlink plugin working on buster. Since is did a fresh install and now have bullseye, i cant get the plugin working.
During setup.py i get at the end:
/usr/lib/python3/dist-packages/urllib3/connectionpool.py

InsecureRequestWarning: Unverified HTTPS request is being made to host 'synnas.publicvm.com'. Adding certificate verification is strongly advised. See:
https://urllib3.readthedocs.io/en/lates ... l-warnings
warnings.warn(
We download plugin files to: BroadlinkSetup.zip
Traceback (most recent call last):
File "/home/pi/domoticz/plugins/Broadlink/setup.py", line 222, in <module>
with open(updname, 'wb') as fh:
PermissionError: [Errno 13] Permission denied: 'BroadlinkSetup.zip'
Error receive / save files from Gdrive :
https://synnas.publicvm.com:4430/s/Czn9 ... i/download
How to fix this?