Merge branch 'master' of ssh://plrg.eecs.uci.edu/home/git/smartthings-infrastructure
authorbdemsky <bdemsky@uci.edu>
Sun, 4 Aug 2019 21:15:05 +0000 (14:15 -0700)
committerbdemsky <bdemsky@uci.edu>
Sun, 4 Aug 2019 21:15:05 +0000 (14:15 -0700)
1  2 
Extractor/ExtractorScript.py

@@@ -290,8 -290,10 +290,8 @@@ def ExtractEvents(extractedEvents)
                                extractedEvents.write(line)
                        event.close()
                elif eventList[i] == "unlock":
 -                      event = open("eventSimulator/unlockEvent.groovy", "r")
 -                      for line in event:
 -                              extractedEvents.write(line)
 -                      event.close()
 +                        #Don't do anything for this case
 +                        counter = counter - 1
                elif eventList[i] == "contact.open":
                        event = open("eventSimulator/contactOpenEvent.groovy", "r")
                        for line in event:
                                event = open("eventSimulator/musicPlayerLevelEvent.groovy", "r")
                        elif capability == "capability.switchLevel":
                                event = open("eventSimulator/switchLevelEvent.groovy", "r")
+                       elif capability == "capability.colorControl":
+                               event = open("eventSimulator/colorLevelChangeEvent.groovy", "r")
                        for line in event:
                                extractedEvents.write(line)
                        event.close()