Open emmaly opened 6 years ago
It appears they've added a fourth argument: devtype
.
edit line 167:
RM3Device = broadlink.rm((RealIPAddress, RealPort), RealMACAddress, RealTimeout)
made mine work.
now the error is:
Traceback (most recent call last):
File "./BlackBeanControl.py", line 168, in
I get the same error.
Traceback (most recent call last): File "/etc/openhab2/scripts/BlackBeanControl/BlackBeanControl.py", line 169, in <module> RM3Device.auth() File "/usr/local/lib/python2.7/dist-packages/broadlink/__init__.py", line 221, in auth response = self.send_packet(0x65, payload) File "/usr/local/lib/python2.7/dist-packages/broadlink/__init__.py", line 271, in send_packet checksum = adler32(payload, 0xbeaf) & 0xffff TypeError: adler32() argument 1 must be string or read-only buffer, not bytearray
macaddress should be written without - or : this fixed my setup
I get the same error if i write the mac without : or -
Breaks with https://github.com/mjg59/python-broadlink/commit/8754493951b887e850d93100898d6883443b124f. Works with previous commit https://github.com/mjg59/python-broadlink/commit/21d96bd140359a3b360bd728b963effc6b747c4f.