Help with a gradual siren behavior


#1

1) Give a description of the problem

Inspired by Multiple ways to restrict the execution of a piston, I designed a piston that should sound a brief (5-second) siren when motion is detected in my outside Arlo cameras OR contact sensors open. If after 1 minute there is still motion or contact open, it should start a long (3-minute) siren. Then, wait for 1 hour until starting the process again (to avoid driving the neighbors crazy in case of an error).

The problem: When the piston is fired, the 3-minute siren is started immediately instead of the 5-second siren.

2) What is the expected behavior?

See in section 1.

3) What is happening/not happening?

See in section 1.

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **info** SHM COMPLETED DISARM CHILDREN:2 ISA:0aac8155-6d47-480b-8458-d00fcb318b52, TIME:0.143

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:44:08 PM: **trace** onSecurityEnable(MODE_DISABLE)

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:44:08 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **trace** unscheduling delayed alarms

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **trace** /unsubscribeChildApps

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **trace** skipping unconfigured app Alert with Sirens

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **trace** skipping unconfigured app Alert with Lights

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **trace** unsubscribeChildApps()

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **info** SHM TRYING DISARM CHILDREN: 2 ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:08 PM: **info** SHM armDisarmCheck executing off

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:44:08 PM: **info** SHM getInitialData 0.153 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:44:08 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:44:08 PM: **debug** intrusionState()

