From 0e5562767a6442672fa64d568128f0bf54f4b8c3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Mar 2017 22:09:19 +0000 Subject: [PATCH] implemented light function for button in e-lab --- chch-power.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chch-power.py b/chch-power.py index 9cfd9f4..805ec5d 100644 --- a/chch-power.py +++ b/chch-power.py @@ -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