Piston Not Arming/Disarming SMH Upon Arrival


#1

1) Give a description of the problem
Piston not arming smart home monitor when arrival sensor leaves

2) What is the expected behavior?
Piston should arm the smart home monitor when arrival sensor leaves and disarm upon arrival

3) What is happening/not happening?
Other actions in the piston are occurring, but the arming/disarming of the smart home monitor is not. I receive the push notification and the location mode changes, but the last action isn’t reflected in the Smartthings App (classic or new).

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
|+1ms|╔Received event [Home].test = 1540553178735 with a delay of 1ms|
|—|---|
|+69ms|║RunTime Analysis CS > 19ms > PS > 32ms > PE > 17ms > CE|
|+73ms|║Runtime (38599 bytes) successfully initialized in 32ms (v0.3.108.20180906) (70ms)|
|+75ms|║╔Execution stage started|
|+96ms|║║Condition #2 evaluated false (8ms)|
|+98ms|║║Condition group #1 evaluated false (state did not change) (11ms)|
|+109ms|║║Cancelling condition #8’s schedules…|
|+111ms|║║Condition #8 evaluated false (8ms)|
|+113ms|║║Cancelling condition #7’s schedules…|
|+114ms|║║Condition group #7 evaluated false (state changed) (12ms)|
|+120ms|║╚Execution stage complete. (45ms)|
|+122ms|╚Event processed successfully (121ms)|

Logs in arrival sensor on ST IDE show that the state of the arrival sensor is changing.


#2

I wonder why you are using WebCore when the ST app handles this scenario perfectly well. My wife and I both have arrival sensors and have added our mobile phones as “presence” devices. Smart Home Monitor correctly changes to “Armed Away” when we both leave and “Disarmed” when one of us returns.


#3

F[quote=“Firebladerunner, post:2, topic:9198”]
Smart Home Monitor correctly changes to “Armed Away” when we both leave and “Disarmed” when one of us returns.
[/quote]

I don’t believe you are correct with that statement. Smart Home Monitor does not change the state according to one’s presence. Most likely you are using Routines such as Good Bye! And I’m Back! to set your Stay/Away state for SHM. So I guess I am saying there is nothing wrong with using webcore to set the appropriate state in SHM. I use it to set the state for my SHM.

To the OP, check to make sure your presence sensor is actually changing when you arrive/leave. The log shows the presence did not change. :slight_smile:

Also, are you using the Classic app or SmartThings (Samsung Connect)? Webcore will only work with SHM in the Classic app.


#4

You’e right of course. I do use “Goodbye” and “I’m Back” to trigger the SHM state. I’ve also used @Bridaus’s “Reliable Presence Sensor” that IS completely reliable in monitoring our presence.

My point was that the @lnpianist7 's solution can be achieved without recourse to another application. I do use WebCore for a number of other things.


#5

I believe the issue I ran into was caused by using a combination of both the new and Classic SmartThings apps. I initially set up Smart Home Monitor in the Connect (new) app, but found that it didn’t offer the routines functionality for auto arming and disarming, so I attempted to utilize WebCore for that.

I’ve deleted the piston referenced above, removed the SHM SmartApp via the IDE, and reinstalled it via the Classic App. I also set up two Routines to auto arm/disarm the SHM appropriately based on the presence sensor. I’ll update with my findings once I get to test this set up.

Thanks for you suggestions and replies!