If someone can build a script that runs like a daemon and waiting for commands to send to the braoadlink, it will become much faster that the rm-bridge because all commands will be sent locally with no handshake directly to the device. In fact it needs to connect each time you send a command which takes several seconds. Python script for learning a remote code and saving to a text file - runs from command line (learn.py)ĭjassa1 wrote:This is normal that actually this script is slower than rm-bridge, it does not stay connected to the broadlink like the later. Print "Device " + str(index + 1) +" MAC address = " + mymacadd Mymacadd = macadd + " " + macadd + " " + macadd + " " + macadd + " " + macadd + " " + macadd Macadd = ''.join(format(x, '02x') for x in mydevices.mac) Print "Device " + str(index + 1) +" Host address = " + ipadd Print "Found " + str(len(mydevices )) + " broadlink devices" Mydevices = broadlink.discover(timeout=5) Print "Scanning network for Broadlink devices." Print "Using python library created by Matthew Garrett" #These must be set up using the Broadlink app first! #Script to locate Broadlink devices on local network by Graeme Brown Dec 23 2016
0 Comments
Leave a Reply. |