implemented light function for button in e-lab
This commit is contained in:
parent
bc4bd6b121
commit
0e5562767a
|
@ -89,6 +89,8 @@ def exec_chch_button_cmd(event):
|
||||||
if count == 1:
|
if count == 1:
|
||||||
if event.pin_num == 0:
|
if event.pin_num == 0:
|
||||||
call(["/home/automation/chch-power/light.sh","1"])
|
call(["/home/automation/chch-power/light.sh","1"])
|
||||||
|
elif event.pin_num == 1:
|
||||||
|
call(["/home/automation/chch-power/light.sh","2"])
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("No room specific function for room " + str(event.pin_num) + "\n")
|
sys.stderr.write("No room specific function for room " + str(event.pin_num) + "\n")
|
||||||
# '. .' toggle current room
|
# '. .' toggle current room
|
||||||
|
|
Loading…
Reference in New Issue