l0gic wrote:Hi,
your broadlink looks like it has installed fine.
I'm guessing your issue is
device = broadlink.rm(host=("<your RM3 IP address>",80), mac=bytearray.fromhex("<your RM3 mac>"))
You need to replace <your RM3 IP address> with the IP address of the broadlink unit and the same with the mac for <your RM3 mac>.
For the mac, remove the : e.g. aa:bb:cc:dd:ee:ff becomes aabbccddeeff
HTH Kevin
Thx Kevin
Too many choices - any details how exactly?
device = broadlink.rm(host=("<192.168.1.110>",80), mac=bytearray.fromhex("<aabbccddeeff>"))
device = broadlink.rm(host=("192.168.1.110",80), mac=bytearray.fromhex("aabbccddeeff"))
device = broadlink.rm(host=(192.168.1.110,80), mac=bytearray.fromhex(aabbccddeeff))
device = broadlink.rm(host=(192.168.001.110,80), mac=bytearray.fromhex("<aabbccddeeff>"))
etc.
Code: Select all
root@raspberrypi:/home/pi/domoticz/scripts/python# python learn.py
File "learn.py", line 7
device = broadlink.rm(host=(192.168.1.110,80), mac=bytearray.fromhex(B4430DEEE880))
^
SyntaxError: invalid syntax
root@raspberrypi:/home/pi/domoticz/scripts/python#
Code: Select all
root@raspberrypi:/home/pi/domoticz/scripts/python# python learn.py
Traceback (most recent call last):
File "learn.py", line 7, in <module>
device = broadlink.rm(host=(192168001110,80), mac=bytearray.fromhex(b4430deee880))
NameError: name 'b4430deee880' is not defined
root@raspberrypi:/home/pi/domoticz/scripts/python#