implemented light function for button in e-lab

This commit is contained in:
root 2017-03-13 22:09:19 +00:00
parent bc4bd6b121
commit 0e5562767a
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ def exec_chch_button_cmd(event):
if count == 1:
if event.pin_num == 0:
call(["/home/automation/chch-power/light.sh","1"])
elif event.pin_num == 1:
call(["/home/automation/chch-power/light.sh","2"])
else:
sys.stderr.write("No room specific function for room " + str(event.pin_num) + "\n")
# '. .' toggle current room