1) Give a description of the problem
I have a beacon in my car. When my phone detects the beacon (meaning i am in the car), my phone triggers a webhook to a URL; namely, the URL for executing a specific piston. I want this piston to only execute when triggered to do so by the URL call. I understand i can change it to where the piston does not subscribe to certain parameter updates, but am not sure how that works exactly or if that will solve the problem given my specific piston. Another, less elegant solution would be to have the URL trigger another piston that sets a variable, and then add the variable to this piston as a condition for its execution. But I’m not sure what the best type of “variable” to use would be - what type of variable could i use to be a sort of “momentary button” as in smartthings.
2) What is the expected behavior?
For the piston to execute only when triggered to do so by the URL call.
3) What is happening/not happening?
The piston has conditions in it. When those conditions are met, the piston executes even if not triggered to do so by the URL call.
**4) Post a Green Snapshot of the piston!
5) Attach any logs (From ST IDE and by turning logging level to Full)
4/11/2019, 12:35:15 PM +36ms
+1ms â•”Received event [Home].test = 1555000515035 with a delay of 0ms
+303ms â•‘RunTime Analysis CS > 29ms > PS > 248ms > PE > 26ms > CE
+306ms â•‘Runtime (41927 bytes) successfully initialized in 248ms (v0.3.10a.20190223) (303ms)
+307ms â•‘â•”Execution stage started
+323ms ║║Comparison (integer) 12 is_inside_of_range (integer) 17 … (integer) 19 = false (3ms)
+326ms â•‘â•‘Condition #6 evaluated false (11ms)
+328ms â•‘â•‘Condition group #5 evaluated false (state did not change) (13ms)
+332ms ║║Cancelling statement #18’s schedules…
+341ms â•‘â•‘Skipped execution of physical command [null].off([]) because it would make no change to the device. (3ms)
+342ms â•‘â•‘Executed [Justin Combined Presence].off (6ms)
+347ms â•‘â•šExecution stage complete. (40ms)
+350ms â•šEvent processed successfully (349ms)