[e7cf60dc-fae0-43eb-8c18-9267097c1285](https://graph-na04-useast2.api.smartthings.com/ide/logs#e7cf60dc-fae0-43eb-8c18-9267097c1285) 12:44:08 PM: **trace** getPhrases(), state.welcomeIssue = null

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:44:03 PM: **info** ╔ Event processed successfully (192ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:44:03 PM: **trace** ║╔ Execution stage complete. (48ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:44:03 PM: **trace** ║╚ Execution stage started

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:44:03 PM: **trace** ║ Runtime (43474 bytes) successfully initialized in 54ms (v0.3.107.20180806) (141ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:44:03 PM: **info** ╚ Received event [Main Door Sensor].contact = closed with a delay of 107ms

[e7cf60dc-fae0-43eb-8c18-9267097c1285](https://graph-na04-useast2.api.smartthings.com/ide/logs#e7cf60dc-fae0-43eb-8c18-9267097c1285) 12:44:03 PM: **trace** getPhrases(), state.welcomeIssue = null

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:44:03 PM: **debug** motionOrContactHandler(Main Door Sensor contact:closed)

[9b90ceea-428c-4e4b-9ca4-ee27ddcef259](https://graph-na04-useast2.api.smartthings.com/ide/logs#9b90ceea-428c-4e4b-9ca4-ee27ddcef259) 12:44:03 PM: **debug** Main Door Sensor: Parse returned [name:contact, value:closed, descriptionText:Main Door Sensor was closed]

[9b90ceea-428c-4e4b-9ca4-ee27ddcef259](https://graph-na04-useast2.api.smartthings.com/ide/logs#9b90ceea-428c-4e4b-9ca4-ee27ddcef259) 12:44:03 PM: **debug** Main Door Sensor: Parsing 'on/off: 0'

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:44:03 PM: **trace** [SM] Executing handleDeviceAlert()

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:44:03 PM: **trace** [SM] Executing handleSuccess()

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:44:03 PM: **trace** [SM] Executing vendorMessage()

[8a84d41a-75d4-495a-a7f0-ad437adc8796](https://graph-na04-useast2.api.smartthings.com/ide/logs#8a84d41a-75d4-495a-a7f0-ad437adc8796) 12:44:03 PM: **debug** Main Siren is off

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:44:03 PM: **debug** getChildDevices(true), children=7

[8a84d41a-75d4-495a-a7f0-ad437adc8796](https://graph-na04-useast2.api.smartthings.com/ide/logs#8a84d41a-75d4-495a-a7f0-ad437adc8796) 12:44:03 PM: **debug** Main Siren is off

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:44:03 PM: **debug** getChildDevices(true), children=7

[cf7ec24f-9aea-435d-b05d-778dbe7507e1](https://graph-na04-useast2.api.smartthings.com/ide/logs#cf7ec24f-9aea-435d-b05d-778dbe7507e1) 12:44:02 PM: **info** HH execute(true, null, null), newMode: null

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:44:02 PM: **debug** Updating device 6001945D4D23 pin 8 to 0 at 192.168.1.6:14114

[e7cf60dc-fae0-43eb-8c18-9267097c1285](https://graph-na04-useast2.api.smartthings.com/ide/logs#e7cf60dc-fae0-43eb-8c18-9267097c1285) 12:44:00 PM: **trace** getPhrases(), state.welcomeIssue = null

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:59 PM: **debug** motionOrContactHandler(Entrance motion:inactive)

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:59 PM: **trace** [SM] Executing handleDeviceAlert()

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:59 PM: **trace** [SM] Executing handleSuccess()

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:59 PM: **trace** [SM] Executing vendorMessage()

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:43:56 PM: **debug** getChildDevices(true), children=7

[8a84d41a-75d4-495a-a7f0-ad437adc8796](https://graph-na04-useast2.api.smartthings.com/ide/logs#8a84d41a-75d4-495a-a7f0-ad437adc8796) 12:43:56 PM: **debug** Main Siren is on

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:43:56 PM: **debug** getChildDevices(true), children=7

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:56 PM: **info** [SM] arloApiPostResponseTime=532

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:56 PM: **trace** [SM] Executing arloApiPostHandler()

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **info** ╔ Event processed successfully (435ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **info** ║ Setting up scheduled job for Wed, Aug 15 2018 @ 12:46:56 PM IDT (in 179.996s)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║╔ Execution stage complete. (262ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Requesting a wake up for Wed, Aug 15 2018 @ 12:46:56 PM IDT (in 180.0s)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed virtual command [Arlo Siren, Main Siren].wait (0ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed [Main Siren].siren (43ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed [Arlo Siren].siren (98ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed virtual command [Arlo Siren, Main Siren].sendSMSNotification (18ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed virtual command [Arlo Siren, Main Siren].sendPushNotification (16ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║║ Executed virtual command [Arlo Siren, Main Siren].setVariable (2ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║╚ Execution stage started

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:56 PM: **trace** ║ Runtime (43475 bytes) successfully initialized in 59ms (v0.3.107.20180806) (154ms)

[9d49084f-c7c8-4944-a96b-d694650f1a9f](https://graph-na04-useast2.api.smartthings.com/ide/logs#9d49084f-c7c8-4944-a96b-d694650f1a9f) 12:43:55 PM: **info** ╚ Received event [Main Door Sensor].contact = open with a delay of 130ms

[8cba82e5-6400-4d6e-89f5-214cead52d3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#8cba82e5-6400-4d6e-89f5-214cead52d3d) 12:43:56 PM: **info** postEventToEndpoint: event successfully posted.

[8cba82e5-6400-4d6e-89f5-214cead52d3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#8cba82e5-6400-4d6e-89f5-214cead52d3d) 12:43:56 PM: **debug** Property Change Event switch: on (source: DEVICE)

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:43:56 PM: **debug** Updating device 6001945D4D23 pin 8 to 1 at 192.168.1.6:14114

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:56 PM: **trace** [SM] Executing applyArloAuthorizationHeaders()

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:56 PM: **trace** [SM] Executing arloApiPost()

[a926eaad-4077-4100-b073-bfd953f37c7b](https://graph-na04-useast2.api.smartthings.com/ide/logs#a926eaad-4077-4100-b073-bfd953f37c7b) 12:43:56 PM: **trace** [DTH] Executing soundSiren() for device=Arlo Siren

[a926eaad-4077-4100-b073-bfd953f37c7b](https://graph-na04-useast2.api.smartthings.com/ide/logs#a926eaad-4077-4100-b073-bfd953f37c7b) 12:43:56 PM: **trace** [DTH] Executing on() for Arlo Siren

[c56c8d14-696f-4694-9e25-636bd903af3d](https://graph-na04-useast2.api.smartthings.com/ide/logs#c56c8d14-696f-4694-9e25-636bd903af3d) 12:43:56 PM: **trace** [SM] Executing arloApiPost()

[a926eaad-4077-4100-b073-bfd953f37c7b](https://graph-na04-useast2.api.smartthings.com/ide/logs#a926eaad-4077-4100-b073-bfd953f37c7b) 12:43:56 PM: **trace** [DTH] Executing soundSiren() for device=Arlo Siren

[a926eaad-4077-4100-b073-bfd953f37c7b](https://graph-na04-useast2.api.smartthings.com/ide/logs#a926eaad-4077-4100-b073-bfd953f37c7b) 12:43:56 PM: **trace** [DTH] Executing on() for Arlo Siren

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:56 PM: **trace** capturing clip, duration: 30000, pre: 4999

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **trace** triggeredRecently(9b90ceea-428c-4e4b-9ca4-ee27ddcef259): false, lastTrigger: 1534253351856

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **trace** triggeredRecently(9b90ceea-428c-4e4b-9ca4-ee27ddcef259): false, lastTrigger: 1534253351856

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **info** SHM intrusionHandler(contact:open) - away, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **info** SHM isActiveSensor(contact:open, app: away, location: away) = true, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **trace** devices=[Main Door Sensor, Balcony Door Sensor, Kitchen Door Sensor, Laundry Door Sensor, Tamper Switch]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **trace** isAwayModeSensor(contact: open)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:55 PM: **debug** motionOrContactHandler(Main Door Sensor contact:open)

[9b90ceea-428c-4e4b-9ca4-ee27ddcef259](https://graph-na04-useast2.api.smartthings.com/ide/logs#9b90ceea-428c-4e4b-9ca4-ee27ddcef259) 12:43:55 PM: **debug** Main Door Sensor: Parsing 'on/off: 1'

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:54 PM: **info** SHM getInitialData 0.164 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:54 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[e7cf60dc-fae0-43eb-8c18-9267097c1285](https://graph-na04-useast2.api.smartthings.com/ide/logs#e7cf60dc-fae0-43eb-8c18-9267097c1285) 12:43:54 PM: **trace** getPhrases(), state.welcomeIssue = null

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **info** SHM getInitialData 0.071 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **info** SHM getInitialData 0.165 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **info** SHM getInitialData 0.12 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **info** SHM getInitialData 0.075 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:52 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **trace** capturing clip, duration: 30000, pre: 4999

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **trace** triggeredRecently(8a496f4f-48c5-48ed-894b-50908d70188a): false, lastTrigger: 1534325177236

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **trace** triggeredRecently(8a496f4f-48c5-48ed-894b-50908d70188a): false, lastTrigger: 1534325177236

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **info** SHM intrusionHandler(motion:active) - away, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **info** SHM isActiveSensor(motion:active, app: away, location: away) = true, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **trace** devices=[Front Cam, Balcony Cam, Parking Cam, Entrance, Hallway, Office]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **trace** isAwayModeSensor(motion: active)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:51 PM: **debug** motionOrContactHandler(Entrance motion:active)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:46 PM: **debug** motionOrContactHandler(Office motion:inactive)

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **info** SHM getInitialData 0.156 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **info** SHM getInitialData 0.154 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **info** SHM getInitialData 0.076 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **info** SHM getInitialData 0.081 (00) incidents:01, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:43 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:42 PM: **trace** onSecurityReact([c3a11be8-a7c2-450b-bc57-4ad731133147:[[attribute:motion, value:active, timestamp:1534326222679]]])

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **trace** capturing clip, duration: 30000, pre: 4999

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:42 PM: **debug** summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-green, value:Armed (Away), iconColor:#79b821], [icon:indicator-dot-green, heroInfo:[heroStatus:ok, heroMessage:Everything OK], value:Everything OK, iconColor:#79b821]]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **info** SHM-INCIDENT SECURITY ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **trace** No delay

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **info** SHM intrusionHandler(motion:active) - away, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **info** SHM isActiveSensor(motion:active, app: away, location: away) = true, locationId: 7e1ec73a-bacc-4c75-a7ba-e8a73c891288, ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **trace** devices=[Front Cam, Balcony Cam, Parking Cam, Entrance, Hallway, Office]

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **trace** isAwayModeSensor(motion: active)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:42 PM: **debug** motionOrContactHandler(Office motion:active)

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:43:36 PM: **debug** Refreshed attributes of device [model:Konnected, ssdpUSN:uuid:8f655392-a778-4fee-97b9-48259185d4d23::urn:schemas-konnected-io:device:Security:1, verified:true, name:, networkAddress:C0A80106, ssdpNTS:null, serialNumber:, deviceAddress:3722, mac:6001945D4D23, devicetype:04, hub:31d24fd9-e6e8-4534-946f-53d27b4a8a0f, ssdpPath:/Device.xml, ssdpTerm:urn:schemas-konnected-io:device:Security:1, stringCount:04]

[69d02ea7-7123-47e6-a0f9-88480ef8f5b8](https://graph-na04-useast2.api.smartthings.com/ide/logs#69d02ea7-7123-47e6-a0f9-88480ef8f5b8) 12:43:36 PM: **debug** Refreshed attributes of device [model:Konnected, ssdpUSN:uuid:8f655392-a778-4fee-97b9-48259185d4d23::urn:schemas-konnected-io:device:Security:1, verified:true, name:, networkAddress:C0A80106, ssdpNTS:null, serialNumber:, deviceAddress:3722, mac:6001945D4D23, devicetype:04, hub:31d24fd9-e6e8-4534-946f-53d27b4a8a0f, ssdpPath:/Device.xml, ssdpTerm:urn:schemas-konnected-io:device:Security:1, stringCount:04]

[a81bcc48-75e9-493a-805f-e6fd94242386](https://graph-na04-useast2.api.smartthings.com/ide/logs#a81bcc48-75e9-493a-805f-e6fd94242386) 12:43:36 PM: **debug** Discovering Konnected devices on the network via SSDP

[a81bcc48-75e9-493a-805f-e6fd94242386](https://graph-na04-useast2.api.smartthings.com/ide/logs#a81bcc48-75e9-493a-805f-e6fd94242386) 12:43:36 PM: **debug** Discovering Konnected devices on the network via SSDP

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **info** SHM COMPLETED ARM/AWAY CHILDREN:2 ISA:0aac8155-6d47-480b-8458-d00fcb318b52, TIME:0.057

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:32 PM: **debug** summaryData: [[icon:indicator-dot-green, iconColor:#79b821, value:Armed (Away)], [icon:indicator-dot-green, iconColor:#79b821, value:Everything OK, heroInfo:[heroStatus:ok, heroMessage:Everything OK]]] - [[icon:indicator-dot-gray, value:Disarmed, iconColor:#878787], [icon:indicator-dot-green, heroInfo:[heroStatus:ok, heroMessage:Everything OK], value:Everything OK, iconColor:#79b821]]

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:32 PM: **trace** onSecurityEnable(MODE_AWAY)

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **trace** 0

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **trace** skipping unconfigured app Alert with Sirens

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **trace** skipping unconfigured app Alert with Lights

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **trace** subscribeChildApps()

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **info** SHM TRYING ARM/AWAY CHILDREN: 2 ISA: 0aac8155-6d47-480b-8458-d00fcb318b52

[0aac8155-6d47-480b-8458-d00fcb318b52](https://graph-na04-useast2.api.smartthings.com/ide/logs#0aac8155-6d47-480b-8458-d00fcb318b52) 12:43:32 PM: **info** SHM armDisarmCheck executing away

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:32 PM: **debug** intrusionState()

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:28 PM: **info** SHM getInitialData 0.065 (00) incidents:00, locationId:7e1ec73a-bacc-4c75-a7ba-e8a73c891288

[70e285c5-20e7-46b1-a435-7b5fa6f3ff3f](https://graph-na04-useast2.api.smartthings.com/ide/logs#70e285c5-20e7-46b1-a435-7b5fa6f3ff3f) 12:43:28 PM: **debug** summaryData: [[icon:indicator-dot-gray, iconColor:#878787, value:Disarmed], [icon:indicator-dot-green, iconColor:#79b821, value:Everything OK, heroInfo:[heroStatus:ok, heroMessage:Everything OK]]] - [[icon:indicator-dot-gray, value:Disarmed, iconColor:#878787], [icon:indicator-dot-green, heroInfo:[heroStatus:ok, heroMessage:Everything OK], value:Everything OK, iconColor:#79b821]]

12:43:12 PM: **info** Waiting on events...

12:43:12 PM: **info** For past logs for individual things go to the My Devices section, find the device and click on the Events link on the device information page.

12:43:12 PM: **info** This console provides live logging of your SmartThings.

#2

I played with it a bit and modified your 1minutePassed to time instead of datetime. I also noticed that you will need some sort of flag that the 5 sec siren already triggered so it will jump to the the 3 minute one. As it is, it just keeps triggering the 5 second one each time there is motion and with that the 1minutePassed variable keeps resetting to $now + 1 minute.