I setup LIRC to control my AC unit with an IR LED. I have this command which works great:
irsend SEND_ONCE ac KEY_POWER
Now, is there a way to issue the same command using a Python script?
Thanks!
Code: Select all
import subprocess
rtn = subprocess.call(["irsend", "SEND_ONCE", "ac", "KEY_POWER"])
# rtn should equal 0 if command ran without error