Just change RM IP , MAC and code data (in hex, the format you get from getBroadlinkSharedData.py), First send it as is, if you get the “input strings must be a multiple of 16 in length” error duplicate the code, if still same error triple it until it’s in the right length.
Let me know if it works this way and let’s deal with HA support later.
After I duplicate the hex code for 6th time, the light turn on!
However, it has this error…
Connecting to Broadlink device....
Connected....
Traceback (most recent call last):
File "sendCode.py", line 21, in <module>
device.send_data(codeData.decode('hex'))
File "D:\Python27\lib\site-packages\broadlink-0.3-py2.7.egg\broadlink\__init__.py", line 455, in send_data
self.send_packet(0x6a, packet)
File "D:\Python27\lib\site-packages\broadlink-0.3-py2.7.egg\broadlink\__init__.py", line 250, in send_packet
response = self.cs.recvfrom(1024)
socket.timeout: timed out
Hi… I can’t duplicate an air conditionate code… It’s bigger Than then others and don’t have the = at the end… HA says that is not correct… How i can solve this issue? Thanks. Ps using the e-control broadlink app the AC works great
@Danielhiversen, I have updated HA to 0.36 and my TC2 is no longer working. I have to edit the /usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/broadlink.py file again to make it works. This time the line to edit is line 183; self._device.send_data(binascii.unhexlify(packet)). Can you fix this for the future version? Thanks.
The unrealistic values are probably some hardware issue, and I am not sure how much we can do with it. We could implement a filter that reject the value if it is unrealistic. A pull request to fix that is welcome.
The other issue seams to be related to some network problem. But it should not stop HA or be of any big problem, they will just delay the update of the device. You can try to increase the timeout from the config.