Action doesnt tirgger


#1

1) Give a description of the problem
the action is not triggering
2) What is the expected behavior?
Expecting the TTS music player to speak (and I know this portion works).

3) What is happening/not happening?
Seems like the conditional AND function is not working as I expect it to.

4) Post a Green Snapshot of the pistonimage
image|45x37

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)
11/30/2017, 6:37:53 PM +268ms
+1ms ╔Received event [Home].time = 1512085074880 with a delay of -1612ms
+96ms ║RunTime Analysis CS > 16ms > PS > 45ms > PE > 34ms > CE
+390ms ║Runtime (40601 bytes) successfully initialized in 45ms (v0.2.0fe.20171109) (388ms)
+391ms ║╔Execution stage started
+419ms ║║Cancelling statement #6’s schedules…
+489ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (59ms)
+490ms ║║Executed [FABRIQ_Garage Speaker].setLevel (66ms)
+627ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (133ms)
+628ms ║║Executed [FABRIQ_Garage Speaker].speak (135ms)
+631ms ║║Cancelling statement #8’s schedules…
+752ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (116ms)
+753ms ║║Executed [Fabriq Kitchen Speaker].speak (116ms)
+755ms ║║Cancelling statement #10’s schedules…
+759ms ║║Executed virtual command wait (1ms)
+759ms ║║Waiting for 2000ms
+2765ms ║╚Execution stage complete. (2374ms)
+2773ms ╚Event processed successfully (2773ms)
11/30/2017, 6:37:43 PM +125ms
+1ms ╔Received event [Home].test = 1512085063118 with a delay of 6ms
+105ms ║RunTime Analysis CS > 15ms > PS > 44ms > PE > 42ms > CE
+120ms ║Runtime (40598 bytes) successfully initialized in 44ms (v0.2.0fe.20171109) (118ms)
+121ms ║╔Execution stage started
+154ms ║║Comparison (enum) closed is_not (string) closed = false (6ms)
+156ms ║║Comparison (enum) open is_not (string) closed = true (1ms)
+158ms ║║Condition #3 evaluated true (28ms)
+164ms ║║Comparison (string) ACTIVE is_not (string) disarmed = true (2ms)
+166ms ║║Condition #4 evaluated true (6ms)
+167ms ║║Condition group #2 evaluated true (state did not change) (37ms)
+168ms ║║Condition group #1 evaluated true (state did not change) (39ms)
+182ms ║║Cancelling statement #6’s schedules…
+381ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (183ms)
+382ms ║║Executed [FABRIQ_Garage Speaker].setLevel (191ms)
+590ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (200ms)
+591ms ║║Executed [FABRIQ_Garage Speaker].speak (206ms)
+594ms ║║Cancelling statement #8’s schedules…
+703ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (103ms)
+704ms ║║Executed [Fabriq Kitchen Speaker].speak (104ms)
+708ms ║║Cancelling statement #10’s schedules…
+711ms ║║Executed virtual command wait (1ms)
+712ms ║║Waiting for 2000ms
+2724ms ║║Cancelling statement #6’s schedules…
+2754ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (27ms)
+2755ms ║║Executed [FABRIQ_Garage Speaker].setLevel (28ms)
+2860ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (102ms)
+2861ms ║║Executed [FABRIQ_Garage Speaker].speak (103ms)
+2864ms ║║Cancelling statement #8’s schedules…
+2962ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (94ms)
+2963ms ║║Executed [Fabriq Kitchen Speaker].speak (95ms)
+2965ms ║║Cancelling statement #10’s schedules…
+2969ms ║║Executed virtual command wait (1ms)
+2970ms ║║Waiting for 2000ms
+4976ms ║║Cancelling statement #6’s schedules…
+5004ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (24ms)
+5005ms ║║Executed [FABRIQ_Garage Speaker].setLevel (26ms)
+5094ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (84ms)
+5095ms ║║Executed [FABRIQ_Garage Speaker].speak (86ms)
+5097ms ║║Cancelling statement #8’s schedules…
+5203ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (102ms)
+5204ms ║║Executed [Fabriq Kitchen Speaker].speak (104ms)
+5207ms ║║Cancelling statement #10’s schedules…
+5210ms ║║Executed virtual command wait (0ms)
+5211ms ║║Waiting for 2000ms
+7218ms ║║Cancelling statement #6’s schedules…
+7248ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (25ms)
+7249ms ║║Executed [FABRIQ_Garage Speaker].setLevel (27ms)
+7342ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (89ms)
+7343ms ║║Executed [FABRIQ_Garage Speaker].speak (91ms)
+7346ms ║║Cancelling statement #8’s schedules…
+7450ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (101ms)
+7451ms ║║Executed [Fabriq Kitchen Speaker].speak (102ms)
+7454ms ║║Cancelling statement #10’s schedules…
+7457ms ║║Executed virtual command wait (0ms)
+7458ms ║║Waiting for 2000ms
+9464ms ║║Cancelling statement #6’s schedules…
+9492ms ║║Executed physical command [FABRIQ_Garage Speaker].setLevel([90]) (24ms)
+9493ms ║║Executed [FABRIQ_Garage Speaker].setLevel (26ms)
+9579ms ║║Executed physical command [FABRIQ_Garage Speaker].speak([Excuse me. The Alarm is engaged.]) (81ms)
+9580ms ║║Executed [FABRIQ_Garage Speaker].speak (83ms)
+9582ms ║║Cancelling statement #8’s schedules…
+9746ms ║║Executed physical command [Fabriq Kitchen Speaker].speak([Excuse me. The Alarm is engaged]) (160ms)
+9747ms ║║Executed [Fabriq Kitchen Speaker].speak (161ms)
+9749ms ║║Cancelling statement #10’s schedules…
+9753ms ║║Executed virtual command wait (1ms)
+9754ms ║║Requesting a wake up for Thu, Nov 30 2017 @ 6:37:54 PM EST (in 2.0s)
+9765ms ║╚Execution stage complete. (9644ms)
+9773ms ║Setting up scheduled job for Thu, Nov 30 2017 @ 6:37:54 PM EST (in 1.983s)
+9789ms ╚Event processed successfully (9789ms)


#2

$status is a made up variable about the status of the device in SmartThings eyes. IE it is responding so it’s online or it hasn’t been heard from in awhile so it’s probably offline.

Don’t know what the “motion sensor” is but instead of evaluating the variable check the preset value list for what you are looking for.

From your logs on your test run:


#3

thanks @c1arkbar. Yes, that was one of my problems. Appreciate it. I also added variables such that I could track progress and that helped.

One thing is now my memory utilized looks high. LIke 52%. Should I be worried?

image


#4

Each piston gets 100,000 bytes of memory. This includes the code you compile as well as things like undo actions and logs. Not to worry if it gets higher. It will delete old logs when it needs to make room.