t0mer / broadlinkmanager-docker

Broadlink Manager is a python based project that allows you to contorol your broadlink devices. Discover, Leran and send command in a very easy way
Apache License 2.0
261 stars 56 forks source link

Update Python-Library and add support for 0x6539 #30

Closed cadivus closed 3 years ago

cadivus commented 3 years ago

Hi!

I like your project, but it doesn't work for my RM4c (0x6539) yet. That for, I updated the python-library and added my device to the getDeviceName and the README. For some reason, broadlink.gendevice(0x6539, ('***.***.***.**',80), '**********') doesn't work, but broadlink.gendevice(0x610F, ('***.***.***.**',80), '**********') does. Both devices are similar (https://github.com/mjg59/python-broadlink/blob/master/broadlink/__init__.py), what makes this a bit strange. Because of that, I added a little workaround in your initDevice.

It would be great if you'd apply the changes, so that your project works for every 0x6539. If you don't want to update the lib, just adding my code should do the job too since my tests with the old library were successful as well.