Open rluvaton opened 1 year ago
Hi @rluvaton, were you able to get it working with the example?
Hey, I don't see in that example the key id 😬
Hmm, it does appear to be kinda buried at the bottom in favor of parsing it into its head+key components. A more succinct example would be:
ir = Contrib.IRRemoteControlDevice( 'abcdefghijklmnop123456', '172.28.321.475', '1234567890123abc', persist=True )
# learn a new remote
print("Press button on your remote control")
button = ir.receive_button(timeout=15)
if (button == None):
print("Timeout, button code is not received")
sys.exit(1)
print("Received button:", button)
for i in range(10):
print("Simulating button press...")
ir.send_button(button)
sleep(1)
Hi @rluvaton, did the above example help any?
It's not the same, I already have learned key
there is a cloud API for sending learned key for IR remote: Docs
Is there an equivalent for local mode?