1) Give a description of the problem
Simple Lock piston to lock the front door when away
2) What is the expected behavior?
Lock front door when present sensor is away and lock is not locked
3) What is happening/not happening?
Present sensors work find but, When leaving if I don’t lock the front door, it will lock correctly when the present sensor show away. However if I lock the front door and leave, when the present sensor shows away, then the door unlocks
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
(2/7/2018, 1:20:40 PM +693ms
+2ms ╔Received event [Eric].presence = present with a delay of 68ms
+135ms ║RunTime Analysis CS > 23ms > PS > 39ms > PE > 73ms > CE
+137ms ║Runtime (38053 bytes) successfully initialized in 39ms (v0.2.102.20180116) (135ms)
+138ms ║╔Execution stage started
+152ms ║║Comparison (enum) not present is (string) not present = true (1ms)
+155ms ║║Comparison (enum) present is (string) not present = false (1ms)
+156ms ║║Cancelling condition #8’s schedules…
+157ms ║║Condition #8 evaluated false (13ms)
+158ms ║║Condition group #1 evaluated false (state did not change) (15ms)
+167ms ║║Comparison (enum) present changes_to (string) present = true (1ms)
+169ms ║║Cancelling condition #5’s schedules…
+170ms ║║Condition #5 evaluated true (9ms)
+170ms ║║Cancelling condition #2’s schedules…
+171ms ║║Condition group #2 evaluated true (state changed) (11ms)
+174ms ║║Cancelling statement #3’s schedules…
+2313ms ║║Executed physical command [Front Door Lock].unlock() (2136ms)
+2314ms ║║Executed [Front Door Lock].unlock (2137ms)
+2336ms ║║Executed virtual command [Front Door Lock].setAlarmSystemStatus (18ms)
+2339ms ║╚Execution stage complete. (2201ms)
+2340ms ╚Event processed successfully (2340ms))
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.