Piston looks like success but does not run the activity, FULL log shows no activity


#1

1) Give a description of the problem
I have a virtual switch in SmartThings.
I also have an IFTTT that will ARM my blink cameras when the switch is turned on.
I have a piston that turns that virtual switch on when there has been NO activity from the 2 motion sensors for at least one hour. The piston also locks the 2 exterior doors. None of that is working.

The virtual switch is not being turned on and no activity in the logs. I did test that if i turn on the switch that IFTTT is arming the blink system and that part is working.

2) What is the expected behavior?
Turning on the virtual button

3) What is happening/not happening?
The virtual switch is not turned on

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

5) Attach any logs (From ST IDE and by turning logging level to Full)
1/2/2019, 4:07:34 PM +291ms
+1ms ╔Starting piston… (v0.3.109.20181207)
+137ms ║╔Subscribing to devices…
+171ms ║║Subscribing to Dome Motion/Light Sensor Kitchen.motion…
+184ms ║║Subscribing to Dome Motion/Light Sensor Front Door.motion…
+281ms ║║Subscribing to Virtual Blink Arm Switch…
+283ms ║║Subscribing to Front Door Lock…
+285ms ║║Subscribing to Kitchen Door To Garage Lock…
+286ms ║╚Finished subscribing (152ms)
+416ms ║Comparison (enum) inactive did_not_change = true (97ms)
+463ms ║Comparison (enum) inactive did_not_change = true (38ms)
+484ms ╚Piston successfully started (483ms)
1/2/2019, 4:07:28 PM +739ms
+103ms ╔Stopping piston…
+172ms ╚Piston successfully stopped (70ms)
1/2/2019, 12:53:52 PM +911ms
+1ms ╔Starting piston… (v0.3.109.20181207)
+207ms ║╔Subscribing to devices…
+243ms ║║Subscribing to Dome Motion/Light Sensor Kitchen.motion…
+261ms ║║Subscribing to Dome Motion/Light Sensor Front Door.motion…
+366ms ║║Subscribing to Virtual Blink Arm Switch…
+367ms ║║Subscribing to Front Door Lock…
+369ms ║║Subscribing to Kitchen Door To Garage Lock…
+370ms ║╚Finished subscribing (182ms)
+754ms ╚Piston successfully started (754ms)


#2

The logs you posted are only from the piston being saved (after which it starts and subscribes to the necessary devices).

Can you go trigger one of the motion sensors and then see what happens? There should be a timer set for 1 hour later so the piston can wake up and see if the motion sensor previously tripped has been unchanged for an hour.


#3

First of all, you are turning the switch off then on again immediately. So, if the switch is off at first, its going to wind up being on. If it is on, it’s going to still be on.

Then, you have an action assigned to a contact sensor. Contact sensor are sensors and therefore do not have Actions you can perform with them, let alone, 2 of them.

Your piston does not actually do what you think it does. This is what you want.

Motion STAYS INactive for 1 hour.
Thurn on.

I don’t know what you’re doing with the contact sensors or how you think they are going to lock your doors…but if they are actual locks, then you are fine.

But you really want to leave your doors unlocked for an hour after you leave your house? That’s not very effective security if you ask me.


#4

Hey @Ryan780

Thanks for the input, it actually started working when i hit pause then resume.

Basically its this and a litle confusing: If there is no motion from the sensors for an hour, turn a virtual switch on. The reason i turn it off first is that if it’s already on it won’t trigger the next action in IFTTT which is to arm my blink cameras when it changes from off to on, then lock the exterior doors. In any event, i just ended up doing a webhook which seems much more reliable but it is all working good. Thanks for your input.