1) Give a description of the problem
Text to speech does not make the announcement when my contact sensor is opened.
2) What is the expected behavior?
I’m trying to get the text to speech part of this piston (modified version of @ady624 piston) to work so it makes an announcement only when presence is detected and then wait until a specific contact sensor is opened before making the announcement. I’m using a node.js pi3 server to make the API call for text to speech.
3) What is happening/not happening?
No announcement is made when the contact sensor is opened and the presence is detected. I think the piston is attempting to complete but will timeout because the contact sensor doesn’t open in time. I’m guessing I need to introduce a “wait” condition of some form but not sure how.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
1/3/2018, 7:16:02 PM +750ms
+1ms ╔Received event [Front Door Sensor].contact = closed with a delay of 424ms
+283ms ║RunTime Analysis CS > 13ms > PS > 48ms > PE > 222ms > CE
+286ms ║Runtime (47967 bytes) successfully initialized in 48ms (v0.2.101.20171227) (284ms)
+287ms ║╔Execution stage started
+302ms ║║Condition #11 evaluated false (11ms)
+303ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+305ms ║║Cancelling statement #2’s schedules…
+316ms ║║Executed virtual command executePiston (7ms)
+332ms ║║Comparison (enum) present is (string) not present = false (2ms)
+335ms ║║Comparison (enum) present is (string) not present = false (1ms)
+339ms ║║Condition #23 evaluated false (20ms)
+340ms ║║Condition group #18 evaluated false (state did not change) (21ms)
+344ms ║║Cancelling statement #29’s schedules…
+360ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false
+367ms ║║Calculating (string) Person1 and Person2 + (string) >> (string) Person1 and Person2
+370ms ║║Calculating (string) Person1 and Person2 + (string) are >> (string) Person1 and Person2 are
+373ms ║║Calculating (string) Person1 and Person2 are + (string) home. >> (string) Person1 and Person2 are home.
+376ms ║║Calculating (integer) 2 == (integer) 0 >> (boolean) false
+379ms ║║Executed virtual command setState (0ms)
+380ms ║╚Execution stage complete. (94ms)
+382ms ╚Event processed successfully (381ms)
1/3/2018, 7:15:55 PM +539ms
+1ms ╔Received event [Front Door Sensor].contact = open with a delay of 414ms
+128ms ║RunTime Analysis CS > 12ms > PS > 37ms > PE > 79ms > CE
+131ms ║Runtime (47963 bytes) successfully initialized in 37ms (v0.2.101.20171227) (130ms)
+132ms ║╔Execution stage started
+147ms ║║Cancelling condition #11’s schedules…
+147ms ║║Condition #11 evaluated false (11ms)
+148ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+150ms ║║Cancelling statement #2’s schedules…
+160ms ║║Executed virtual command executePiston (7ms)
+185ms ║║Comparison (enum) present is (string) not present = false (2ms)
+187ms ║║Comparison (enum) present is (string) not present = false (2ms)
+190ms ║║Condition #23 evaluated false (27ms)
+191ms ║║Condition group #18 evaluated false (state did not change) (28ms)
+194ms ║║Cancelling statement #29’s schedules…
+207ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false
+213ms ║║Calculating (string) Person1 and Person2 + (string) >> (string) Person1 and Person2
+216ms ║║Calculating (string) Person1 and Person2 + (string) are >> (string) Person1 and Person2 are
+219ms ║║Calculating (string) Person1 and Person2 are + (string) home. >> (string) Person1 and Person2 are home.
+222ms ║║Calculating (integer) 2 == (integer) 0 >> (boolean) false
+225ms ║║Executed virtual command setState (0ms)
+227ms ║╚Execution stage complete. (95ms)
+228ms ╚Event processed successfully (227ms)
1/3/2018, 7:08:37 PM +857ms
+1ms ╔Received event [Person2].presence = present with a delay of 80ms
+190ms ║RunTime Analysis CS > 19ms > PS > 97ms > PE > 74ms > CE
+193ms ║Runtime (47897 bytes) successfully initialized in 97ms (v0.2.101.20171227) (192ms)
+194ms ║╔Execution stage started
+207ms ║║Comparison (enum) present changes_to (string) present = true (0ms)
+209ms ║║Cancelling condition #11’s schedules…
+209ms ║║Condition #11 evaluated true (10ms)
+227ms ║║Comparison (long) 102124 is_greater_than (integer) 180000 = false (1ms)
+229ms ║║Condition #12 evaluated false (18ms)
+229ms ║║Condition group #1 evaluated false (state did not change) (30ms)
+232ms ║║Cancelling statement #2’s schedules…
+241ms ║║Executed virtual command executePiston (5ms)
+252ms ║║Comparison (enum) present is (string) not present = false (1ms)
+254ms ║║Comparison (enum) present is (string) not present = false (1ms)
+258ms ║║Condition #23 evaluated false (14ms)
+259ms ║║Condition group #18 evaluated false (state did not change) (15ms)
+261ms ║║Cancelling statement #29’s schedules…
+397ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false
+404ms ║║Calculating (string) Person1 and Person2 + (string) >> (string) Person1 and Person2
+407ms ║║Calculating (string) Person1 and Person2 + (string) are >> (string) Person1 and Person2 are
+411ms ║║Calculating (string) Person1 and Person2 are + (string) home. >> (string) Person1 and Person2 are home.
+413ms ║║Calculating (integer) 2 == (integer) 0 >> (boolean) false
+416ms ║║Executed virtual command setState (0ms)
+418ms ║╚Execution stage complete. (224ms)
+420ms ╚Event processed successfully (419ms)
Clear Full