Alarm piston with delay not firing


#1

1) Give a description of the problem
This piston doesn’t work, the siren sound never plays. It’s something to do with the delay, if I remove that it works so I know my online file works. I have tried countless versions of this, such as "alarm is away and stays away for 15 seconds, and I’ve put that all in the initial IF statement as well. Nothing seems to work.

2) What is the expected behaviour?
If my SHM (old app) is in Armed-Away mode, and I open a door, wait 15 seconds, if the alarm is STILL in Armed-Away mode, blast a siren on certain sonos speakers

3) What is happening/not happening?
Nothing happens at all

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
Sorry - I have them as medium right now, I’m not home and don’t want to startle my sitter should it work, so I will wait until tonight to update to full logs

2/25/2020, 7:41:20 AM +136ms
+1ms	╔Received event [Home].time = 1582641681142 with a delay of -1006ms
+130ms	║Runtime (38735 bytes) successfully initialized in 72ms (v0.3.110.20191009) (127ms)
+131ms	║╔Execution stage started
+132ms	║╚Execution stage complete. (1ms)
+133ms	╚Event processed successfully (133ms)
2/25/2020, 7:41:08 AM +331ms
+1ms	╔Received event [Front Door Sensor].contact = closed with a delay of 51ms
+85ms	║Runtime (38734 bytes) successfully initialized in 46ms (v0.3.110.20191009) (83ms)
+86ms	║╔Execution stage started
+101ms	║╚Execution stage complete. (15ms)
+102ms	╚Event processed successfully (101ms)
2/25/2020, 7:41:05 AM +989ms
+1ms	╔Received event [Front Door Sensor].contact = open with a delay of 96ms
+130ms	║Runtime (38739 bytes) successfully initialized in 78ms (v0.3.110.20191009) (128ms)
+131ms	║╔Execution stage started
+151ms	║║Executed virtual command [Basement Sonos].wait (0ms)
+152ms	║║Requesting a wake up for Tue, Feb 25 2020 @ 7:41:21 AM MST (in 15.0s)
+156ms	║╚Execution stage complete. (25ms)
+157ms	║Setting up scheduled job for Tue, Feb 25 2020 @ 7:41:21 AM MST (in 14.996s)
+166ms	╚Event processed successfully (166ms)`Preformatted text`

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Try this one,

IF any of the contact sensors 3, 5, 11 changes to OPEN
then
       IF home monitor status is armed/away (This is a nested IF)
       then 
       With (But TCP set to NEVER)
       music player one
       Wait 15 seconds 
       Play track "asdasdasd"

#3

I would do a slight modification of Ike’s piston:

IF any of the contact sensors 3, 5, 11 changes to OPEN
then
    With location (TCP set to Never)
    Wait 15 seconds
        IF home monitor status is armed/away
        then 
        With music player one
            Play track "asdasdasd"
        END IF
END IF

We do not want to check the SHM until after the WAIT.


#4

himmm
When I check your piston I don’t see a difference in real life aplication BUT I know you are right :)) LOL

can you elaborate on that a little bit…


#5

The SHM may not be armed/away after 15 seconds. So you want to check if the system is still armed after 15 seconds. If it is still armed (the alarm was not disabled within the 15 seconds), then sound the siren.


#7

thanks, will try this tonight and let you know!


#8

It works! thank you all!