NightRang3r / Broadlink-e-control-db-dump

These two scripts will "parse" the broadlink e-Control Android application database or SharedData and dump the IR / RF codes for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub
149 stars 52 forks source link

received error from "sendCode.py" #20

Open pasna opened 6 years ago

pasna commented 6 years ago

Hi NightRang3r, I follow each step carefully and now I received error message below. I beg if you will advise what can goes wrong or I had missed something.

Mac-Pro:python-broadlink ipasitt$ python sendCode.py Traceback (most recent call last): File "sendCode.py", line 6, in device = broadlink.rm(host=("192.168.0.51",80), mac=bytearray.fromhex("34ea34e46725")) TypeError: init() takes exactly 4 arguments (3 given)

Please accept my sincere appreciation.

ProggerPete commented 6 years ago

I have the same issue.

ProggerPete commented 6 years ago

It looks like the Broadlink-e-control-db-dump script was updated to require an extra parameter 'devtype' I'm using an RM Mini 3 so I changed line 6 in the script to

device = broadlink.rm(host=("MYIP",80), mac=bytearray.fromhex("MYMAC"), devtype='rm_mini')

It's working now. =)

bzhjim commented 6 years ago

Thank you it works for me.

hexates commented 5 years ago

I had this exact same issue and this fix worked for me, thank you so much @ProggerPete!