Piston not firing on simulated switch change


#1

1) Give a description of the problem
I created a simulated switch in the SmartThings IDE, then created a piston to run some actions when the switch changed. I tried flipping the switch, but nothing happens.

2) What is the expected behaviour?
Piston executes.

3) What is happening/not happening?
Piston does not execute. When I hit the URL manually the garage door closes. But when I flip the simulated switch in the SmartThings app, nothing happens. The piston “last executed” time does not update.

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

5) Attach logs after turning logging level to Full
No logs, the piston didn’t run


#2

So this will only execute the get request if the switch changes

ie test does not send a switch change event, it sends a test event.

So I would expect test to do nothing for this piston (piston will run, but if you look at the logs it will say the switch did not change which means the event was not a switch change event)

So to test it, change the switch (either physically, or via the app)


#3

Yeah that’s what I did. It’s a simulated switch, so I can’t change it physically. But I changed it with the app and the piston did not fire.


#4

I see ‘https’ in the URL. Is this a LAN request? If so it wouldn’t work.


#5

It’s not a LAN request. Goes to https://api.kloee.com/api/webhooks/


#6

you should post full logs


#7

I enabled full logs on the piston but it is still empty after flipping my switch. I don’t think the piston ran at all.


#8

So keep full logs on and pause/resume the piston (in webcore IDE), and let’s see what it subscribes to.


#9

That’s the solution! Pausing and resuming it fixed it, and had it actually had not ever subscribed to the event. Would be nice for future users if webcore did this automatically after creating the piston. It was certainly puzzling staring at the “This piston is currently active and humming happily” text when it wasn’t working.


#10

It is rather unusual that it didn’t. Normally the piston restarts whenever you save an edit.