How do I set the schedule?


#1

1) Give a description of the problem
Hi, I’ve created my first piston. It says:

If my phone is not present, and my multi-sensors’ contact and acceleration value has not changed for 15 minutes, and my cameras motion status has been inactive for 15 minutes, then execute goodbye routine if currently home, else execute I’m back if currently away

The issue is that it’s never getting fired automatically. How do I tell it to execute once every 5 minutes (or whatever schedule)? For Next scheduled it says: never. For datetime$nextScheduledTime it says Invalid Date. Last executed only changes when I click Test. Never changes automatically.

2) What is the expected behavior?
Expected it to continuously run this, but so far the only way I can get it to run is click Test.

3) What is happening/not happening?
Not executing automatically.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

These occur only if I click Test. Otherwise logs don’t appear despite being set to Full, since the piston is not running:

|+0ms|╔Received event [Home].test = 1514574237821 with a delay of 0ms| |---|---| |+86ms|║RunTime Analysis CS > 17ms > PS > 43ms > PE > 27ms > CE| |+89ms|║Runtime (40829 bytes) successfully initialized in 43ms (v0.2.101.20171227) (88ms)| |+90ms|║╔Execution stage started| |+108ms|║║Comparison (enum) present is (string) not present = false (1ms)| |+109ms|║║Condition #7 evaluated false (14ms)| |+110ms|║║Condition group #6 evaluated false (state did not change) (15ms)| |+111ms|║║Condition group #1 evaluated false (state did not change) (17ms)| |+113ms|║║Cancelling statement #2's schedules...| |+117ms|║║Skipping task 3 because of mode restrictions| |+121ms|║╚Execution stage complete. (32ms)| |+123ms|╚Event processed successfully (123ms)|
Thanks


#2

The green snapshot annoymizes device names


#3

Ahh…Updated and added the picture, thanks! Any idea on the schedule issue?


#4

Hmmmm…Perhaps I’m asking the wrong question. Ok, rather than asking how to make it perform the piston every x minutes, maybe I should ask, what is the proper/intended way to get this to fire? Should I be having it triggered when any of my sensors status changed and wait 15 minutes and then perform the above? Is that the proper way?

EDIT: Actually that wouldn’t work since this is based on the lack of multiple triggers. Grrr…no idea how to do this, but I know it must be possible.


#5

Ahhh…Got it. Outside of the if there’s an add statement option. Didn’t see that. In there is an add time trigger option. Thanks anyway for the help. Here’s a pic if anyone in the future needs it:


#6

Sorry I didn’t make it back on last night. Is everything working as you want it too?