Python Plugin : Broadlink

Python and python framework

Moderator: leecollings

Valiran
Posts: 13
Joined: Thursday 17 February 2022 0:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by Valiran »

Is you speak browser side, it's allowed.
I don't know how to check raspberry side.
Valiran
Posts: 13
Joined: Thursday 17 February 2022 0:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post 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 ><
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Not really Pi specialist, maybe check the rights ( chmod 777 ) ?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post 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
kollemt
Posts: 29
Joined: Monday 18 February 2019 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: Python Plugin : Broadlink

Post by kollemt »

Tried to download the raspberry pi unix version.
Got an error.
Will try it later
kollemt
Posts: 29
Joined: Monday 18 February 2019 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: Python Plugin : Broadlink

Post by kollemt »

Upgraded to the 14223 version and indeed the problem is solved.

Thanks
gorstj
Posts: 41
Joined: Tuesday 13 December 2016 18:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by gorstj »

I can't download form the link either - page never loads

https://synnas.publicvm.com:4430/s/Czn9r8G8QwrZ7ji
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Python Plugin : Broadlink

Post by DAVIZINHO »

Hello again.
Some can configure this plugin for 0x649b hardware device??
Flappie
Posts: 18
Joined: Tuesday 10 January 2017 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post 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?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post 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
Flappie
Posts: 18
Joined: Tuesday 10 January 2017 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post 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?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Verify rights... maybe do chmod 777 to the Broadlink folder (recursive)
bernardstef
Posts: 5
Joined: Friday 24 February 2017 9:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post 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'
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post 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 ! ;)
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Python Plugin : Broadlink

Post 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 ?
phklrz
Posts: 1
Joined: Monday 09 May 2022 9:35
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post 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?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

dombr.sh is missing from the download area... this has been corrected.
just download it or restart setup.py.
pfloryann
Posts: 168
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

Re: Python Plugin : Broadlink

Post 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!
Domoticz on Raspberry Pi 4with Zigbee2mqtt
2 x xiaomi temperature sensor
7 x xiaomi plug
2 x xiaomi door sensor
1 x ikea plug
1 x ikea zigbee apdator
4 x xiaomi motion sensor
1 x xiaomi vibration sensor
2 x xiaomi wireless switch
Broadlink rm pro
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

No problem to have more than one device.
you need to create two hardware in domoticz.
rfvdboom
Posts: 38
Joined: Tuesday 20 September 2016 8:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Netherlands
Contact:

Re: Python Plugin : Broadlink

Post 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:1015: 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?
Odroid N2+ | Raspberry P 3 ModelB | RFXcom | AEOTEC Zwave | Honeywell Lyric T6| Milight | Milighthub (NodeMCU) | SolarEdge | P1 Smart meter USB | KAKU | Wemos D1 (esphome) | Denon | Logitech Harmony
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest