Python Plugin: Broadlink RM2

Python and python framework

Moderator: leecollings

Post Reply
ilpier
Posts: 31
Joined: Friday 24 February 2017 12:01
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by ilpier »

Perfect!thx!
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 »

Hi @zak45

I have been using the plug-in under Windows for some time now and it works really well. So thank you very much for your work.
Even though the actions are always carried out, I get the following error messages:-
Spoiler: show
2017-05-16 14:12:05.591 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 16:40:07.990 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 16:44:08.041 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 17:36:08.891 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 17:44:08.991 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 18:04:09.390 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 18:32:09.641 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 19:09:54.138 Error: (Broadlink Kitchen) Unit unknown
2017-05-16 20:40:11.741 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 20:56:14.888 Error: (Broadlink Kitchen) Unit unknown
2017-05-16 20:56:18.138 Error: (Broadlink Kitchen) Unit unknown
2017-05-16 21:12:12.191 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 21:28:12.390 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 22:16:12.990 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-16 23:20:06.553 Error: (Broadlink Kitchen) Error Connecting to Broadlink device....
2017-05-16 23:24:14.040 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 00:16:14.840 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 02:48:16.740 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 06:01:24.891 Error: (Broadlink Bedroom) Unit unknown
2017-05-17 06:40:19.892 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 07:16:12.990 Error: (Broadlink Kitchen) Error Connecting to Broadlink device....
2017-05-17 08:48:21.490 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 08:52:21.541 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 10:00:22.291 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 11:20:23.237 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 12:00:23.792 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 12:04:23.790 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
2017-05-17 13:20:17.490 Error: (Broadlink Kitchen) Error Connecting to Broadlink device....
2017-05-17 14:20:25.841 Error: (Broadlink Bedroom) Error Connecting to Broadlink device....
The "error connecting" seems to occur randomly, however, the "Unit Unknown" occurs when a command is issued. (the command still works though)
It really isn't a big problem to me but just wondered if I could fix easily?

Thanks for any help.
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
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 »

@StanHD
Hi, happy to make you happy (more or less) !!!

for the Unit unknown error:
this one occur when check device ID during Set Level command.
Do you have replaced any pre-generated device (push button) by a selector ?? this could explain that.

for the Error Connecting to Broadlink device error:
plugin try to do regular connection to the broadlink device:
every 2 minutes if you manage the temperature device otherwise every 5 minutes. check & try to see if any network failure occur at this time !!
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: RE: Re: Python Plugin: Broadlink RM2

Post by StanHD »

zak45 wrote:@StanHD
Hi, happy to make you happy (more or less) !!!

for the Unit unknown error:
this one occur when check device ID during Set Level command.
Do you have replaced any pre-generated device (push button) by a selector ?? this could explain that.

for the Error Connecting to Broadlink device error:
plugin try to do regular connection to the broadlink device:
every 2 minutes if you manage the temperature device otherwise every 5 minutes. check & try to see if any network failure occur at this time !!
Thanks for the fast reply. I haven't changed any of the push buttons, but I will check everything through. I have a "Sky Q" Wifi network which uses a dual band router with a mesh of 4 repeaters meshed throughout the house to move hdtv around using proprietary hardware / software. This is very reliable but maybe the errors are in some way caused by the Broadlink swapping between the connection points. (The system presents as a single ssid).

Must stress though that the plugin works really well so a few log errors aren't a problem Image
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
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 to all..
Windows 10 x64,Python 3.5.3 and problem with setup.exe!
problem.jpg
problem.jpg (121.93 KiB) Viewed 4060 times
someone help me please!
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 to all..
Windows 10 x64,Python 3.5.3 and problem with setup.exe!

someone help me please!
the version on pypi (0.4) is buggy , not able to be installed automatically with python v 3.x.
You need to take one from dropbox (0.3) and install it manually.
kingoifsnake74
Posts: 14
Joined: Saturday 06 May 2017 11:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Broadlink RM2 webimport

Post by kingoifsnake74 »

First of all respect for the pluganators and all the forum info. Had problems on the syn domoticz package, now on the rpi2 debian works flawless. Only troubled with the webimport function. Did the usual stuff chmod 777 and chmod +x, does anyone know how to open the webserver. The broadlink import switch was succesfully added btw.

2017-05-21 23:07:35.006 Error: (broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/plugins/

2017-05-21 23:07:35.006 Error: (broadlink) None

2017-05-21 23:07:35.006 Error: (broadlink) Not able to start Web server
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:
ilpier wrote:Hi to all..
Windows 10 x64,Python 3.5.3 and problem with setup.exe!

someone help me please!
the version on pypi (0.4) is buggy , not able to be installed automatically with python v 3.x.
You need to take one from dropbox (0.3) and install it manually.
Sorry Zak,which version from Dropbox?
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:
Sorry Zak,which version from Dropbox?
this one :
python-broadlink-master.zip; you should be able to find on the forum how to install it.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Broadlink RM2 webimport

Post by zak45 »

kingoifsnake74 wrote:First of all respect for the pluganators and all the forum info. Had problems on the syn domoticz package, now on the rpi2 debian works flawless. Only troubled with the webimport function. Did the usual stuff chmod 777 and chmod +x, does anyone know how to open the webserver. The broadlink import switch was succesfully added btw.

2017-05-21 23:07:35.006 Error: (broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/plugins/

2017-05-21 23:07:35.006 Error: (broadlink) None

2017-05-21 23:07:35.006 Error: (broadlink) Not able to start Web server
this is related to no-windows OS;
Have updated plugin_http.py on Dropbox; just download and replace the one in plugin directory.
let me know.
kingoifsnake74
Posts: 14
Joined: Saturday 06 May 2017 11:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by kingoifsnake74 »

I skipped the web import and did it manually with jsonbutton jsoncode and jaonsublr. Succesfull import. Some devices from the import work but most don't. Even if i execute the code in ssh. Changed all the rights, Is the code to long? Is it double? Wrong format? Last step 2 make me happy , thanx

2017-05-22 19:36:21.817 User: Admin initiated a switch command (197/broadlink - 5-139 keukendimmer dimmen/On)
2017-05-22 19:36:21.820 (broadlink) Calling message handler 'onCommand'.
2017-05-22 19:36:21.820 (broadlink) onCommand called for Unit 139: Parameter 'On', Level: 0 , Connected : True
2017-05-22 19:36:21.820 (broadlink) Generate on Command for learned code stored on unit :139
2017-05-22 19:36:21.826 (broadlink) Code loaded : e90484030506050506050506050606090b0b050506050b0b0a06050a0b0b0a06050b05050506130405060506050505060505060c090b050606040b0b0a06050b0a0b0b05050b05050506130505050507060406060406050b0a0b060505050b0b0a06050c0a0a0b05050b06050505120605060505050704050605060a0b0b050506050a0b0b05050b0b0a0b06050a07040505130507040505060604060606040b0a0b050506050b0b0a05060b0a0b0a06050b05050604130506050506050505060506050b0b0a060406050b0a0b06050b0a0b0b06040b05060505120704060406060406050606050a0b0a060506040c0b0a05050b0a0c0a05050b06040605120605060505050605050704050b0b0a060605050b0a0b05050b0b0a0b06050a06050506120505060505060505060505050b0b0a060506050b0a0b05060a0c0a0a06060a05050506120505060604060605050506050a0b0b050507050a0b0a06050b0a0b0b05050b05050506120605050605050605050506050b0a0b060506040b0b0b05060b090b0b05050b05050605130604050606050505050605050b0b0a060506050b0a0b06050b0b0a0c04050a0605050711050506050704050506050507090b0b050704050b0b0a0507090b0b0a07040b05060406120505060506050505070505050a0b0b050506050b0b0a07040b0b0a0b05050b05050605120605050506050606040506050b0b0a060505060a0b0a06050b0b0a0b05060a06050505120605070405050605060506040d090a060506050a0b0b07040c0a0a0b06050b05050507110505060605050505060506050a0b0b050606050a0a0b0606090b0b0b05050b05060406120704050506050605050506050b0a0b060505050b0b0a06050b0c090c05040b06050604120605050606040605050605050b0b0a060506040b0b0b05060a0c090b06050a06050505130505060605040606060405060a0b0c050406050b0b0a05060a0b0b0a06050b05060504130604060506050605060505050a0c0a050506050b0b0a06050b0b0b0a05050b05070407110506050506050506050605050b0a0b060505050b0b0b05060a0a0b0c04050b05060505120605050704050605050605050b0b0b050606040a0b0b05050b0b0b0a06050c04050505130604060506050505060506050c0a0a050507040a0d0906050a0b0b0a06050b0505050711050506050605050605050606090b0b050506050b0b0a06050b0a0b0b05050b0505
2017-05-22 19:36:21.858 (broadlink) Connected to Broadlink device.
2017-05-22 19:36:21.859 (broadlink) b'\xe9\x04\x84\x03\x05\x06\x05\x05\x06\x05\x05\x06\x05\x06\x06\t\x0b\x0b\x05\x05\x06\x05\x0b\x0b\n\x06\x05\n\x0b\x0b\n\x06\x05\x0b\x05\x05\x05\x06\x13\x04\x05\x06\x05\x06\x05\x05\x05\x06\x05\x05\x06\x0c\t\x0b\x05\x06\x06\x04\x0b\x0b\n\x06\x05\x0b\n\x0b\x0b\x05\x05\x0b\x05\x05\x05\x06\x13\x05\x05\x05\x05\x07\x06\x04\x06\x06\x04\x06\x05\x0b\n\x0b\x06\x05\x05\x05\x0b\x0b\n\x06\x05\x0c\n\n\x0b\x05\x05\x0b\x06\x05\x05\x05\x12\x06\x05\x06\x05\x05\x05\x07\x04\x05\x06\x05\x06\n\x0b\x0b\x05\x05\x06\x05\n\x0b\x0b\x05\x05\x0b\x0b\n\x0b\x06\x05\n\x07\x04\x05\x05\x13\x05\x07\x04\x05\x05\x06\x06\x04\x06\x06\x06\x04\x0b\n\x0b\x05\x05\x06\x05\x0b\x0b\n\x05\x06\x0b\n\x0b\n\x06\x05\x0b\x05\x05\x06\x04\x13\x05\x06\x05\x05\x06\x05\x05\x05\x06\x05\x06\x05\x0b\x0b\n\x06\x04\x06\x05\x0b\n\x0b\x06\x05\x0b\n\x0b\x0b\x06\x04\x0b\x05\x06\x05\x05\x12\x07\x04\x06\x04\x06\x06\x04\x06\x05\x06\x06\x05\n\x0b\n\x06\x05\x06\x04\x0c\x0b\n\x05\x05\x0b\n\x0c\n\x05\x05\x0b\x06\x04\x06\x05\x12\x06\x05\x06\x05\x05\x05\x06\x05\x05\x07\x04\x05\x0b\x0b\n\x06\x06\x05\x05\x0b\n\x0b\x05\x05\x0b\x0b\n\x0b\x06\x05\n\x06\x05\x05\x06\x12\x05\x05\x06\x05\x05\x06\x05\x05\x06\x05\x05\x05\x0b\x0b\n\x06\x05\x06\x05\x0b\n\x0b\x05\x06\n\x0c\n\n\x06\x06\n\x05\x05\x05\x06\x12\x05\x05\x06\x06\x04\x06\x06\x05\x05\x05\x06\x05\n\x0b\x0b\x05\x05\x07\x05\n\x0b\n\x06\x05\x0b\n\x0b\x0b\x05\x05\x0b\x05\x05\x05\x06\x12\x06\x05\x05\x06\x05\x05\x06\x05\x05\x05\x06\x05\x0b\n\x0b\x06\x05\x06\x04\x0b\x0b\x0b\x05\x06\x0b\t\x0b\x0b\x05\x05\x0b\x05\x05\x06\x05\x13\x06\x04\x05\x06\x06\x05\x05\x05\x05\x06\x05\x05\x0b\x0b\n\x06\x05\x06\x05\x0b\n\x0b\x06\x05\x0b\x0b\n\x0c\x04\x05\n\x06\x05\x05\x07\x11\x05\x05\x06\x05\x07\x04\x05\x05\x06\x05\x05\x07\t\x0b\x0b\x05\x07\x04\x05\x0b\x0b\n\x05\x07\t\x0b\x0b\n\x07\x04\x0b\x05\x06\x04\x06\x12\x05\x05\x06\x05\x06\x05\x05\x05\x07\x05\x05\x05\n\x0b\x0b\x05\x05\x06\x05\x0b\x0b\n\x07\x04\x0b\x0b\n\x0b\x05\x05\x0b\x05\x05\x06\x05\x12\x06\x05\x05\x05\x06\x05\x06\x06\x04\x05\x06\x05\x0b\x0b\n\x06\x05\x05\x06\n\x0b\n\x06\x05\x0b\x0b\n\x0b\x05\x06\n\x06\x05\x05\x05\x12\x06\x05\x07\x04\x05\x05\x06\x05\x06\x05\x06\x04\r\t\n\x06\x05\x06\x05\n\x0b\x0b\x07\x04\x0c\n\n\x0b\x06\x05\x0b\x05\x05\x05\x07\x11\x05\x05\x06\x06\x05\x05\x05\x05\x06\x05\x06\x05\n\x0b\x0b\x05\x06\x06\x05\n\n\x0b\x06\x06\t\x0b\x0b\x0b\x05\x05\x0b\x05\x06\x04\x06\x12\x07\x04\x05\x05\x06\x05\x06\x05\x05\x05\x06\x05\x0b\n\x0b\x06\x05\x05\x05\x0b\x0b\n\x06\x05\x0b\x0c\t\x0c\x05\x04\x0b\x06\x05\x06\x04\x12\x06\x05\x05\x06\x06\x04\x06\x05\x05\x06\x05\x05\x0b\x0b\n\x06\x05\x06\x04\x0b\x0b\x0b\x05\x06\n\x0c\t\x0b\x06\x05\n\x06\x05\x05\x05\x13\x05\x05\x06\x06\x05\x04\x06\x06\x06\x04\x05\x06\n\x0b\x0c\x05\x04\x06\x05\x0b\x0b\n\x05\x06\n\x0b\x0b\n\x06\x05\x0b\x05\x06\x05\x04\x13\x06\x04\x06\x05\x06\x05\x06\x05\x06\x05\x05\x05\n\x0c\n\x05\x05\x06\x05\x0b\x0b\n\x06\x05\x0b\x0b\x0b\n\x05\x05\x0b\x05\x07\x04\x07\x11\x05\x06\x05\x05\x06\x05\x05\x06\x05\x06\x05\x05\x0b\n\x0b\x06\x05\x05\x05\x0b\x0b\x0b\x05\x06\n\n\x0b\x0c\x04\x05\x0b\x05\x06\x05\x05\x12\x06\x05\x05\x07\x04\x05\x06\x05\x05\x06\x05\x05\x0b\x0b\x0b\x05\x06\x06\x04\n\x0b\x0b\x05\x05\x0b\x0b\x0b\n\x06\x05\x0c\x04\x05\x05\x05\x13\x06\x04\x06\x05\x06\x05\x05\x05\x06\x05\x06\x05\x0c\n\n\x05\x05\x07\x04\n\r\t\x06\x05\n\x0b\x0b\n\x06\x05\x0b\x05\x05\x05\x07\x11\x05\x05\x06\x05\x06\x05\x05\x06\x05\x05\x06\x06\t\x0b\x0b\x05\x05\x06\x05\x0b\x0b\n\x06\x05\x0b\n\x0b\x0b\x05\x05\x0b\x05\x05'
2017-05-22 19:36:21.862 Error: (broadlink) Code Sent WARNING....Probably timeout
2017-05-22 19:36:21.862 (broadlink) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins//BroadlinkRM2-5-139.ini
2017-05-22 19:36:21.862 (broadlink - 5-139 keukendimmer dimmen) Updating device from 1:'On-78' to have values 1:'On-123'.
2017-05-22 19:36:21.868 (broadlink) Update 1:'On-123' (broadlink - 5-139 keukendimmer dimmen)
kingoifsnake74
Posts: 14
Joined: Saturday 06 May 2017 11:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by kingoifsnake74 »

Oh and will try the updated import soon. Thanx for the effort!
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 »

@kingoifsnake74

woaww... yes , long code. this can made some problem.
attached updated version of broadlink, you can try to see if this solve your problem.
__init__.zip
(3.54 KiB) Downloaded 142 times
you need to replace existing __init__.py file with this one on your broadlink folder: here, we speak about module, not plugin.
Do not forget to make a backup before, of course.
kingoifsnake74
Posts: 14
Joined: Saturday 06 May 2017 11:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2

Post by kingoifsnake74 »

Great module! Had problems with livolo codes and learned them again, much shorter code now and it works. Ok i miss one from the kitchen but thats livolo bit buggy. Thanx again for the effort and help. This noob has the broadlink module and the ha bridge for alexa works like a charm. Now a good backup :D
letmein
Posts: 2
Joined: Tuesday 02 May 2017 21:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7
Contact:

Re: Python Plugin: Broadlink RM2

Post by letmein »

Hello everybody,
i'm tryind few hours now to install RM2 to rpi without success, i've already installed it on another rpi some time ago without a lot hassle, but this time it wont get installed i tried few things that i found here but nothing. The error i get when i try "sudo pip3 install broadlink" is this:

Code: Select all

Downloading/unpacking broadlink
  Downloading broadlink-0.4.tar.gz
  Running setup.py (path:/tmp/pip-build-06i1bqfv/broadlink/setup.py) egg_info for package broadlink
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12
        except ImportError, e:
                          ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12

    except ImportError, e:

                      ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-06i1bqfv/broadlink
Storing debug log for failure in /root/.pip/pip.log
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2

Post by Phantom »

Will this mini rm 3 also work with your script?
https://www.banggood.com/Broadlink-Blac ... otproducts
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 »

letmein wrote:Hello everybody,
i'm tryind few hours now to install RM2 to rpi without success, i've already installed it on another rpi some time ago without a lot hassle, but this time it wont get installed i tried few things that i found here but nothing. The error i get when i try "sudo pip3 install broadlink" is this:

Code: Select all

Downloading/unpacking broadlink
  Downloading broadlink-0.4.tar.gz
  Running setup.py (path:/tmp/pip-build-06i1bqfv/broadlink/setup.py) egg_info for package broadlink
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12
        except ImportError, e:
                          ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12

    except ImportError, e:

                      ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-06i1bqfv/broadlink
Storing debug log for failure in /root/.pip/pip.log
the version on pypi have a problem with python 3. download the version 0.3 on the dropbox : python-broadlink-master.zip
and install it :
just decompress on some folder, go to the folder and enter : pip3 install .
do not forget the dot at the end
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 »

Phantom wrote:Will this mini rm 3 also work with your script?
https://www.banggood.com/Broadlink-Blac ... otproducts
I would say yes.. some have tried if I'm not wrong. But could not confirm as I do not own it.
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2

Post by Phantom »

zak45 wrote:
Phantom wrote:Will this mini rm 3 also work with your script?
https://www.banggood.com/Broadlink-Blac ... otproducts
I would say yes.. some have tried if I'm not wrong. But could not confirm as I do not own it.
Alright thanks, il try it out then :)
letmein
Posts: 2
Joined: Tuesday 02 May 2017 21:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7
Contact:

Re: Python Plugin: Broadlink RM2

Post by letmein »

zak45 wrote:
letmein wrote:Hello everybody,
i'm tryind few hours now to install RM2 to rpi without success, i've already installed it on another rpi some time ago without a lot hassle, but this time it wont get installed i tried few things that i found here but nothing. The error i get when i try "sudo pip3 install broadlink" is this:

Code: Select all

Downloading/unpacking broadlink
  Downloading broadlink-0.4.tar.gz
  Running setup.py (path:/tmp/pip-build-06i1bqfv/broadlink/setup.py) egg_info for package broadlink
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12
        except ImportError, e:
                          ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-06i1bqfv/broadlink/setup.py", line 12

    except ImportError, e:

                      ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-06i1bqfv/broadlink
Storing debug log for failure in /root/.pip/pip.log
the version on pypi have a problem with python 3. download the version 0.3 on the dropbox : python-broadlink-master.zip
and install it :
just decompress on some folder, go to the folder and enter : pip3 install .
do not forget the dot at the end
Thank you zak, after some cleanup it worked great!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest